From: Simon Ruderich Date: Sun, 18 Aug 2013 12:34:01 +0000 (+0200) Subject: Log if the server requested a rehandshake. X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=c3bbe13023ec0021a18f99d6e9b643d84a3505cb Log if the server requested a rehandshake. --- diff --git a/src/connection.c b/src/connection.c index 1fbbae5..0d28749 100644 --- a/src/connection.c +++ b/src/connection.c @@ -788,7 +788,11 @@ static int read_from_write_to_tls(gnutls_session_t from, /* Allow rehandshakes. As handshakes might be insecure make sure that * %SAFE_RENEGOTIATION is used in GnuTLS's priority string. */ if (size_read == GNUTLS_E_REHANDSHAKE) { - int result = gnutls_handshake(from); + int result; + + LOG(DEBUG1, "server requested TLS rehandshake"); + + result = gnutls_handshake(from); if (result != GNUTLS_E_SUCCESS) { LOG(WARNING, "server TLS rehandshake failed: %s", gnutls_strerror(result));