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
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index f428116..455faa2 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 @@
security->DisableSecType(secTypeX509Plain);
}
+#ifdef HAVE_GNUTLS
CSecurityTLS::x509ca.setParam(options.ca.getText());
CSecurityTLS::x509crl.setParam(options.crl.getText());
+#endif
}
void CConn::resizeFramebuffer()