DKIM: fix build with older GnuTLS
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 23 Jul 2021 11:05:49 +0000 (12:05 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 23 Jul 2021 11:05:49 +0000 (12:05 +0100)
src/src/pdkim/signing.c
test/runtest

index d818fc9df0de02272b656eb7beeed0c4261145d1..5f24e8030c77caac8ed29ba8700160eb95f24d4a 100644 (file)
@@ -37,6 +37,10 @@ features_crypto(void)
 #ifdef SIGN_GNUTLS
 # define EXIM_GNUTLS_LIBRARY_LOG_LEVEL 3
 
+# ifndef GNUTLS_VERIFY_ALLOW_BROKEN
+#  define GNUTLS_VERIFY_ALLOW_BROKEN 0
+# endif
+
 
 /* Logging function which can be registered with
  *   gnutls_global_set_log_function()
index 9bde9046fc8fb11d681e9314512e4fc387f74549..f595634e9622b589f699e787bdb62a5c42990fb7 100755 (executable)
@@ -1097,6 +1097,7 @@ RESET_AFTER_EXTRA_LINE_READ:
     next if /^GnuTLS<2>: (Disabling X.509 extensions|signing structure using RSA-SHA256)/;
     next if /^GnuTLS.*(wrap_nettle_mpi_print|gnutls_subject_alt_names_get|get_alt_name)/;
     next if /^GnuTLS<[23]>: (p11|ASSERT: pkcs11.c|Initializing needed PKCS #11 modules)/;
+    next if /^GnuTLS<2>: Intel (AES|GCM) accelerator was detected/;
     next if /^Added \d{3} certificate authorities/;
     next if /^TLS: not preloading CRL for server/;