mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Default <sslprofile:hash> to sha256 for GnuTLS and OpenSSL.
This commit is contained in:
parent
e1ed9b275f
commit
efe904f2f0
@ -553,7 +553,7 @@ namespace GnuTLS
|
||||
, dh(DHParams::Import(ReadFile(tag->getString("dhfile", "dhparams.pem", 1))))
|
||||
, priostr(GetPrioStr(profilename, tag))
|
||||
, mindh(tag->getUInt("mindhbits", 1024))
|
||||
, hashstr(tag->getString("hash", "md5", 1))
|
||||
, hashstr(tag->getString("hash", "sha256", 1))
|
||||
, requestclientcert(tag->getBool("requestclientcert", true))
|
||||
{
|
||||
// Load trusted CA and revocation list, if set
|
||||
|
@ -352,7 +352,7 @@ namespace OpenSSL
|
||||
if ((!ctx.SetDH(dh)) || (!clictx.SetDH(dh)))
|
||||
throw Exception("Couldn't set DH parameters");
|
||||
|
||||
const std::string hash = tag->getString("hash", "md5", 1);
|
||||
const std::string hash = tag->getString("hash", "sha256", 1);
|
||||
digest = EVP_get_digestbyname(hash.c_str());
|
||||
if (digest == NULL)
|
||||
throw Exception("Unknown hash type " + hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user