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/SecurityServer.h | |
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/SecurityServer.h')
-rw-r--r-- | common/rfb/SecurityServer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/rfb/SecurityServer.h b/common/rfb/SecurityServer.h index 019d67fc..354f6420 100644 --- a/common/rfb/SecurityServer.h +++ b/common/rfb/SecurityServer.h @@ -24,7 +24,8 @@ #include <rfb/Security.h> namespace rfb { - + + class SConnection; class SSecurity; class SecurityServer : public Security { @@ -32,7 +33,7 @@ namespace rfb { SecurityServer(void) : Security(secTypes) {} /* Create server side SSecurity class instance */ - SSecurity* GetSSecurity(rdr::U32 secType); + SSecurity* GetSSecurity(SConnection* sc, rdr::U32 secType); static StringParameter secTypes; }; |