[Pkg-wmaker-commits] [wmbiff] 06/07: oops, should pay attention to the retval of tls_compare_certificates

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:05:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_24
in repository wmbiff.

commit 6abde244a03cd83ac02d22dae528c200bf005220
Author: bluehal <bluehal>
Date:   Sun Jun 20 01:03:57 2004 +0000

    oops, should pay attention to the retval of tls_compare_certificates
---
 wmbiff/tlsComm.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/wmbiff/tlsComm.c b/wmbiff/tlsComm.c
index 81a56c1..1010bd3 100644
--- a/wmbiff/tlsComm.c
+++ b/wmbiff/tlsComm.c
@@ -460,7 +460,11 @@ tls_check_certificate(struct connection_state *scs,
 		}
 	}
 
-	tls_compare_certificates(&cert_list[0]);
+	if ( certificate_filename != NULL && 
+         tls_compare_certificates(&cert_list[0]) == 0 ) {
+		bad_certificate(scs,
+						"server's certificate was not found in the certificate file.\n");
+    }
 
 	gnutls_x509_crt_deinit(cert);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list