]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update limitation of psk_client_cb and psk_server_cb in usage with TLSv1.3
authorraja-ashok <rashok.svks@gmail.com>
Wed, 13 May 2020 18:02:44 +0000 (23:32 +0530)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 19 May 2020 17:07:24 +0000 (10:07 -0700)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/11816)

doc/man3/SSL_CTX_set_psk_client_callback.pod
doc/man3/SSL_CTX_use_psk_identity_hint.pod

index 55ffb31c499df1d5ec96f44664b4180e7f6b1372..70eefa0265ee082f62ff5bf9fde08c48f09e8ff6 100644 (file)
@@ -123,7 +123,9 @@ and it will use that in preference. If no such callback is present then it will
 check to see if a callback has been set via SSL_CTX_set_psk_client_callback() or
 SSL_set_psk_client_callback() and use that. In this case the B<hint> value will
 always be NULL and the handshake digest will default to SHA-256 for any returned
-PSK.
+PSK. TLSv1.3 early data exchanges are possible in PSK connections only with the
+B<SSL_psk_use_session_cb_func> callback, and are not possible with the
+B<SSL_psk_client_cb_func> callback.
 
 =head1 NOTES
 
index 937c91a3c8cb5ff476feee03fbb547f88ca3ee2f..0e70d4d531d89fc85a4fcb1d2d1afabd0432b521 100644 (file)
@@ -83,7 +83,9 @@ via SSL_CTX_set_psk_find_session_callback() or SSL_set_psk_find_session_callback
 and it will use that in preference. If no such callback is present then it will
 check to see if a callback has been set via SSL_CTX_set_psk_server_callback() or
 SSL_set_psk_server_callback() and use that. In this case the handshake digest
-will default to SHA-256 for any returned PSK.
+will default to SHA-256 for any returned PSK. TLSv1.3 early data exchanges are
+possible in PSK connections only with the B<SSL_psk_find_session_cb_func>
+callback, and are not possible with the B<SSL_psk_server_cb_func> callback.
 
 A connection established via a TLSv1.3 PSK will appear as if session resumption
 has occurred so that L<SSL_session_reused(3)> will return true.