From c3bbe13023ec0021a18f99d6e9b643d84a3505cb Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 18 Aug 2013 14:34:01 +0200 Subject: [PATCH] Log if the server requested a rehandshake. --- src/connection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- 2.45.2