diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-26 02:33:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-26 02:33:12 +0000 |
commit | cb465160dac0e06e6d7a174fd2568fd26d655691 (patch) | |
tree | de0de3a5d0a5cf2d1f26e0f739a0e1407b0fe77b /src | |
parent | 10f3b74cb92f5a75f60e4d7d3eef05e11b980bfe (diff) | |
download | tor-cb465160dac0e06e6d7a174fd2568fd26d655691.tar.gz tor-cb465160dac0e06e6d7a174fd2568fd26d655691.zip |
Very blunt debugging code: log pending errors at start and end of tor_tls_verify
svn:r1707
Diffstat (limited to 'src')
-rw-r--r-- | src/common/tortls.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 09b6d11f24..5e0deef22a 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -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; } |