summaryrefslogtreecommitdiff
path: root/mail/wmbiff/patches/patch-ac
diff options
context:
space:
mode:
authortron <tron>2005-02-20 13:02:28 +0000
committertron <tron>2005-02-20 13:02:28 +0000
commit327415a3e5285621f4d98202e7967cdd4f5607c2 (patch)
tree2ae49982d6f88cd8588e214dc4dce102fea8ee1b /mail/wmbiff/patches/patch-ac
parent1a7fcf12e5103e0a0fa7f15573aec5df50f3f894 (diff)
downloadpkgsrc-327415a3e5285621f4d98202e7967cdd4f5607c2.tar.gz
Only comment out support for GNUTLS_CERT_NOT_TRUSTED if the GnuTLS used
to build this package doesn't support it.
Diffstat (limited to 'mail/wmbiff/patches/patch-ac')
-rw-r--r--mail/wmbiff/patches/patch-ac19
1 files changed, 11 insertions, 8 deletions
diff --git a/mail/wmbiff/patches/patch-ac b/mail/wmbiff/patches/patch-ac
index 8d844f49917..7bf91e68e29 100644
--- a/mail/wmbiff/patches/patch-ac
+++ b/mail/wmbiff/patches/patch-ac
@@ -1,15 +1,18 @@
-$NetBSD: patch-ac,v 1.3 2005/02/19 22:44:25 wiz Exp $
+$NetBSD: patch-ac,v 1.4 2005/02/20 13:02:28 tron Exp $
---- wmbiff/tlsComm.c.orig 2004-06-23 23:44:45.000000000 +0200
-+++ wmbiff/tlsComm.c
-@@ -407,10 +407,6 @@ tls_check_certificate(struct connection_
+--- wmbiff/tlsComm.c.orig 2004-06-23 22:44:45.000000000 +0100
++++ wmbiff/tlsComm.c 2005-02-20 12:52:13.000000000 +0000
+@@ -407,11 +407,13 @@
"server's certificate is invalid or not X.509.\n"
"there may be a problem with the certificate stored in your certfile\n");
}
-- } 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");
++#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) {
+ bad_certificate(scs,