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

📄 ssl_accept.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMESSL_accept - wait for a TLS/SSL client to initiate a TLS/SSL handshake=head1 SYNOPSIS #include <openssl/ssl.h> int SSL_accept(SSL *ssl);=head1 DESCRIPTIONSSL_accept() waits for a TLS/SSL client to initiate the TLS/SSL handshake.The communication channel must already have been set and assigned to theB<ssl> by setting an underlying B<BIO>.=head1 NOTESThe behaviour of SSL_accept() depends on the underlying BIO. If the underlying BIO is B<blocking>, SSL_accept() will only return once thehandshake has been finished or an error occurred, except for SGC (ServerGated Cryptography). For SGC, SSL_accept() may return with -1, butSSL_get_error() will yield B<SSL_ERROR_WANT_READ/WRITE> and SSL_accept()should be called again.If the underlying BIO is B<non-blocking>, SSL_accept() will also returnwhen the underlying BIO could not satisfy the needs of SSL_accept()to continue the handshake, indicating the problem by the return value -1.In this case a call to SSL_get_error() with thereturn value of SSL_accept() will yield B<SSL_ERROR_WANT_READ> orB<SSL_ERROR_WANT_WRITE>. The calling process then must repeat the call aftertaking appropriate action to satisfy the needs of SSL_accept().The action depends on the underlying BIO. When using a non-blocking socket,nothing is to be done, but select() can be used to check for the requiredcondition. When using a buffering BIO, like a BIO pair, data must be writteninto or retrieved out of the BIO before being able to continue.=head1 RETURN VALUESThe following return values can occur:=over 4=item 1The TLS/SSL handshake was successfully completed, a TLS/SSL connection has beenestablished.=item 0The TLS/SSL handshake was not successful but was shut down controlled andby the specifications of the TLS/SSL protocol. Call SSL_get_error() with thereturn value B<ret> to find out the reason.=item E<lt>0The TLS/SSL handshake was not successful because a fatal error occurred eitherat the protocol level or a connection failure occurred. The shutdown wasnot clean. It can also occur of action is need to continue the operationfor non-blocking BIOs. Call SSL_get_error() with the return value B<ret>to find out the reason.=back=head1 SEE ALSOL<SSL_get_error(3)|SSL_get_error(3)>, L<SSL_connect(3)|SSL_connect(3)>,L<SSL_shutdown(3)|SSL_shutdown(3)>, L<ssl(3)|ssl(3)>, L<bio(3)|bio(3)>,L<SSL_set_connect_state(3)|SSL_set_connect_state(3)>,L<SSL_do_handshake(3)|SSL_do_handshake(3)>,L<SSL_CTX_new(3)|SSL_CTX_new(3)>=cut

⌨️ 快捷键说明

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