Clarify that SSL_CTX_remove_session() marks a session as non-resumable
authorMatt Caswell <matt@openssl.org>
Wed, 26 Apr 2017 14:16:18 +0000 (15:16 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 26 Apr 2017 15:46:47 +0000 (16:46 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3008)

doc/man3/SSL_CTX_add_session.pod
doc/man3/SSL_CTX_sess_set_get_cb.pod

index dd92c3a231236b20080bc3941340140861e00168..02d93b8b1d7cc59903bd8880adfb3cb364be011e 100644 (file)
@@ -21,8 +21,8 @@ reference count for session B<c> is incremented by 1. If a session with
 the same session id already exists, the old session is removed by calling
 L<SSL_SESSION_free(3)>.
 
-SSL_CTX_remove_session() removes the session B<c> from the context B<ctx>.
-L<SSL_SESSION_free(3)> is called once for B<c>.
+SSL_CTX_remove_session() removes the session B<c> from the context B<ctx> and
+marks it as non-resumable. L<SSL_SESSION_free(3)> is called once for B<c>.
 
 SSL_add_session() and SSL_remove_session() are synonyms for their
 SSL_CTX_*() counterparts.
index 55edd1c1a6d4189b717ef1ddf398508a155cca97..65f1e4e7c5aaf1a764ea90ba99294d08e005ded1 100644 (file)
@@ -67,7 +67,8 @@ be established with a single connection. In these case the new_session_cb()
 function will be invoked multiple times.
 
 In TLSv1.3 it is recommended that each SSL_SESSION object is only used for
-resumption once.
+resumption once. One way of enforcing that is for applications to call
+L<SSL_CTX_remove_session(3)> after a session has been used.
 
 The remove_session_cb() is called, whenever the SSL engine removes a session
 from the internal cache. This happens when the session is removed because