diff options
author | Adam Tkac <atkac@redhat.com> | 2010-09-02 14:13:24 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-09-02 14:13:24 +0000 |
commit | 520fc416dd2f7742dd51b2efb5e42d3233f47d5d (patch) | |
tree | ae7a842f8fb47bf6b19ab8a51291b7cb5fb4e621 /common/rfb/Security.cxx | |
parent | 8c0483823727cb6e1e94ea9b12fc4b65a4b5204a (diff) | |
download | tigervnc-520fc416dd2f7742dd51b2efb5e42d3233f47d5d.tar.gz tigervnc-520fc416dd2f7742dd51b2efb5e42d3233f47d5d.zip |
[Development] Implement *Plain security types on the server side and use
PAM for credential validation on UNIX.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4128 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Security.cxx')
-rw-r--r-- | common/rfb/Security.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index 874c346f..2ea51fac 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -37,6 +37,7 @@ #include <rfb/Security.h> #include <rfb/SSecurityNone.h> #include <rfb/SSecurityStack.h> +#include <rfb/SSecurityPlain.h> #include <rfb/SSecurityVncAuth.h> #include <rfb/SSecurityVeNCrypt.h> #ifdef HAVE_GNUTLS @@ -146,15 +147,20 @@ SSecurity* Security::GetSSecurity(U32 secType) case secTypeNone: return new SSecurityNone(); case secTypeVncAuth: return new SSecurityVncAuth(); case secTypeVeNCrypt: return new SSecurityVeNCrypt(this); + case secTypePlain: return new SSecurityPlain(); #ifdef HAVE_GNUTLS case secTypeTLSNone: return new SSecurityStack(secTypeTLSNone, new SSecurityTLS(true)); case secTypeTLSVnc: return new SSecurityStack(secTypeTLSVnc, new SSecurityTLS(true), new SSecurityVncAuth()); + case secTypeTLSPlain: + return new SSecurityStack(secTypeTLSPlain, new SSecurityTLS(true), new SSecurityPlain()); case secTypeX509None: return new SSecurityStack(secTypeX509None, new SSecurityTLS(false)); case secTypeX509Vnc: return new SSecurityStack(secTypeX509None, new SSecurityTLS(false), new SSecurityVncAuth()); + case secTypeX509Plain: + return new SSecurityStack(secTypeX509Plain, new SSecurityTLS(false), new SSecurityPlain()); #endif } |