aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/SecurityClient.cxx
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-11-18 13:33:57 +0000
committerAdam Tkac <atkac@redhat.com>2010-11-18 13:33:57 +0000
commit27b2f773be4db49762d78635c2c322a95bd141ce (patch)
tree82a977c761d1e7c5ab55925fe51c80c4ed293c92 /common/rfb/SecurityClient.cxx
parent779dbb03473e9ad9b7d83c4d41515366b229a4c3 (diff)
downloadtigervnc-27b2f773be4db49762d78635c2c322a95bd141ce.tar.gz
tigervnc-27b2f773be4db49762d78635c2c322a95bd141ce.zip
[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
Diffstat (limited to 'common/rfb/SecurityClient.cxx')
-rw-r--r--common/rfb/SecurityClient.cxx12
1 files changed, 12 insertions, 0 deletions
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
+}