From 27b2f773be4db49762d78635c2c322a95bd141ce Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 18 Nov 2010 13:33:57 +0000 Subject: [Development] client: Add dialog window to accept/save invalid X509 certificates. (Guillaume Destuynder) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4198 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/SecurityClient.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common/rfb/SecurityClient.cxx') diff --git a/common/rfb/SecurityClient.cxx b/common/rfb/SecurityClient.cxx index e5e428c6..0b69298e 100644 --- a/common/rfb/SecurityClient.cxx +++ b/common/rfb/SecurityClient.cxx @@ -37,6 +37,9 @@ using namespace rdr; using namespace rfb; UserPasswdGetter *CSecurity::upg = NULL; +#ifdef HAVE_GNUTLS +UserMsgBox *CSecurityTLS::msg = NULL; +#endif StringParameter SecurityClient::secTypes ("SecurityTypes", @@ -51,6 +54,9 @@ ConfViewer); CSecurity* SecurityClient::GetCSecurity(U32 secType) { assert (CSecurity::upg != NULL); /* (upg == NULL) means bug in the viewer */ +#ifdef HAVE_GNUTLS + assert (CSecurityTLS::msg != NULL); +#endif if (!IsSupported(secType)) goto bail; @@ -86,3 +92,9 @@ bail: throw Exception("Security type not supported"); } +void SecurityClient::setDefaults() +{ +#ifdef HAVE_GNUTLS + CSecurityTLS::setDefaults(); +#endif +} -- cgit v1.2.3