From 041344d02adcb89de51a57e38dd51d2959a4e494 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 21 Sep 2013 11:53:38 +0200 Subject: TLS properties: allows setting custom cipher suite for TLS/SSL connections. --- src/net/imap/IMAPConnection.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/net/imap/IMAPConnection.cpp') 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 tlsSession = - tls::TLSSession::create(store->getCertificateVerifier()); + ref tlsSession = tls::TLSSession::create + (store->getCertificateVerifier(), + store->getSession()->getTLSProperties()); ref tlsSocket = tlsSession->getSocket(m_socket); @@ -474,8 +475,9 @@ void IMAPConnection::startTLS() ("STARTTLS", resp->getErrorLog(), "bad response"); } - ref tlsSession = - tls::TLSSession::create(m_store.acquire()->getCertificateVerifier()); + ref tlsSession = tls::TLSSession::create + (m_store.acquire()->getCertificateVerifier(), + m_store.acquire()->getSession()->getTLSProperties()); ref tlsSocket = tlsSession->getSocket(m_socket); -- cgit v1.2.3