Browse Source

Use {C,S}Security instead of {C,S}SecurityStack objects in VeNCrypt routines.

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-ca57d06f2519
tags/v1.0.90
Adam Tkac 14 years ago
parent
commit
c86db213d7

+ 3
- 3
common/rfb/CSecurityVeNCrypt.cxx View File

@@ -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)

+ 1
- 1
common/rfb/CSecurityVeNCrypt.h View File

@@ -45,7 +45,7 @@ namespace rfb {
protected:
static CSecurityStack* getCSecurityStack(int secType);
CSecurityStack *csecurityStack;
CSecurity *csecurity;
bool haveRecvdMajorVersion;
bool haveRecvdMinorVersion;
bool haveSentVersion;

+ 3
- 3
common/rfb/SSecurityVeNCrypt.cxx View File

@@ -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)

+ 1
- 1
common/rfb/SSecurityVeNCrypt.h View File

@@ -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;

Loading…
Cancel
Save