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

📄 ssl_ctx_set_mode.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMESSL_CTX_set_mode, SSL_set_mode, SSL_CTX_get_mode, SSL_get_mode - manipulate SSL engine mode=head1 SYNOPSIS #include <openssl/ssl.h> long SSL_CTX_set_mode(SSL_CTX *ctx, long mode); long SSL_set_mode(SSL *ssl, long mode); long SSL_CTX_get_mode(SSL_CTX *ctx); long SSL_get_mode(SSL *ssl);=head1 DESCRIPTIONSSL_CTX_set_mode() adds the mode set via bitmask in B<mode> to B<ctx>.Options already set before are not cleared.SSL_set_mode() adds the mode set via bitmask in B<mode> to B<ssl>.Options already set before are not cleared.SSL_CTX_get_mode() returns the mode set for B<ctx>.SSL_get_mode() returns the mode set for B<ssl>.=head1 NOTESThe following mode changes are available:=over 4=item SSL_MODE_ENABLE_PARTIAL_WRITEAllow SSL_write(..., n) to return r with 0 < r < n (i.e. report successwhen just a single record has been written). When not set (the default),SSL_write() will only report success once the complete chunk was written.Once SSL_write() returns with r, r bytes have been successfully writtenand the next call to SSL_write() must only send the n-r bytes left,imitating the behaviour of write().=item SSL_MODE_ACCEPT_MOVING_WRITE_BUFFERMake it possible to retry SSL_write() with changed buffer location(the buffer contents must stay the same). This is not the default to avoidthe misconception that non-blocking SSL_write() behaves likenon-blocking write().=item SSL_MODE_AUTO_RETRYNever bother the application with retries if the transport is blocking.If a renegotiation take place during normal operation, aL<SSL_read(3)|SSL_read(3)> or L<SSL_write(3)|SSL_write(3)> would returnwith -1 and indicate the need to retry with SSL_ERROR_WANT_READ.In a non-blocking environment applications must be prepared to handleincomplete read/write operations.In a blocking environment, applications are not always prepared todeal with read/write operations returning without success report. Theflag SSL_MODE_AUTO_RETRY will cause read/write operations to onlyreturn after the handshake and successful completion.=back=head1 RETURN VALUESSSL_CTX_set_mode() and SSL_set_mode() return the new mode bitmaskafter adding B<mode>.SSL_CTX_get_mode() and SSL_get_mode() return the current bitmask.=head1 SEE ALSOL<ssl(3)|ssl(3)>, L<SSL_read(3)|SSL_read(3)>, L<SSL_write(3)|SSL_write(3)>=head1 HISTORYSSL_MODE_AUTO_RETRY as been added in OpenSSL 0.9.6.=cut

⌨️ 快捷键说明

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