diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-20 20:48:23 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-20 20:48:23 +0200 |
commit | 5fe0592bbc049c2e7801ddb59182fa7219427d45 (patch) | |
tree | 37f12fcc4623b63b536a200fd1a1a07eb640a833 | |
parent | cb45d5c3a51eb0e2c625809ee28c618faeb4da78 (diff) |
m_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |