From 3b20040e9ffd0a556eb6f79ff7c67d52ec5716ea Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 15 Nov 2011 11:46:07 +0000 Subject: [PATCH] Set Diffie-Hellman prime size (bug SF#3434852). --- src/net/tls/TLSSession.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/tls/TLSSession.cpp b/src/net/tls/TLSSession.cpp index cb50acc7..06068085 100644 --- a/src/net/tls/TLSSession.cpp +++ b/src/net/tls/TLSSession.cpp @@ -139,6 +139,7 @@ TLSSession::TLSSession(ref cv) // Sets some default priority on the ciphers, key exchange methods, // macs and compression methods. #if HAVE_GNUTLS_PRIORITY_FUNCS + gnutls_dh_set_prime_bits(*m_gnutlsSession, 128); if ((res = gnutls_priority_set_direct (*m_gnutlsSession, "NORMAL:%SSL3_RECORD_VERSION", NULL)) != 0)