From 9b031d4d98e5ca35b960d3f9b2498edf19b02939 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 16 Feb 2019 12:06:44 +0000 Subject: Remove obsolete ifdef in m_ssl_gnutls. GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+ --- src/modules/extra/m_ssl_gnutls.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index f5711cbd7..1e5554f98 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -191,10 +191,8 @@ namespace GnuTLS hash = GNUTLS_DIG_MD5; else if (stdalgo::string::equalsci(hashname, "sha1")) hash = GNUTLS_DIG_SHA1; -#ifdef INSPIRCD_GNUTLS_ENABLE_SHA256_FINGERPRINT else if (stdalgo::string::equalsci(hashname, "sha256")) hash = GNUTLS_DIG_SHA256; -#endif else throw Exception("Unknown hash type " + hashname); #endif -- cgit v1.2.3