diff options
author | Zachary Amsden <zamsden@redhat.com> | 2009-07-30 00:15:01 -1000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-24 08:01:40 -0500 |
commit | 52c18be9e99dabe295321153fda7fce9f76647ac (patch) | |
tree | b331873e8ebda01cbe5cbcc08a55bc3e73559a93 /vnc.c | |
parent | 7ef923310a73b8de3e1a07e901b62a2c50dd36be (diff) | |
download | qemu-52c18be9e99dabe295321153fda7fce9f76647ac.zip qemu-52c18be9e99dabe295321153fda7fce9f76647ac.tar.gz qemu-52c18be9e99dabe295321153fda7fce9f76647ac.tar.bz2 |
When using stdio monitor and VNC display, one can set or clear a VNC password; this should set or turn off VNC authentication as well.
Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2274,6 +2274,11 @@ int vnc_display_password(DisplayState *ds, const char *password) if (password && password[0]) { if (!(vs->password = qemu_strdup(password))) return -1; + if (vs->auth == VNC_AUTH_NONE) { + vs->auth = VNC_AUTH_VNC; + } + } else { + vs->auth = VNC_AUTH_NONE; } return 0; |