summaryrefslogtreecommitdiffstats
path: root/common/rfb/Security.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-02-01 14:34:30 +0000
committerAdam Tkac <atkac@redhat.com>2011-02-01 14:34:30 +0000
commit98bf0e9c15b3a752ff4ae825834f10618a8d8b53 (patch)
treec9a64c4c1bbcbeb0b29bd022e10c52cba2b9033d /common/rfb/Security.h
parent1238c043fd1d7ee129b270ca9f0d02b9fa11dfbd (diff)
downloadtigervnc-98bf0e9c15b3a752ff4ae825834f10618a8d8b53.tar.gz
tigervnc-98bf0e9c15b3a752ff4ae825834f10618a8d8b53.zip
[Development] Allow to set security types directly in the Security class
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4244 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Security.h')
-rw-r--r--common/rfb/Security.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rfb/Security.h b/common/rfb/Security.h
index 8c90d764..c5527dc6 100644
--- a/common/rfb/Security.h
+++ b/common/rfb/Security.h
@@ -80,6 +80,8 @@ namespace rfb {
void EnableSecType(rdr::U32 secType);
void DisableSecType(rdr::U32 secType) { enabledSecTypes.remove(secType); }
+ void SetSecTypes(std::list<rdr::U32> &secTypes) { enabledSecTypes = secTypes; }
+
/* Check if certain type is supported */
bool IsSupported(rdr::U32 secType);