From 80fb7efb29af87919a35bb8a609f50b29728d57e Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 12 Aug 2010 14:24:43 +0000 Subject: [PATCH] [Development] Set default security types as follows: 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 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index 600df14d..71e45de8 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -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) { -- 2.39.5