?? ssl_set_connect_state.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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -