inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 9b031d4d98e5ca35b960d3f9b2498edf19b02939
parent 27e261780809073b5c776e535f8d2402c0df2ec7
Author: Peter Powell <petpow@saberuk.com>
Date:   Sat, 16 Feb 2019 12:06:44 +0000

Remove obsolete ifdef in m_ssl_gnutls.

GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+

Diffstat:
Msrc/modules/extra/m_ssl_gnutls.cpp | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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