Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4095 3789f03b-4d11-0410-bbf8-ca57d06f2519tags/v1.0.90
@@ -36,7 +36,7 @@ using namespace rfb; | |||
using namespace rdr; | |||
using namespace std; | |||
CSecurityVeNCrypt::CSecurityVeNCrypt(void) : csecurityStack(NULL) | |||
CSecurityVeNCrypt::CSecurityVeNCrypt(void) : csecurity(NULL) | |||
{ | |||
haveRecvdMajorVersion = false; | |||
haveRecvdMinorVersion = false; | |||
@@ -169,7 +169,7 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc) | |||
case secTypeX509None: | |||
case secTypeX509Vnc: | |||
case secTypeX509Plain: | |||
csecurityStack = CSecurityVeNCrypt::getCSecurityStack(chosenType); | |||
csecurity = CSecurityVeNCrypt::getCSecurityStack(chosenType); | |||
break; | |||
case secTypeInvalid: | |||
@@ -193,7 +193,7 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc) | |||
throw AuthFailureException("The server reported 0 VeNCrypt sub-types"); | |||
} | |||
return csecurityStack->processMsg(cc); | |||
return csecurity->processMsg(cc); | |||
} | |||
CSecurityStack* CSecurityVeNCrypt::getCSecurityStack(int secType) |
@@ -45,7 +45,7 @@ namespace rfb { | |||
protected: | |||
static CSecurityStack* getCSecurityStack(int secType); | |||
CSecurityStack *csecurityStack; | |||
CSecurity *csecurity; | |||
bool haveRecvdMajorVersion; | |||
bool haveRecvdMinorVersion; | |||
bool haveSentVersion; |
@@ -62,7 +62,7 @@ StringParameter SSecurityVeNCrypt::secTypesStr | |||
SSecurityVeNCrypt::SSecurityVeNCrypt(void) | |||
{ | |||
ssecurityStack = NULL; | |||
ssecurity = NULL; | |||
haveSentVersion = false; | |||
haveRecvdMajorVersion = false; | |||
haveRecvdMinorVersion = false; | |||
@@ -186,7 +186,7 @@ bool SSecurityVeNCrypt::processMsg(SConnection* sc) | |||
case secTypeX509None: | |||
case secTypeX509Vnc: | |||
case secTypeX509Plain: | |||
ssecurityStack = SSecurityVeNCrypt::getSSecurityStack(chosenType); | |||
ssecurity = SSecurityVeNCrypt::getSSecurityStack(chosenType); | |||
break; | |||
case secTypeInvalid: | |||
case secTypeVeNCrypt: /* This would cause looping */ | |||
@@ -197,7 +197,7 @@ bool SSecurityVeNCrypt::processMsg(SConnection* sc) | |||
} | |||
/* continue processing the messages */ | |||
return ssecurityStack->processMsg(sc); | |||
return ssecurity->processMsg(sc); | |||
} | |||
SSecurityStack* SSecurityVeNCrypt::getSSecurityStack(int secType) |
@@ -65,7 +65,7 @@ namespace rfb { | |||
protected: | |||
static SSecurityStack* getSSecurityStack(int secType); | |||
SSecurityStack *ssecurityStack; | |||
SSecurity *ssecurity; | |||
bool haveSentVersion, haveRecvdMajorVersion, haveRecvdMinorVersion; | |||
bool haveSentTypes, haveChosenType; | |||
rdr::U8 majorVersion, minorVersion, numTypes; |