diff options
author | Pierre Ossman <ossman@cendio.se> | 2010-09-29 14:10:04 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2010-09-29 14:10:04 +0000 |
commit | fa955d2431f9382c5a3ea5ee5306b7f590d6ae45 (patch) | |
tree | aa23f409932648dc6fe7a7b51b90476b50e08e28 /unix | |
parent | 93e5a126a87939a557b8526b4f1dd5947dc0cb47 (diff) | |
download | tigervnc-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.cxx | 4 |
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() |