aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-04 15:51:59 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-04 15:51:59 +0000
commit5dc1e6f788f9c62299be82d1a6132f0c454dbb42 (patch)
treeb9dfbbe1522e0b3e7faa9474c45f740c409180a0 /src/common/tortls.c
parent5c661654a04505a7f40e763c8a206a8c5c546c9a (diff)
downloadtor-5dc1e6f788f9c62299be82d1a6132f0c454dbb42.tar
tor-5dc1e6f788f9c62299be82d1a6132f0c454dbb42.tar.gz
if we're the server-side of the tls and there are problems,
don't yell as loudly. svn:r6716
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index ada32938e..e83fc3f5a 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -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) {