TigerVNC/tigervnc — pull request #56 by michalsrb (2014-11-03 13:43:53+00:00)
Title: Include VeNCrypt only if any subtype is present.

Tigervnc can select VeNCrypt automatically, but only when any of it's subtypes is selected.

I found this when debugging why some clients (like vinagre from GNOME) fail to connect to tigervnc Xvnc server. The problem is that since SVN revision 4301, tigervnc implicitly offers VeNCrypt as first option. Even
if there are no VeNCrypt subtypes selected. For example when using "-securitytypes=none".
The VNC clients then typically selects the first option - VeNCrypt - and then receives empty list of VeNCrypt subtypes. While some clients ignore that and proceed with next security type, others interpret this (correctly?) as an error and close the connection.