diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-12 04:43:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-12 04:43:25 +0000 |
commit | aace52320c66f29ac8bec4cba272455b957983cc (patch) | |
tree | ee9970f9030bd1bec0e37a9bb18f60b6f8dd8797 /src/common/tortls.c | |
parent | 5ced3fd790ed62574df345bc04ec01de45ea711d (diff) | |
download | tor-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.c | 5 |
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) |