qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 03/14] When using stdio monitor and VNC display, one


From: Zachary Amsden
Subject: [Qemu-devel] [PATCH 03/14] 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.
Date: Thu, 30 Jul 2009 00:15:01 -1000

Signed-off-by: Zachary Amsden <address@hidden>
---
 vnc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vnc.c b/vnc.c
index af485a1..19aeed7 100644
--- a/vnc.c
+++ b/vnc.c
@@ -2171,6 +2171,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;
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]