summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-09 16:54:38 +0200
committerPierre Ossman <ossman@cendio.se>2018-10-09 16:54:38 +0200
commit83eee75c263bc725b53a0d1de957292d2fbd367e (patch)
tree145ff9f046ab7c5e817d280de528b1fe48fda329
parent2b69d385e669bf97d872fd116c7f1da5aee7cdfd (diff)
downloadtigervnc-83eee75c263bc725b53a0d1de957292d2fbd367e.tar.gz
tigervnc-83eee75c263bc725b53a0d1de957292d2fbd367e.zip
Log TLS handshake result
Makes it easier to debug TLS issues, and to see the effect of altering the priority string.
-rw-r--r--common/rfb/CSecurityTLS.cxx3
-rw-r--r--common/rfb/SSecurityTLS.cxx3
2 files changed, 5 insertions, 1 deletions
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);