summaryrefslogtreecommitdiff
path: root/ui/vnc-auth-sasl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-02-19 10:46:49 +0100
committerGerd Hoffmann <kraxel@redhat.com>2015-03-12 08:22:07 +0100
commitbf7aa45e7b378691ea0e8616a2aeae2aaabb7bc3 (patch)
treed3995a08758c23f9fcac3e2c3fd41006caf05cfe /ui/vnc-auth-sasl.c
parent9159eb9abc31e02797dc55998e71f12c06846d55 (diff)
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>
Diffstat (limited to 'ui/vnc-auth-sasl.c')
-rw-r--r--ui/vnc-auth-sasl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc-auth-sasl.c b/ui/vnc-auth-sasl.c
index f3ad75d52b..2ddd2591f9 100644
--- a/ui/vnc-auth-sasl.c
+++ b/ui/vnc-auth-sasl.c
@@ -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 */