From 0d9f9284bfac7f0933b480760bbf06c214618950 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 14 Jan 2017 20:26:33 +1300 Subject: [PATCH] Add debugs for session info after each handshake attempt --- src/security/PeerConnector.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/security/PeerConnector.cc b/src/security/PeerConnector.cc index ae773dd0bc..39539909f8 100644 --- a/src/security/PeerConnector.cc +++ b/src/security/PeerConnector.cc @@ -191,6 +191,11 @@ Security::PeerConnector::negotiate() auto session = fd_table[fd].ssl.get(); debugs(83, 5, "gnutls_handshake session=" << (void*)session); const int result = gnutls_handshake(session); + + char *desc = gnutls_session_get_desc(session); + debugs(83, 5, "TLS Session info: " << desc); + gnutls_free(desc); + if (result != GNUTLS_E_SUCCESS) { debugs(83, 5, "gnutls_handshake session=" << (void*)session << ", result=" << result); #else -- 2.47.3