]> source.dussan.org Git - tigervnc.git/commitdiff
Add ifdef:s around TLS specific code in Unix vncviewer.
authorPierre Ossman <ossman@cendio.se>
Wed, 29 Sep 2010 14:10:04 +0000 (14:10 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 29 Sep 2010 14:10:04 +0000 (14:10 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4145 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/vncviewer/CConn.cxx

index f42811655ce129f04759c621974d86f78855fd25..455faa28b531f9af896d2d21746dcbcb124889bc 100644 (file)
@@ -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()