Set Diffie-Hellman prime size (bug SF#3434852).

This commit is contained in:
Vincent Richard 2011-11-15 11:46:07 +00:00
parent 50f82c3a04
commit 3b20040e9f

View File

@ -139,6 +139,7 @@ TLSSession::TLSSession(ref <security::cert::certificateVerifier> 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)