$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) {