X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fssl%2FSSL_clear.pod;h=f0aa5e94eb03816e9ba6ef38d31aa0763196ae75;hp=862fd8291df18dcd4adc19077d3fcdee76e3e1ac;hb=f0d6ee6be8b2faac9fa37be0086fafbc001307f3;hpb=c6def253b45b50a0d87ae7768db523c4a32e8517;ds=sidebyside diff --git a/doc/ssl/SSL_clear.pod b/doc/ssl/SSL_clear.pod index 862fd8291d..f0aa5e94eb 100644 --- a/doc/ssl/SSL_clear.pod +++ b/doc/ssl/SSL_clear.pod @@ -13,8 +13,17 @@ SSL_clear - reset SSL object to allow another connection =head1 DESCRIPTION Reset B to allow another connection. All settings (method, ciphers, -BIOs) are kept. A completely negotiated B is not freed but left -untouched for the underlying B. +BIOs) are kept. + +=head1 NOTES + +SSL_clear is used to prepare an SSL object for a new connection. While all +settings are kept, a side effect is the handling of the current SSL session. +If a session is still B, it is considered bad and will be removed +from the session cache, as required by RFC2246. A session is considered open, +if L was not called for the connection +or at least L was used to +set the SSL_SENT_SHUTDOWN state. =head1 RETURN VALUES @@ -34,6 +43,8 @@ The SSL_clear() operation was successful. =back L, L, -L +L, L, +L, L, +L =cut