diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-21 03:32:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-21 03:32:56 +0000 |
commit | 2d514037b7c9fa8a04eca4cf6e3864953b020d16 (patch) | |
tree | 4035a066d03c7f09a836b4cde4a45a3e33271013 /src | |
parent | ddb6eb35afcd66e96011d9cba937a0fcde88d2d5 (diff) | |
download | tor-2d514037b7c9fa8a04eca4cf6e3864953b020d16.tar tor-2d514037b7c9fa8a04eca4cf6e3864953b020d16.tar.gz |
Log number of certs in wrong-length chains
svn:r2078
Diffstat (limited to 'src')
-rw-r--r-- | src/common/tortls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index c3ba4ae83..60e6f19ca 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) { |