From: Nick Mathewson Date: Wed, 21 Jul 2004 03:32:56 +0000 (+0000) Subject: Log number of certs in wrong-length chains X-Git-Tag: tor-0.0.8pre1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d514037b7c9fa8a04eca4cf6e3864953b020d16;p=thirdparty%2Ftor.git Log number of certs in wrong-length chains svn:r2078 --- diff --git a/src/common/tortls.c b/src/common/tortls.c index c3ba4ae83c..60e6f19cab 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -623,7 +623,8 @@ tor_tls_verify(tor_tls *tls, crypto_pk_env_t **identity_key) 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) {