Document SSL_set_psk_find_session_callback() and SSL_CTX equivalent
authorMatt Caswell <matt@openssl.org>
Mon, 19 Jun 2017 14:03:43 +0000 (15:03 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 21 Jun 2017 13:45:36 +0000 (14:45 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3670)

doc/man3/SSL_CTX_set_psk_client_callback.pod
doc/man3/SSL_CTX_use_psk_identity_hint.pod
util/private.num

index 6a37e7df3d8b0220fe9ee2743df874f9702d14c4..7e8fffef8180835960b4f6265258697592ec0e34 100644 (file)
@@ -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
index 937518089dceca4771485b6e668ce78dc23c2dcd..9dd14f8e54635900689b6a21b6933fb2260b499b 100644 (file)
@@ -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<SSL_session_reused(3)> will return true.
+
 =head1 RETURN VALUES
 
 SSL_CTX_use_psk_identity_hint() and SSL_use_psk_identity_hint() return
index 10fa954dcfc100e098656610a39b004d5c0823de..2ad754f1b3c01905f6c0057e47dc6ead10e47c3c 100644 (file)
@@ -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