From: Pierre Ossman Date: Wed, 29 Sep 2010 14:10:04 +0000 (+0000) Subject: Add ifdef:s around TLS specific code in Unix vncviewer. X-Git-Tag: v1.0.90~169 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa955d2431f9382c5a3ea5ee5306b7f590d6ae45;p=tigervnc.git 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 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()