[Development] Implement X509 VeNCrypt subtypes on the server side.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4105 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx
index e6a51bc..c6ab410 100644
--- a/common/rfb/Security.cxx
+++ b/common/rfb/Security.cxx
@@ -41,6 +41,7 @@
#ifdef HAVE_GNUTLS
#include <rfb/CSecurityTLS.h>
#include <rfb/SSecurityTLS.h>
+#include <rfb/SSecurityX509.h>
#endif
#include <rfb/util.h>
@@ -126,6 +127,10 @@
return new SSecurityStack(secTypeTLSNone, new SSecurityTLS());
case secTypeTLSVnc:
return new SSecurityStack(secTypeTLSVnc, new SSecurityTLS(), new SSecurityVncAuth());
+ case secTypeX509None:
+ return new SSecurityStack(secTypeX509None, new SSecurityX509());
+ case secTypeX509Vnc:
+ return new SSecurityStack(secTypeX509None, new SSecurityX509(), new SSecurityVncAuth());
#endif
}