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

📄 ssl_set_connect_state.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMESSL_set_connect_state, SSL_get_accept_state - prepare SSL object to work in client or server mode=head1 SYNOPSIS #include <openssl/ssl.h> void SSL_set_connect_state(SSL *ssl); void SSL_set_accept_state(SSL *ssl);=head1 DESCRIPTIONSSL_set_connect_state() sets B<ssl> to work in client mode.SSL_set_accept_state() sets B<ssl> to work in server mode.=head1 NOTESWhen the SSL_CTX object was created with L<SSL_CTX_new(3)|SSL_CTX_new(3)>,it was either assigned a dedicated client method, a dedicated servermethod, or a generic method, that can be used for both client andserver connections. (The method might have been changed withL<SSL_CTX_set_ssl_version(3)|SSL_CTX_set_ssl_version(3)> orSSL_set_ssl_method().)When beginning a new handshake, the SSL engine must know whether it mustcall the connect (client) or accept (server) routines. Even though it maybe clear from the method chosen, whether client or server mode wasrequested, the handshake routines must be explicitly set.When using the L<SSL_connect(3)|SSL_connect(3)> orL<SSL_accept(3)|SSL_accept(3)> routines, the correct handshakeroutines are automatically set. When performing a transparent negotiationusing L<SSL_write(3)|SSL_write(3)> or L<SSL_read(3)|SSL_read(3)>, thehandshake routines must be explicitly set in advance using eitherSSL_set_connect_state() or SSL_set_accept_state().=head1 RETURN VALUESSSL_set_connect_state() and SSL_set_accept_state() do not return diagnosticinformation.=head1 SEE ALSOL<ssl(3)|ssl(3)>, L<SSL_new(3)|SSL_new(3)>, L<SSL_CTX_new(3)|SSL_CTX_new(3)>,L<SSL_connect(3)|SSL_connect(3)>, L<SSL_accept(3)|SSL_accept(3)>,L<SSL_write(3)|SSL_write(3)>, L<SSL_read(3)|SSL_read(3)>,L<SSL_do_handshake(3)|SSL_do_handshake(3)>,L<SSL_CTX_set_ssl_version(3)|SSL_CTX_set_ssl_version(3)>=cut

⌨️ 快捷键说明

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