From: Amos Jeffries Date: Sat, 14 Jan 2017 07:26:33 +0000 (+1300) Subject: Add debugs for session info after each handshake attempt X-Git-Tag: M-staged-PR71~284^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d9f9284bfac7f0933b480760bbf06c214618950;p=thirdparty%2Fsquid.git Add debugs for session info after each handshake attempt --- 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