Minor refactoring to prepare the source for handling TightVNC protocol extensions. This one does not introduce any real changes.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@649 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index 1422b54..3901a81 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -179,6 +179,11 @@
vlog.debug("processing security type message");
int secType = is->readU8();
+ processSecurityType(secType);
+}
+
+void SConnection::processSecurityType(int secType)
+{
// Verify that the requested security type should be offered
std::list<rdr::U8> secTypes;
std::list<rdr::U8>::iterator i;
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h
index 6b943f5..4c76631 100644
--- a/common/rfb/SConnection.h
+++ b/common/rfb/SConnection.h
@@ -176,6 +176,7 @@
void processVersionMsg();
void processSecurityTypeMsg();
+ void processSecurityType(int secType);
void processSecurityMsg();
void processInitMsg();