[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Log number of certs in wrong-length chains



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv27301/src/common

Modified Files:
	tortls.c 
Log Message:
Log number of certs in wrong-length chains

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- tortls.c	21 Jul 2004 00:44:03 -0000	1.59
+++ tortls.c	21 Jul 2004 03:32:56 -0000	1.60
@@ -623,7 +623,8 @@
   if (!(chain = SSL_get_peer_cert_chain(tls->ssl)))
     goto done;
   if (sk_X509_num(chain) != 2) {
-    log_fn(LOG_WARN,"Unexpected number of certificates in chain");
+    log_fn(LOG_WARN,"Unexpected number of certificates in chain (%d)",
+           sk_X509_num(chain));
     goto done;
   }
   for (i=0; i<2; ++i) {