From 71d66663985cc19ef6d1947b36e668c2734641ac Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 11 Nov 2014 13:42:51 +0100 Subject: [PATCH] Always log chosen security type It's often useful to see if encryption was used, and how the user authenticated (if at all). --- common/rfb/CConnection.cxx | 2 +- common/rfb/CSecurityVeNCrypt.cxx | 2 +- common/rfb/SSecurityVeNCrypt.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx index 1695c3a6..e0a23b5a 100644 --- a/common/rfb/CConnection.cxx +++ b/common/rfb/CConnection.cxx @@ -181,7 +181,7 @@ void CConnection::processSecurityTypesMsg() if (secType != secTypeInvalid) { os->writeU8(secType); os->flush(); - vlog.debug("Choosing security type %s(%d)",secTypeName(secType),secType); + vlog.info("Choosing security type %s(%d)",secTypeName(secType),secType); } } diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 77eeef9a..a15da4a6 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -164,7 +164,7 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc) break; } - vlog.debug("Choosing security type %s (%d)", secTypeName(chosenType), + vlog.info("Choosing security type %s (%d)", secTypeName(chosenType), chosenType); /* Set up the stack according to the chosen type: */ diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx index 9e4260f4..39647f6e 100644 --- a/common/rfb/SSecurityVeNCrypt.cxx +++ b/common/rfb/SSecurityVeNCrypt.cxx @@ -157,7 +157,7 @@ bool SSecurityVeNCrypt::processMsg(SConnection* sc) if (!haveChosenType) chosenType = secTypeInvalid; - vlog.debug("Choosing security type %s (%d)", secTypeName(chosenType), + vlog.info("Client requests security type %s (%d)", secTypeName(chosenType), chosenType); /* Set up the stack according to the chosen type */ -- 2.39.5