[or-cvs] Log pending TLS errors in a couple more places, in case the...
Nick Mathewson
nickm at seul.org
Mon Apr 26 16:52:50 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv7379/src/common
Modified Files:
tortls.c
Log Message:
Log pending TLS errors in a couple more places, in case they are possible.
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- tortls.c 26 Apr 2004 03:09:17 -0000 1.46
+++ tortls.c 26 Apr 2004 16:52:47 -0000 1.47
@@ -199,6 +199,7 @@
goto done;
error:
+ tls_log_errors(LOG_WARN, "generating certificate");
if (x509) {
X509_free(x509);
x509 = NULL;
@@ -317,6 +318,7 @@
return 0;
error:
+ tls_log_errors(LOG_WARN, "creating TLS context");
if (pkey)
EVP_PKEY_free(pkey);
if (rsa)
@@ -434,7 +436,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,9 +560,6 @@
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;
More information about the tor-commits
mailing list