From fa955d2431f9382c5a3ea5ee5306b7f590d6ae45 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 29 Sep 2010 14:10:04 +0000 Subject: [PATCH] Add ifdef:s around TLS specific code in Unix vncviewer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4145 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/vncviewer/CConn.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx index f4281165..455faa28 100644 --- a/unix/vncviewer/CConn.cxx +++ b/unix/vncviewer/CConn.cxx @@ -27,7 +27,9 @@ #include #include #include +#ifdef HAVE_GNUTLS #include +#endif #include #include #include @@ -837,8 +839,10 @@ void CConn::getOptions() { security->DisableSecType(secTypeX509Plain); } +#ifdef HAVE_GNUTLS CSecurityTLS::x509ca.setParam(options.ca.getText()); CSecurityTLS::x509crl.setParam(options.crl.getText()); +#endif } void CConn::resizeFramebuffer() -- 2.39.5