Hide the GNUTLS options in vncviewer when support isn't present.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4150 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index 455faa2..1a75a11 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -616,6 +616,7 @@
   options.sendPrimary.checked(sendPrimary);
   if (state() == RFBSTATE_NORMAL) {
     options.shared.disabled(true);
+#ifdef HAVE_GNUTLS
     options.secVeNCrypt.disabled(true);
     options.encNone.disabled(true);
     options.encTLS.disabled(true);
@@ -625,9 +626,11 @@
     options.secNone.disabled(true);
     options.secVnc.disabled(true);
     options.secPlain.disabled(true);
+#endif
   } else {
     options.shared.checked(shared);
 
+#ifdef HAVE_GNUTLS
     /* Process non-VeNCrypt sectypes */
     list<U8> secTypes = security->GetEnabledSecTypes();
     list<U8>::iterator i;
@@ -684,6 +687,7 @@
         }
       }
     }
+#endif
   }
   options.fullScreen.checked(fullScreen);
   options.useLocalCursor.checked(useLocalCursor);
@@ -755,6 +759,7 @@
     desktop->setNoCursor();
   checkEncodings();
 
+#ifdef HAVE_GNUTLS
   /* Process security types which don't use encryption */
   if (options.encNone.checked()) {
     if (options.secNone.checked())
@@ -839,7 +844,6 @@
     security->DisableSecType(secTypeX509Plain);
   }
 
-#ifdef HAVE_GNUTLS
   CSecurityTLS::x509ca.setParam(options.ca.getText());
   CSecurityTLS::x509crl.setParam(options.crl.getText());
 #endif