diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-09-21 15:31:11 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-09-21 15:59:46 +0200 |
commit | ad2b3c4aa3db056b83f5d91564400e03f3239835 (patch) | |
tree | a81ce066072a3c5db0665e4e522d3fbfd1c221ea /common/rfb/CSecurityStack.cxx | |
parent | 50aaed49b67e451cad63b3846989d13f083aad0a (diff) | |
download | tigervnc-ad2b3c4aa3db056b83f5d91564400e03f3239835.tar.gz tigervnc-ad2b3c4aa3db056b83f5d91564400e03f3239835.zip |
Strongly bind security objects to connection object
There is already an implicit connection between them, so let's make
it explicit. This allows easy lookup outside of the processMsg() function.
Diffstat (limited to 'common/rfb/CSecurityStack.cxx')
-rw-r--r-- | common/rfb/CSecurityStack.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/rfb/CSecurityStack.cxx b/common/rfb/CSecurityStack.cxx index 47c3f6db..55f3133e 100644 --- a/common/rfb/CSecurityStack.cxx +++ b/common/rfb/CSecurityStack.cxx @@ -21,9 +21,9 @@ using namespace rfb; -CSecurityStack::CSecurityStack(int Type, const char*Name, CSecurity* s0, - CSecurity* s1) - :name(Name),type(Type) +CSecurityStack::CSecurityStack(CConnection* cc, int Type, const char* Name, + CSecurity* s0, CSecurity* s1) + : CSecurity(cc), name(Name), type(Type) { state = 0; state0 = s0; @@ -38,12 +38,12 @@ CSecurityStack::~CSecurityStack() delete state1; } -bool CSecurityStack::processMsg(CConnection* cc) +bool CSecurityStack::processMsg() { bool res=true; if (state == 0) { if (state0) - res = state0->processMsg(cc); + res = state0->processMsg(); if (!res) return res; @@ -53,7 +53,7 @@ bool CSecurityStack::processMsg(CConnection* cc) if (state == 1) { if(state1) - res = state1->processMsg(cc); + res = state1->processMsg(); if(!res) return res; |