diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2014-04-05 16:36:02 -0500 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2014-04-05 18:38:19 -0500 |
commit | a705cd625cd4ae61ba05cb8333a46662429ca6a1 (patch) | |
tree | e8087b6c891d1fc79268729851d6ee580ba2ee2d | |
parent | 0e19b7c5096140d149f78ddda7c0317593164f35 (diff) | |
download | libtdevnc-a705cd625cd4ae61ba05cb8333a46662429ca6a1.tar.gz libtdevnc-a705cd625cd4ae61ba05cb8333a46662429ca6a1.zip |
libvncclient: If we have TLS support, enable VeNCrypt by default
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r-- | libvncclient/rfbproto.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)))) { |