From fb993153a026e5bfa3e7f87a34ca7155aea555d3 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 12 Aug 2010 14:17:28 +0000 Subject: [Development] Extend Security class to allow different default sectypes for server/viewer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4122 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/Security.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'common/rfb/Security.h') diff --git a/common/rfb/Security.h b/common/rfb/Security.h index 54cdb80e..6ee6b615 100644 --- a/common/rfb/Security.h +++ b/common/rfb/Security.h @@ -60,12 +60,14 @@ namespace rfb { const rdr::U32 secResultFailed = 1; const rdr::U32 secResultTooMany = 2; // deprecated + enum SecurityClassType { SecurityViewer, SecurityServer }; + class Security { public: /* * Create Security instance. */ - Security(void); + Security(SecurityClassType secClassType); /* * Note about security types. @@ -94,7 +96,8 @@ namespace rfb { /* Create client side CSecurity class instance */ CSecurity* GetCSecurity(rdr::U32 secType); - static StringParameter secTypes; + static StringParameter secTypesViewer; + static StringParameter secTypesServer; /* * Use variable directly instead of dumb get/set methods. It is used -- cgit v1.2.3