From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWSjb-00058h-R9 for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:19:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWSjY-000551-3e for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:19:39 -0400 Received: from [199.232.76.173] (port=34904 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWSjX-00054h-Kv for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:19:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41334) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWSjX-0008B4-09 for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:19:35 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6UAJYip002742 for ; Thu, 30 Jul 2009 06:19:34 -0400 From: Zachary Amsden Date: Thu, 30 Jul 2009 00:15:01 -1000 Message-Id: <1248948912-7877-4-git-send-email-zamsden@redhat.com> In-Reply-To: <1248948912-7877-3-git-send-email-zamsden@redhat.com> References: <1248948912-7877-1-git-send-email-zamsden@redhat.com> <1248948912-7877-2-git-send-email-zamsden@redhat.com> <1248948912-7877-3-git-send-email-zamsden@redhat.com> 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. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: zamsden@redhat.com Signed-off-by: Zachary Amsden --- 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