diff options
author | Adam Tkac <atkac@redhat.com> | 2010-07-20 15:12:41 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-07-20 15:12:41 +0000 |
commit | 957a5aea6412e6371728a8c2a102a4673383b5b4 (patch) | |
tree | cb911e383370e2390ef1348f5649be103d2ffbc1 /common | |
parent | b3e60c6a1aee8ebdce21642359642d97ddee46e1 (diff) | |
download | tigervnc-957a5aea6412e6371728a8c2a102a4673383b5b4.tar.gz tigervnc-957a5aea6412e6371728a8c2a102a4673383b5b4.zip |
[Development] Minor fixes in previous commit.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4099 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/Security.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index 6175ec1c..cc4889a7 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -156,14 +156,13 @@ rdr::U32 rfb::secTypeNum(const char* name) if (strcasecmp(name, "VeNCrypt") == 0) return secTypeVeNCrypt; /* VeNCrypt subtypes */ + if (strcasecmp(name, "Plain") == 0) return secTypePlain; if (strcasecmp(name, "TLSNone") == 0) return secTypeTLSNone; if (strcasecmp(name, "TLSVnc") == 0) return secTypeTLSVnc; -#if 0 /* Currently not implemented */ + if (strcasecmp(name, "TLSPlain") == 0) return secTypeTLSPlain; if (strcasecmp(name, "X509None") == 0) return secTypeX509None; if (strcasecmp(name, "X509Vnc") == 0) return secTypeX509Vnc; - if (strcasecmp(name, "TLSPlain") == 0) return secTypeTLSPlain; if (strcasecmp(name, "X509Plain") == 0) return secTypeX509Plain; -#endif return secTypeInvalid; } @@ -181,15 +180,13 @@ const char* rfb::secTypeName(rdr::U32 num) case secTypeVeNCrypt: return "VeNCrypt"; /* VeNCrypt subtypes */ + case secTypePlain: return "Plain"; case secTypeTLSNone: return "TLSNone"; case secTypeTLSVnc: return "TLSVnc"; -#if 0 /* Currently not implemented */ - case secTypePlain: return "Plain"; case secTypeTLSPlain: return "TLSPlain"; case secTypeX509None: return "X509None"; case secTypeX509Vnc: return "X509Vnc"; case secTypeX509Plain: return "X509Plain"; -#endif default: return "[unknown secType]"; } } |