Browse Source

[Development] Add more debug logging into {C,S}SecurityVeNCrypt.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4100 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.0.90
Adam Tkac 14 years ago
parent
commit
db062b6b51
2 changed files with 10 additions and 0 deletions
  1. 8
    0
      common/rfb/CSecurityVeNCrypt.cxx
  2. 2
    0
      common/rfb/SSecurityVeNCrypt.cxx

+ 8
- 0
common/rfb/CSecurityVeNCrypt.cxx View File

@@ -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) : csecurity(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,8 @@ 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:

+ 2
- 0
common/rfb/SSecurityVeNCrypt.cxx View File

@@ -178,6 +178,8 @@ 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:

Loading…
Cancel
Save