mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Log number of certs in wrong-length chains
svn:r2078
This commit is contained in:
parent
ddb6eb35af
commit
2d514037b7
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue