X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fssl%2FSSL_set_session.pod;h=5f54714ad86a633c4f0540357ffcb2593c17a174;hb=b764f82c645639ce794f28ef92e749066dd2caa6;hp=9f78d9e434ae5424c32c11f2c0a41c5f5cf65bb0;hpb=c6def253b45b50a0d87ae7768db523c4a32e8517;p=oweals%2Fopenssl.git diff --git a/doc/ssl/SSL_set_session.pod b/doc/ssl/SSL_set_session.pod index 9f78d9e434..5f54714ad8 100644 --- a/doc/ssl/SSL_set_session.pod +++ b/doc/ssl/SSL_set_session.pod @@ -16,12 +16,21 @@ SSL_set_session() sets B to be used when the TLS/SSL connection is to be established. SSL_set_session() is only useful for TLS/SSL clients. When the session is set, the reference count of B is incremented by 1. If the session is not reused, the reference count is decremented -again during SSL_connect(). +again during SSL_connect(). Whether the session was reused can be queried +with the L call. If there is already a session set inside B (because it was set with SSL_set_session() before or because the same B was already used for a connection), SSL_SESSION_free() will be called for that session. +=head1 NOTES + +SSL_SESSION objects keep internal link information about the session cache +list, when being inserted into one SSL_CTX object's session cache. +One SSL_SESSION object, regardless of its reference count, must therefore +only be used with one SSL_CTX object (and the SSL objects created +from this SSL_CTX object). + =head1 RETURN VALUES The following return values can occur: @@ -40,6 +49,9 @@ The operation succeeded. =head1 SEE ALSO -L, L +L, L, +L, +L, +L =cut