From: Pierre Ossman Date: Tue, 9 Oct 2018 14:54:38 +0000 (+0200) Subject: Log TLS handshake result X-Git-Tag: v1.9.90~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83eee75c263bc725b53a0d1de957292d2fbd367e;p=tigervnc.git Log TLS handshake result Makes it easier to debug TLS issues, and to see the effect of altering the priority string. --- 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);