Signed-off-by: Martin Koegler <[email protected]>
---
common/rfb/CSecurityVeNCrypt.cxx | 7 +++++++
common/rfb/SSecurityVeNCrypt.cxx | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx
index 12eed8f..d07df53 100644
--- a/common/rfb/CSecurityVeNCrypt.cxx
+++ b/common/rfb/CSecurityVeNCrypt.cxx
@@ -29,6 +29,7 @@
#include <rfb/CSecurityTLS.h>
#include <rfb/CSecurityVeNCrypt.h>
#include <rfb/CSecurityVncAuth.h>
+#include <rfb/LogWriter.h>
#include <rfb/SSecurityVeNCrypt.h>
#include <list>
@@ -36,6 +37,8 @@ using namespace rfb;
using namespace rdr;
using namespace std;
+static LogWriter vlog("CVeNCrypt");
+
CSecurityVeNCrypt::CSecurityVeNCrypt(void) : csecurityStack(NULL)
{
haveRecvdMajorVersion = false;
@@ -131,6 +134,9 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc)
if (is->checkNoWait(4)) {
availableTypes[iAvailableType++] = is->readU32();
haveListOfTypes = (iAvailableType >= nAvailableTypes);
+ vlog.debug("Server offers security type %s(%d)",
+ secTypeName(availableTypes[iAvailableType-1]),
+ availableTypes[iAvailableType-1]);
if (!haveListOfTypes)
return false;
@@ -161,6 +167,7 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc)
break;
}
+ vlog.debug("Choosing security type
%s(%d)",secTypeName(chosenType),chosenType);
/* Set up the stack according to the chosen type: */
switch (chosenType) {
case secTypeTLSNone:
diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx
index 860e440..e023abe 100644
--- a/common/rfb/SSecurityVeNCrypt.cxx
+++ b/common/rfb/SSecurityVeNCrypt.cxx
@@ -178,6 +178,7 @@ bool SSecurityVeNCrypt::processMsg(SConnection* sc)
if (!haveChosenType)
chosenType = secTypeInvalid;
+ vlog.debug("Choosing security type
%s(%d)",secTypeName(chosenType),chosenType);
/* Set up the stack according to the chosen type */
switch(chosenType) {
case secTypeTLSNone:
--
1.6.4.2
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Tigervnc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel