diff options
author | Peter Powell <petpow@saberuk.com> | 2019-02-16 12:06:44 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-16 12:06:44 +0000 |
commit | 9b031d4d98e5ca35b960d3f9b2498edf19b02939 (patch) | |
tree | 16f30aa4f892ade5adc98649ba510f86ed84ee5a /src/modules/extra/m_ssl_gnutls.cpp | |
parent | 27e261780809073b5c776e535f8d2402c0df2ec7 (diff) |
Remove obsolete ifdef in m_ssl_gnutls.
GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 |
1 files changed, 0 insertions, 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 |