]> source.dussan.org Git - tigervnc.git/commitdiff
Log TLS handshake result
authorPierre Ossman <ossman@cendio.se>
Tue, 9 Oct 2018 14:54:38 +0000 (16:54 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 9 Oct 2018 14:54:38 +0000 (16:54 +0200)
Makes it easier to debug TLS issues, and to see the effect of
altering the priority string.

common/rfb/CSecurityTLS.cxx
common/rfb/SSecurityTLS.cxx

index e1a31f78313ab98c135c6073af009a61d691bba2..000331c068d127a5f3a1e08edc4e37d09cbe6fca 100644 (file)
@@ -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);
index 49532f52913577911fdb05bd78509c5891778709..d5ef47e6d54acd82005ee2f94f929c79c651d4ec 100644 (file)
@@ -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);