summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-10-28 16:59:58 +0100
committerPierre Ossman <ossman@cendio.se>2014-10-28 16:59:58 +0100
commit800a35ccdd4025d4005206cb67154d010744cd0b (patch)
tree3ee343bd2d90320f1788adceddf8dd864feada27 /common
parent5b9303a697ffc056a337a4da42c8bea8942a7dd1 (diff)
downloadtigervnc-800a35ccdd4025d4005206cb67154d010744cd0b.tar.gz
tigervnc-800a35ccdd4025d4005206cb67154d010744cd0b.zip
Remove verbose TLS logging
We don't even log this much for RFB protocol stuff, and it makes it very annoying to run with full debugging on.
Diffstat (limited to 'common')
-rw-r--r--common/rfb/CSecurityTLS.cxx13
-rw-r--r--common/rfb/SSecurityTLS.cxx13
2 files changed, 0 insertions, 26 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index 30de37e5..222748c0 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -67,12 +67,6 @@ StringParameter CSecurityTLS::X509CA("X509CA", "X509 CA certificate", "", ConfVi
StringParameter CSecurityTLS::X509CRL("X509CRL", "X509 CRL file", "", ConfViewer);
static LogWriter vlog("TLS");
-static LogWriter vlog_raw("RawTLS");
-
-static void debug_log(int level, const char* str)
-{
- vlog_raw.debug("[%d]: %s", level, str);
-}
void CSecurityTLS::initGlobal()
{
@@ -80,13 +74,6 @@ void CSecurityTLS::initGlobal()
if (!globalInitDone) {
gnutls_global_init();
-
- /* 100 means debug log */
- if (vlog_raw.getLevel() >= 100) {
- gnutls_global_set_log_level(10);
- gnutls_global_set_log_function(debug_log);
- }
-
globalInitDone = true;
}
}
diff --git a/common/rfb/SSecurityTLS.cxx b/common/rfb/SSecurityTLS.cxx
index a40ec138..d4e88d74 100644
--- a/common/rfb/SSecurityTLS.cxx
+++ b/common/rfb/SSecurityTLS.cxx
@@ -45,12 +45,6 @@ StringParameter SSecurityTLS::X509_KeyFile
("X509Key", "Path to the key of the X509 certificate in PEM format", "", ConfServer);
static LogWriter vlog("TLS");
-static LogWriter vlog_raw("RawTLS");
-
-static void debug_log(int level, const char* str)
-{
- vlog.debug("[%d]: %s", level, str);
-}
void SSecurityTLS::initGlobal()
{
@@ -59,13 +53,6 @@ void SSecurityTLS::initGlobal()
if (!globalInitDone) {
if (gnutls_global_init() != GNUTLS_E_SUCCESS)
throw AuthFailureException("gnutls_global_init failed");
-
- /* 100 means debug log */
- if (vlog_raw.getLevel() >= 100) {
- gnutls_global_set_log_level(10);
- gnutls_global_set_log_function(debug_log);
- }
-
globalInitDone = true;
}
}