summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-12 04:43:25 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-12 04:43:25 +0000
commitaace52320c66f29ac8bec4cba272455b957983cc (patch)
treeee9970f9030bd1bec0e37a9bb18f60b6f8dd8797 /src/common/tortls.c
parent5ced3fd790ed62574df345bc04ec01de45ea711d (diff)
downloadtor-aace52320c66f29ac8bec4cba272455b957983cc.tar.gz
tor-aace52320c66f29ac8bec4cba272455b957983cc.zip
r18041@catbus: nickm | 2008-02-11 23:43:18 -0500
Make version negotiation and handshaking messages more useful and accurate. svn:r13477
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 76c7702857..9f6c1d560c 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -921,6 +921,8 @@ tor_tls_handshake(tor_tls_t *tls)
" get set. Fixing that.");
}
tls->wasV2Handshake = 1;
+ log_debug(LD_NET, "Completed V2 TLS handshake with client; waiting "
+ "for renegotiation."));
} else {
tls->wasV2Handshake = 0;
}
@@ -934,7 +936,8 @@ tor_tls_handshake(tor_tls_t *tls)
if (n_certs > 1 || (n_certs == 1 && cert != sk_X509_value(chain, 0)))
tls->wasV2Handshake = 0;
else {
- log_debug(LD_NET, "I think I got a v2 handshake on %p!", tls);
+ log_debug(LD_NET, "Server sent back a single certificate; looks like "
+ "a v2 handshake on %p.", tls);
tls->wasV2Handshake = 1;
}
if (cert)