aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2010-09-29 14:10:04 +0000
committerPierre Ossman <ossman@cendio.se>2010-09-29 14:10:04 +0000
commitfa955d2431f9382c5a3ea5ee5306b7f590d6ae45 (patch)
treeaa23f409932648dc6fe7a7b51b90476b50e08e28 /unix
parent93e5a126a87939a557b8526b4f1dd5947dc0cb47 (diff)
downloadtigervnc-fa955d2431f9382c5a3ea5ee5306b7f590d6ae45.tar.gz
tigervnc-fa955d2431f9382c5a3ea5ee5306b7f590d6ae45.zip
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
Diffstat (limited to 'unix')
-rw-r--r--unix/vncviewer/CConn.cxx4
1 files changed, 4 insertions, 0 deletions
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 <rfb/Security.h>
#include <rfb/CSecurityNone.h>
#include <rfb/CSecurityVncAuth.h>
+#ifdef HAVE_GNUTLS
#include <rfb/CSecurityTLS.h>
+#endif
#include <rfb/Hostname.h>
#include <rfb/LogWriter.h>
#include <rfb/util.h>
@@ -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()