]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Set default security types as follows:
authorAdam Tkac <atkac@redhat.com>
Thu, 12 Aug 2010 14:24:43 +0000 (14:24 +0000)
committerAdam Tkac <atkac@redhat.com>
Thu, 12 Aug 2010 14:24:43 +0000 (14:24 +0000)
1. gnutls support is compiled in:
- server: VeNCrypt,TLSVnc,VncAuth
- client: VeNCrypt,X509Vnc,TLSVnc,X509None,TLSNone,VncAuth,None

2. gnutls support is disabled:
- server: VncAuth
- client: VncAuth,None

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4123 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/Security.cxx

index 600df14db67617752ed7dcfd3bf2b4ebaad1ef0b..71e45de831bbabc91ec3843545ba9fb9c6732b71 100644 (file)
@@ -55,12 +55,22 @@ UserPasswdGetter *CSecurity::upg = NULL;
 StringParameter Security::secTypesViewer
 ("SecurityTypes",
  "Specify which security scheme to use (None, VncAuth)",
- "VncAuth", ConfViewer);
+#ifdef HAVE_GNUTLS
+ "VeNCrypt,X509Vnc,TLSVnc,X509None,TLSNone,VncAuth,None",
+#else
+ "VncAuth,None",
+#endif
+ConfViewer);
 
 StringParameter Security::secTypesServer
 ("SecurityTypes",
  "Specify which security scheme to use (None, VncAuth)",
- "VncAuth", ConfServer);
+#ifdef HAVE_GNUTLS
+ "VeNCrypt,TLSVnc,VncAuth",
+#else
+ "VncAuth",
+#endif
+ConfServer);
 
 Security::Security(SecurityClassType secClassType)
 {