SSL_CTX_set_mode,
SSL_set_mode
SSL_CTX_get_mode,
SSL_get_mode
manipulate SSL engine mode
libssl.lib
#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);
SSL_CTX_set_mode()
adds the mode set via bitmask in mode to ctx.
Options already set before are not cleared.
SSL_set_mode()
adds the mode set via bitmask in mode to ssl.
Options already set before are not cleared.
SSL_CTX_get_mode()
returns the mode set for ctx.
SSL_get_mode()
returns the mode set for ssl.
The following mode changes are available:
SSL_write()
will only report success once the complete chunk was written.
Once SSL_write()
returns with r, r bytes have been successfully written
and the next call to SSL_write()
must only send the n-r bytes left,
imitating the behaviour of write().
SSL_write()
with changed buffer location
(the buffer contents must stay the same). This is not the default to avoid
the misconception that non-blocking SSL_write()
behaves like
non-blocking write().
SSL_CTX_set_mode()
and
SSL_set_mode()
return the new mode bitmask
after adding mode.
SSL_CTX_get_mode()
and SSL_get_mode()
return the current bitmask.
ssl(), SSL_read(), SSL_write()
SSL_MODE_AUTO_RETRY as been added in OpenSSL 0.9.6.
For additional information or queries on this page send feedback
© 2005-2007 Nokia |