pkgsrc/mail/wmbiff/patches/patch-ac
adam 3e563e05f0 Changes 0.4.26:
* Don't crash if no certificate is sent by the remote side
    and -skip-certificate-check has been given.
  * Avoid duplicate error messages.
  * Disable libgcrypt secure memory warning.
  * security.debian.rb: better when disconnected.
2005-09-06 15:49:35 +00:00

17 lines
642 B
Text

$NetBSD: patch-ac,v 1.6 2005/09/06 15:49:35 adam Exp $
--- wmbiff/tlsComm.c.orig 2004-10-11 00:29:47.000000000 +0000
+++ wmbiff/tlsComm.c
@@ -412,10 +412,12 @@ tls_check_certificate(struct connection_
"server's certificate is invalid or not X.509.\n"
"there may be a problem with the certificate stored in your certfile\n");
}
+#ifdef GNUTLS_CERT_NOT_TRUSTED
} else if (certstat & GNUTLS_CERT_NOT_TRUSTED) {
TDM(DEBUG_INFO, "server's certificate is not trusted.\n");
TDM(DEBUG_INFO,
"to verify that a certificate is trusted, use the certfile option.\n");
+#endif
}
if (gnutls_x509_crt_init(&cert) < 0) {