diff options
author | Vincent Richard <[email protected]> | 2012-11-29 21:08:25 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2012-11-29 21:33:31 +0000 |
commit | 3e9e8c9265f722d294c0060e1ccf29695fa5d2eb (patch) | |
tree | 73bb20a0855fbb3cf880f042804f3aa4583e9e8d /src/net/tls/openssl/TLSSession_OpenSSL.cpp | |
parent | Merge pull request #14 from mabrand/fix-wincrypt (diff) | |
download | vmime-3e9e8c9265f722d294c0060e1ccf29695fa5d2eb.tar.gz vmime-3e9e8c9265f722d294c0060e1ccf29695fa5d2eb.zip |
Better handling of SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE. Sockets on Windows platform are now non-blocking (thanks to Mehmet Bozkurt).
Diffstat (limited to 'src/net/tls/openssl/TLSSession_OpenSSL.cpp')
-rwxr-xr-x | src/net/tls/openssl/TLSSession_OpenSSL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/tls/openssl/TLSSession_OpenSSL.cpp b/src/net/tls/openssl/TLSSession_OpenSSL.cpp index 5d7e1052..248322d4 100755 --- a/src/net/tls/openssl/TLSSession_OpenSSL.cpp +++ b/src/net/tls/openssl/TLSSession_OpenSSL.cpp @@ -62,6 +62,9 @@ TLSSession_OpenSSL::TLSSession_OpenSSL(ref <vmime::security::cert::certificateVe m_sslctx = SSL_CTX_new(SSLv23_client_method()); SSL_CTX_set_options(m_sslctx, SSL_OP_ALL | SSL_OP_NO_SSLv2); + SSL_CTX_set_mode(m_sslctx, SSL_MODE_AUTO_RETRY); + SSL_CTX_set_cipher_list(m_sslctx, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); + SSL_CTX_set_session_cache_mode(m_sslctx, SSL_SESS_CACHE_OFF); } |