From: Matt Caswell Date: Mon, 19 Jun 2017 14:03:43 +0000 (+0100) Subject: Document SSL_set_psk_find_session_callback() and SSL_CTX equivalent X-Git-Tag: OpenSSL_1_1_1-pre1~1234 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=8ead6158a961c9b86bc086fbe96c9fbbe715a8c5;ds=sidebyside Document SSL_set_psk_find_session_callback() and SSL_CTX equivalent Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3670) --- diff --git a/doc/man3/SSL_CTX_set_psk_client_callback.pod b/doc/man3/SSL_CTX_set_psk_client_callback.pod index 6a37e7df3d..7e8fffef81 100644 --- a/doc/man3/SSL_CTX_set_psk_client_callback.pod +++ b/doc/man3/SSL_CTX_set_psk_client_callback.pod @@ -106,7 +106,7 @@ should not be freed by the application. It is also possible for the callback to succeed but not supply a PSK. In this case no PSK will be sent to the server but the handshake will continue. To do -this the callback should return successfully and ensure that the B<*sess> is +this the callback should return successfully and ensure that B<*sess> is NULL. The contents of B<*id> and B<*idlen> will be ignored. =head1 NOTES diff --git a/doc/man3/SSL_CTX_use_psk_identity_hint.pod b/doc/man3/SSL_CTX_use_psk_identity_hint.pod index 937518089d..9dd14f8e54 100644 --- a/doc/man3/SSL_CTX_use_psk_identity_hint.pod +++ b/doc/man3/SSL_CTX_use_psk_identity_hint.pod @@ -77,6 +77,11 @@ case no PSK will be used but the handshake will continue. To do this the callback should return successfully and ensure that B<*sess> is NULL. +=head1 NOTES + +A connection established via a TLSv1.3 PSK will appear as if session resumption +has occurred so that L will return true. + =head1 RETURN VALUES SSL_CTX_use_psk_identity_hint() and SSL_use_psk_identity_hint() return diff --git a/util/private.num b/util/private.num index 10fa954dcf..2ad754f1b3 100644 --- a/util/private.num +++ b/util/private.num @@ -23,6 +23,8 @@ OPENSSL_Applink external SSL_CTX_keylog_cb_func datatype SSL_early_cb_fn datatype SSL_psk_client_cb_func datatype +SSL_psk_find_session_cb_func datatype +SSL_psk_server_cb_func datatype SSL_psk_use_session_cb_func datatype SSL_verify_cb datatype UI datatype