diff options
author | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:14:11 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:14:11 +0000 |
commit | dfe19cfff8deed3adbf0b4190763bbd243e56d07 (patch) | |
tree | 5003cda4be862ab009368b994f4d27462abc3dcd /common/rfb/Security.cxx | |
parent | 35e6d4c554e6f9fd9c1446db647fbaf3dbc6c087 (diff) | |
download | tigervnc-dfe19cfff8deed3adbf0b4190763bbd243e56d07.tar.gz tigervnc-dfe19cfff8deed3adbf0b4190763bbd243e56d07.zip |
[Development] Implement VeNCrypt security type on server side. Currently only
TLSNone and TLSVnc VeNCrypt subtypes are implemented.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4045 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Security.cxx')
-rw-r--r-- | common/rfb/Security.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index fac2d4bd..589eaa66 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -28,6 +28,7 @@ #include <rfb/Security.h> #include <rfb/SSecurityNone.h> #include <rfb/SSecurityVncAuth.h> +#include <rfb/SSecurityVeNCrypt.h> #include <rfb/util.h> using namespace rdr; @@ -80,6 +81,7 @@ SSecurity* Security::GetSSecurity(U8 secType) switch (secType) { case secTypeNone: return new SSecurityNone(); case secTypeVncAuth: return new SSecurityVncAuth(); + case secTypeVeNCrypt: return new SSecurityVeNCrypt(); } bail: @@ -110,7 +112,8 @@ rdr::U8 rfb::secTypeNum(const char* name) if (strcasecmp(name, "RA2") == 0) return secTypeRA2; if (strcasecmp(name, "RA2ne") == 0) return secTypeRA2ne; if (strcasecmp(name, "SSPI") == 0) return secTypeSSPI; - if (strcasecmp(name, "SSPIne") == 0) return secTypeSSPIne; + if (strcasecmp(name, "SSPIne") == 0) return secTypeSSPIne; + if (strcasecmp(name, "VeNCrypt") == 0) return secTypeVeNCrypt; return secTypeInvalid; } @@ -124,6 +127,7 @@ const char* rfb::secTypeName(rdr::U8 num) case secTypeRA2ne: return "RA2ne"; case secTypeSSPI: return "SSPI"; case secTypeSSPIne: return "SSPIne"; + case secTypeVeNCrypt: return "VeNCrypt"; default: return "[unknown secType]"; } } |