doc: Clarify that calling SSL_set_session(ssl, NULL) is a correct use case.
authorEasySec <easy.sec@free.fr>
Wed, 13 Apr 2022 11:02:44 +0000 (13:02 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Apr 2022 11:56:32 +0000 (13:56 +0200)
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18101)

(cherry picked from commit e763b1861fb2a138371464b7d3996dbde85ff5e8)

doc/man3/SSL_set_session.pod

index c3eca2565ad77ceb0f9c68d7b26d7681333bc8db..f1c0193bf39cb72733ec786e656d34b4fbbf0624 100644 (file)
@@ -21,7 +21,8 @@ with the L<SSL_session_reused(3)> call.
 
 If there is already a session set inside B<ssl> (because it was set with
 SSL_set_session() before or because the same B<ssl> was already used for
-a connection), SSL_SESSION_free() will be called for that session. If that old
+a connection), SSL_SESSION_free() will be called for that session.
+This is also the case when B<session> is a NULL pointer. If that old
 session is still B<open>, it is considered bad and will be removed from the
 session cache (if used). A session is considered open, if L<SSL_shutdown(3)> was
 not called for the connection (or at least L<SSL_set_shutdown(3)> was used to