DKIM: under GnuTLS, permit weak algorithms
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 28 May 2021 19:04:44 +0000 (20:04 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 3 Jun 2021 22:44:31 +0000 (23:44 +0100)
Recent versions of GnuTLS by default disallow use of some methods now regarded as
weak.  This probably mean sha1, which is deprecated per DKIM standards.

src/src/pdkim/signing.c

index f63ba449eff1fbbbd6b87a5905697d274af70d9f..d818fc9df0de02272b656eb7beeed0c4261145d1 100644 (file)
@@ -219,7 +219,8 @@ else
     default:           return US"nonhandled hash type";
     }
 
-  if ((rc = gnutls_pubkey_verify_hash2(verify_ctx->key, algo, 0, &k, &s)) < 0)
+  if ((rc = gnutls_pubkey_verify_hash2(verify_ctx->key, algo,
+             GNUTLS_VERIFY_ALLOW_BROKEN, &k, &s)) < 0)
     ret = US gnutls_strerror(rc);
   }