]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Log if the server requested a rehandshake.
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Aug 2013 12:34:01 +0000 (14:34 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Aug 2013 12:34:01 +0000 (14:34 +0200)
src/connection.c

index 1fbbae57831f1464109380b4e5339df09e72710c..0d287491e861b9ad87f2d3844d592fc066768324 100644 (file)
@@ -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));