mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Very blunt debugging code: log pending errors at start and end of tor_tls_verify
svn:r1707
This commit is contained in:
parent
10f3b74cb9
commit
cb465160da
@ -434,7 +434,7 @@ tor_tls_handshake(tor_tls *tls)
|
||||
r = tor_tls_get_error(tls,r,0, "handshaking", LOG_INFO);
|
||||
if (r == TOR_TLS_DONE) {
|
||||
tls->state = TOR_TLS_ST_OPEN;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
@ -558,6 +558,9 @@ tor_tls_verify(tor_tls *tls, crypto_pk_env_t *identity_key)
|
||||
time_t now, t;
|
||||
int r = -1;
|
||||
|
||||
/* XXXX */
|
||||
tls_log_errors(LOG_WARN, "preparing to verify");
|
||||
|
||||
if (!(cert = SSL_get_peer_certificate(tls->ssl)))
|
||||
return -1;
|
||||
|
||||
@ -587,6 +590,10 @@ tor_tls_verify(tor_tls *tls, crypto_pk_env_t *identity_key)
|
||||
X509_free(cert);
|
||||
if (id_pkey)
|
||||
EVP_PKEY_free(id_pkey);
|
||||
|
||||
/* XXXX */
|
||||
tls_log_errors(LOG_WARN, "finishing tor_tls_verify");
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user