[or-cvs] Very blunt debugging code: log pending errors at start and ...
Nick Mathewson
nickm at seul.org
Mon Apr 26 02:33:14 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv26364/src/common
Modified Files:
tortls.c
Log Message:
Very blunt debugging code: log pending errors at start and end of tor_tls_verify
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- tortls.c 25 Apr 2004 19:59:38 -0000 1.44
+++ tortls.c 26 Apr 2004 02:33:12 -0000 1.45
@@ -434,7 +434,7 @@
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 @@
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 @@
X509_free(cert);
if (id_pkey)
EVP_PKEY_free(id_pkey);
+
+ /* XXXX */
+ tls_log_errors(LOG_WARN, "finishing tor_tls_verify");
+
return r;
}
More information about the tor-commits
mailing list