mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
vnc: drop display+ws_display from VncDisplay
Nobody cares about those strings, they are only used to check whenever the vnc server / websocket support is enabled or not. Add bools for this and drop the strings. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com>
This commit is contained in:
@@ -555,7 +555,7 @@ void start_auth_sasl(VncState *vs)
|
||||
|
||||
memset (&secprops, 0, sizeof secprops);
|
||||
/* Inform SASL that we've got an external SSF layer from TLS */
|
||||
if (strncmp(vs->vd->display, "unix:", 5) == 0
|
||||
if (vs->vd->is_unix
|
||||
#ifdef CONFIG_VNC_TLS
|
||||
/* Disable SSF, if using TLS+x509+SASL only. TLS without x509
|
||||
is not sufficiently strong */
|
||||
|
||||
Reference in New Issue
Block a user