diff options
author | Vincent Richard <[email protected]> | 2013-09-21 09:53:38 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-09-21 09:53:38 +0000 |
commit | 041344d02adcb89de51a57e38dd51d2959a4e494 (patch) | |
tree | 206a2c7a7bed3a8152489420303a4be32f330a3a /src/net/imap/IMAPConnection.cpp | |
parent | Made template argument explicit to workaround compiler error on MSVC. (diff) | |
download | vmime-041344d02adcb89de51a57e38dd51d2959a4e494.tar.gz vmime-041344d02adcb89de51a57e38dd51d2959a4e494.zip |
TLS properties: allows setting custom cipher suite for TLS/SSL connections.
Diffstat (limited to 'src/net/imap/IMAPConnection.cpp')
-rw-r--r-- | src/net/imap/IMAPConnection.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/imap/IMAPConnection.cpp b/src/net/imap/IMAPConnection.cpp index 4002eded..53f8ba9f 100644 --- a/src/net/imap/IMAPConnection.cpp +++ b/src/net/imap/IMAPConnection.cpp @@ -112,8 +112,9 @@ void IMAPConnection::connect() #if VMIME_HAVE_TLS_SUPPORT if (store->isIMAPS()) // dedicated port/IMAPS { - ref <tls::TLSSession> tlsSession = - tls::TLSSession::create(store->getCertificateVerifier()); + ref <tls::TLSSession> tlsSession = tls::TLSSession::create + (store->getCertificateVerifier(), + store->getSession()->getTLSProperties()); ref <tls::TLSSocket> tlsSocket = tlsSession->getSocket(m_socket); @@ -474,8 +475,9 @@ void IMAPConnection::startTLS() ("STARTTLS", resp->getErrorLog(), "bad response"); } - ref <tls::TLSSession> tlsSession = - tls::TLSSession::create(m_store.acquire()->getCertificateVerifier()); + ref <tls::TLSSession> tlsSession = tls::TLSSession::create + (m_store.acquire()->getCertificateVerifier(), + m_store.acquire()->getSession()->getTLSProperties()); ref <tls::TLSSocket> tlsSocket = tlsSession->getSocket(m_socket); |