Be more strict about minimum DH prime size for TLS connections.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 2 Sep 2016 09:22:50 +0000 (11:22 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 2 Sep 2016 09:22:50 +0000 (11:22 +0200)
commitb130471c6066581ae882fa049603e2e3567585c7
treea035362dac57bedf07ffb52e70c6e83954159f91
parent49e55fb57409d81e8091c881cf47deb23777a423
Be more strict about minimum DH prime size for TLS connections.

Since GnuTLS 3.1.7, this minimum size is dictated by the
priority string, and current (GnuTLS 3.3.0) "safe-enough"
value is 1008 bits. We set this minimum size explicitly
for older GnuTLS versions.

Users who are affected by this (their servers use DH prime
smaller than 1008 bits can override this by using priority
string starting with the keyword "LEGACY". This keyword
only works with GnuTLS 3.3.0 or newer, however.
src/common/ssl.c