#include <rfb/CSecurityTLS.h>\r
#include <rfb/CSecurityVeNCrypt.h>\r
#include <rfb/CSecurityVncAuth.h>\r
+#include <rfb/LogWriter.h>\r
#include <rfb/SSecurityVeNCrypt.h>\r
#include <list>\r
\r
using namespace rdr;\r
using namespace std;\r
\r
+static LogWriter vlog("CVeNCrypt");\r
+\r
CSecurityVeNCrypt::CSecurityVeNCrypt(void) : csecurity(NULL)\r
{\r
haveRecvdMajorVersion = false;\r
if (is->checkNoWait(4)) {\r
availableTypes[iAvailableType++] = is->readU32();\r
haveListOfTypes = (iAvailableType >= nAvailableTypes);\r
+ vlog.debug("Server offers security type %s (%d)",\r
+ secTypeName(availableTypes[iAvailableType - 1]),\r
+ availableTypes[iAvailableType - 1]);\r
\r
if (!haveListOfTypes)\r
return false;\r
break;\r
}\r
\r
+ vlog.debug("Choosing security type %s (%d)", secTypeName(chosenType),\r
+ chosenType);\r
/* Set up the stack according to the chosen type: */\r
switch (chosenType) {\r
case secTypeTLSNone:\r
if (!haveChosenType)\r
chosenType = secTypeInvalid;\r
\r
+ vlog.debug("Choosing security type %s (%d)", secTypeName(chosenType),\r
+ chosenType);\r
/* Set up the stack according to the chosen type */\r
switch(chosenType) {\r
case secTypeTLSNone:\r