From 83eee75c263bc725b53a0d1de957292d2fbd367e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 9 Oct 2018 16:54:38 +0200 Subject: [PATCH] Log TLS handshake result Makes it easier to debug TLS issues, and to see the effect of altering the priority string. --- common/rfb/CSecurityTLS.cxx | 3 +++ common/rfb/SSecurityTLS.cxx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index e1a31f78..000331c0 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -196,6 +196,9 @@ bool CSecurityTLS::processMsg() throw AuthFailureException("TLS Handshake failed"); } + vlog.debug("TLS handshake completed with %s", + gnutls_session_get_desc(session)); + checkSession(); cc->setStreams(tlsis, tlsos); diff --git a/common/rfb/SSecurityTLS.cxx b/common/rfb/SSecurityTLS.cxx index 49532f52..d5ef47e6 100644 --- a/common/rfb/SSecurityTLS.cxx +++ b/common/rfb/SSecurityTLS.cxx @@ -163,7 +163,8 @@ bool SSecurityTLS::processMsg() throw AuthFailureException("TLS Handshake failed"); } - vlog.debug("Handshake completed"); + vlog.debug("TLS handshake completed with %s", + gnutls_session_get_desc(session)); sc->setStreams(tlsis, tlsos); -- 2.39.5