aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/tls/openssl/TLSSession_OpenSSL.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-11-29 21:08:25 +0000
committerVincent Richard <[email protected]>2012-11-29 21:33:31 +0000
commit3e9e8c9265f722d294c0060e1ccf29695fa5d2eb (patch)
tree73bb20a0855fbb3cf880f042804f3aa4583e9e8d /src/net/tls/openssl/TLSSession_OpenSSL.cpp
parentMerge pull request #14 from mabrand/fix-wincrypt (diff)
downloadvmime-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-xsrc/net/tls/openssl/TLSSession_OpenSSL.cpp3
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);
}