diff options
author | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:10:17 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:10:17 +0000 |
commit | f324dc451b343721a0721bdb6ab89608b8792d75 (patch) | |
tree | dba57552f17d471f496c336826954496897f2c47 /common/rfb/CConnection.h | |
parent | c210e8ab80bc93d792b01762ba81b79801e025cd (diff) | |
download | tigervnc-f324dc451b343721a0721bdb6ab89608b8792d75.tar.gz tigervnc-f324dc451b343721a0721bdb6ab89608b8792d75.zip |
[Development] Use enhanced Security class by both UNIX and Windows viewers.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4042 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/CConnection.h')
-rw-r--r-- | common/rfb/CConnection.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h index 79110eb9..6d3783a1 100644 --- a/common/rfb/CConnection.h +++ b/common/rfb/CConnection.h @@ -26,7 +26,9 @@ #include <rdr/InStream.h> #include <rdr/OutStream.h> #include <rfb/CMsgHandler.h> +#include <rfb/CSecurity.h> #include <rfb/util.h> +#include <rfb/Security.h> namespace rfb { @@ -96,15 +98,6 @@ namespace rfb { // Methods to be overridden in a derived class - // getCSecurity() gets the CSecurity object for the given type. The type - // is guaranteed to be one of the secTypes passed in to addSecType(). The - // CSecurity object's destroy() method will be called by the CConnection - // from its destructor. - virtual CSecurity* getCSecurity(int secType)=0; - - // getCurrentCSecurity() gets the CSecurity instance used for this connection. - const CSecurity* getCurrentCSecurity() const {return security;} - // getIdVerifier() returns the identity verifier associated with the connection. // Ownership of the IdentityVerifier is retained by the CConnection instance. virtual IdentityVerifier* getIdentityVerifier() {return 0;} @@ -149,8 +142,10 @@ namespace rfb { stateEnum state() { return state_; } + CSecurity *csecurity; /* Windows viewer needs it exported. */ protected: void setState(stateEnum s) { state_ = s; } + Security *security; private: void processVersionMsg(); @@ -168,7 +163,6 @@ namespace rfb { CMsgWriter* writer_; bool deleteStreamsWhenDone; bool shared; - CSecurity* security; enum { maxSecTypes = 8 }; int nSecTypes; rdr::U8 secTypes[maxSecTypes]; |