⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssl_clear.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMESSL_clear - reset SSL object to allow another connection=head1 SYNOPSIS #include <openssl/ssl.h> int SSL_clear(SSL *ssl);=head1 DESCRIPTIONReset B<ssl> to allow another connection. All settings (method, ciphers,BIOs) are kept.=head1 NOTESSSL_clear is used to prepare an SSL object for a new connection. While allsettings are kept, a side effect is the handling of the current SSL session.If a session is still B<open>, it is considered bad and will be removedfrom the session cache, as required by RFC2246. A session is considered open,if L<SSL_shutdown(3)|SSL_shutdown(3)> was not called for the connectionor at least L<SSL_set_shutdown(3)|SSL_set_shutdown(3)> was used toset the SSL_SENT_SHUTDOWN state.If a session was closed cleanly, the session object will be kept and allsettings corresponding. This explicitly means, that e.g. the special methodused during the session will be kept for the next handshake. So if thesession was a TLSv1 session, a SSL client object will use a TLSv1 clientmethod for the next handshake and a SSL server object will use a TLSv1server method, even if SSLv23_*_methods were chosen on startup. Thiswill might lead to connection failures (see L<SSL_new(3)|SSL_new(3)>)for a description of the method's properties.=head1 WARNINGSSSL_clear() resets the SSL object to allow for another connection. Thereset operation however keeps several settings of the last sessions(some of these settings were made automatically during the lasthandshake). It only makes sense when opening a new session (or reusingan old one) with the same peer that shares these settings.SSL_clear() is not a short form for the sequenceL<SSL_free(3)|SSL_free(3)>; L<SSL_new(3)|SSL_new(3)>; .=head1 RETURN VALUESThe following return values can occur:=over 4=item 0The SSL_clear() operation could not be performed. Check the error stack tofind out the reason.=item 1The SSL_clear() operation was successful.=backL<SSL_new(3)|SSL_new(3)>, L<SSL_free(3)|SSL_free(3)>,L<SSL_shutdown(3)|SSL_shutdown(3)>, L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>,L<SSL_CTX_set_options(3)|SSL_CTX_set_options(3)>, L<ssl(3)|ssl(3)>,L<SSL_CTX_set_client_cert_cb(3)|SSL_CTX_set_client_cert_cb(3)>=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -