From c86db213d7e0b657a24be5859b32f5c3b359519f Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Tue, 20 Jul 2010 15:08:58 +0000 Subject: [PATCH] Use {C,S}Security instead of {C,S}SecurityStack objects in VeNCrypt routines. Signed-off-by: Martin Koegler git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4095 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/CSecurityVeNCrypt.cxx | 6 +++--- common/rfb/CSecurityVeNCrypt.h | 2 +- common/rfb/SSecurityVeNCrypt.cxx | 6 +++--- common/rfb/SSecurityVeNCrypt.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 12eed8f4..521f7060 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -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) diff --git a/common/rfb/CSecurityVeNCrypt.h b/common/rfb/CSecurityVeNCrypt.h index b466ba7c..7280546a 100644 --- a/common/rfb/CSecurityVeNCrypt.h +++ b/common/rfb/CSecurityVeNCrypt.h @@ -45,7 +45,7 @@ namespace rfb { protected: static CSecurityStack* getCSecurityStack(int secType); - CSecurityStack *csecurityStack; + CSecurity *csecurity; bool haveRecvdMajorVersion; bool haveRecvdMinorVersion; bool haveSentVersion; diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx index 860e440b..b8f9b577 100644 --- a/common/rfb/SSecurityVeNCrypt.cxx +++ b/common/rfb/SSecurityVeNCrypt.cxx @@ -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) diff --git a/common/rfb/SSecurityVeNCrypt.h b/common/rfb/SSecurityVeNCrypt.h index bedb6e22..fb24bdb4 100644 --- a/common/rfb/SSecurityVeNCrypt.h +++ b/common/rfb/SSecurityVeNCrypt.h @@ -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; -- 2.39.5