[or-cvs] if we"re the server-side of the tls and there are problems,

arma at seul.org arma at seul.org
Tue Jul 4 15:52:01 UTC 2006


Update of /home2/or/cvsroot/tor/src/common
In directory moria:/home/arma/work/onion/cvs/tor/src/common

Modified Files:
	tortls.c 
Log Message:
if we're the server-side of the tls and there are problems,
don't yell as loudly.


Index: tortls.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/tortls.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -p -d -r1.123 -r1.124
--- tortls.c	7 Jun 2006 06:21:09 -0000	1.123
+++ tortls.c	4 Jul 2006 15:51:59 -0000	1.124
@@ -531,7 +531,8 @@ tor_tls_handshake(tor_tls_t *tls)
   }
   r = tor_tls_get_error(tls,r,0, "handshaking", LOG_INFO);
   if (ERR_peek_error() != 0) {
-    tls_log_errors(LOG_WARN, "handshaking");
+    tls_log_errors(tls->isServer ? LOG_PROTOCOL_WARN : LOG_WARN,
+                   "handshaking");
     return TOR_TLS_ERROR;
   }
   if (r == TOR_TLS_DONE) {



More information about the tor-commits mailing list