From 2d514037b7c9fa8a04eca4cf6e3864953b020d16 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 21 Jul 2004 03:32:56 +0000 Subject: Log number of certs in wrong-length chains svn:r2078 --- src/common/tortls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-54-g00ecf