GNUTLS_DIG_SHA256 was added in version 1.7.4 and we require 2.0.0+
hash = GNUTLS_DIG_MD5;
else if (stdalgo::string::equalsci(hashname, "sha1"))
hash = GNUTLS_DIG_SHA1;
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;
else if (stdalgo::string::equalsci(hashname, "sha256"))
hash = GNUTLS_DIG_SHA256;
else
throw Exception("Unknown hash type " + hashname);
#endif
else
throw Exception("Unknown hash type " + hashname);
#endif