]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove obsolete ifdef in m_ssl_gnutls.
authorPeter Powell <petpow@saberuk.com>
Sat, 16 Feb 2019 12:06:44 +0000 (12:06 +0000)
committerPeter Powell <petpow@saberuk.com>
Sat, 16 Feb 2019 12:06:44 +0000 (12:06 +0000)
GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+

src/modules/extra/m_ssl_gnutls.cpp

index f5711cbd740faf28e7fb55ca2e36662e0f11c2d0..1e5554f983d439ed43a4c2c0c0b5415b58abbbfb 100644 (file)
@@ -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