1
0
forked from bip/bip

Add warning when using 512 bits long moduli for diffie hellman

This commit is contained in:
Arnaud Cornet 2009-01-25 14:41:19 +01:00
parent b62c3e4697
commit 5628da3ee0

View File

@ -1090,10 +1090,12 @@ static DH *tmp_dh_cb(SSL *ssl_unused, int export, int keylength)
{
DH *ret;
if (export && keylength == 512)
if (export && keylength == 512) {
mylog(LOG_WARN, "SSL: using 512 bits diffie hellman moduli");
ret = dh_512();
else
} else {
ret = dh_1024();
}
return ret;
}
#endif