From a705cd625cd4ae61ba05cb8333a46662429ca6a1 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 5 Apr 2014 16:36:02 -0500 Subject: libvncclient: If we have TLS support, enable VeNCrypt by default Signed-off-by: Johannes Schindelin --- libvncclient/rfbproto.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvncclient/rfbproto.c') diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 958780c..f5185ca 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -578,6 +578,9 @@ ReadSupportedSecurityType(rfbClient* client, uint32_t *result, rfbBool subAuth) rfbClientLog("%d) Received security type %d\n", loop, tAuth[loop]); if (flag) continue; if (tAuth[loop]==rfbVncAuth || tAuth[loop]==rfbNoAuth || +#if defined(LIBVNCSERVER_HAVE_GNUTLS) || defined(LIBVNCSERVER_HAVE_LIBSSL) + tAuth[loop]==rfbVeNCrypt || +#endif (tAuth[loop]==rfbARD && client->GetCredential) || (!subAuth && (tAuth[loop]==rfbTLS || (tAuth[loop]==rfbVeNCrypt && client->GetCredential)))) { -- cgit v1.1