diff options
author | Adam Tkac <atkac@redhat.com> | 2010-07-20 15:13:24 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-07-20 15:13:24 +0000 |
commit | db062b6b518b2807e6cc389c2ff10c5ab18ced29 (patch) | |
tree | fa7ff864b01f4af57b9553cb422f021dd84d536a /common/rfb/CSecurityVeNCrypt.cxx | |
parent | 957a5aea6412e6371728a8c2a102a4673383b5b4 (diff) | |
download | tigervnc-db062b6b518b2807e6cc389c2ff10c5ab18ced29.tar.gz tigervnc-db062b6b518b2807e6cc389c2ff10c5ab18ced29.zip |
[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
Diffstat (limited to 'common/rfb/CSecurityVeNCrypt.cxx')
-rw-r--r-- | common/rfb/CSecurityVeNCrypt.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 521f7060..87b81b60 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) : 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:
|