diff options
author | tron <tron@pkgsrc.org> | 2005-02-20 13:02:28 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2005-02-20 13:02:28 +0000 |
commit | ad16c7386d9277d2c3aa41de01a67804fd8a16a0 (patch) | |
tree | 2ae49982d6f88cd8588e214dc4dce102fea8ee1b /mail/wmbiff/patches | |
parent | 9489b6a49cd9acd7880130ddf6d0dc82e954066a (diff) | |
download | pkgsrc-ad16c7386d9277d2c3aa41de01a67804fd8a16a0.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')
-rw-r--r-- | mail/wmbiff/patches/patch-ac | 19 |
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, |