From: Attila Molnar Date: Mon, 20 Oct 2014 18:48:23 +0000 (+0200) Subject: m_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints X-Git-Tag: v2.0.23~117 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=5fe0592bbc049c2e7801ddb59182fa7219427d45;p=user%2Fhenk%2Fcode%2Finspircd.git m_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints --- diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 21b58f280..228ceb994 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -419,6 +419,10 @@ class ModuleSSLGnuTLS : public Module hash = GNUTLS_DIG_MD5; else if (hashname == "sha1") hash = GNUTLS_DIG_SHA1; +#ifdef INSPIRCD_GNUTLS_ENABLE_SHA256_FINGERPRINT + else if (hashname == "sha256") + hash = GNUTLS_DIG_SHA256; +#endif else throw ModuleException("Unknown hash type " + hashname);