[or-cvs] Add more logging on some ssl errors.

Nick Mathewson nickm at seul.org
Wed Oct 15 23:42:48 UTC 2003


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv1581/src/common

Modified Files:
	tortls.c 
Log Message:
Add more logging on some ssl errors.

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- tortls.c	10 Oct 2003 01:48:03 -0000	1.19
+++ tortls.c	15 Oct 2003 23:42:44 -0000	1.20
@@ -80,11 +80,13 @@
 	return _TOR_TLS_SYSCALL;
       assert(severity != LOG_ERR); /* XXX remove me when the bug is found */
       log(severity, "TLS error: <syscall error>.");
+      tls_log_error(severity, doing);
       return TOR_TLS_ERROR;
     case SSL_ERROR_ZERO_RETURN:
       if (extra&CATCH_ZERO)
 	return _TOR_TLS_ZERORETURN;
       log(severity, "TLS error: Zero return");
+      tls_log_error(severity, doing);
       return TOR_TLS_ERROR;
     default:
       tls_log_error(severity, doing);



More information about the tor-commits mailing list