From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTm0f-0005q9-J0 for qemu-devel@nongnu.org; Tue, 16 Sep 2014 02:13:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTm0Z-0002gp-EU for qemu-devel@nongnu.org; Tue, 16 Sep 2014 02:13:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTm0Z-0002gc-6W for qemu-devel@nongnu.org; Tue, 16 Sep 2014 02:12:59 -0400 From: Gerd Hoffmann Date: Tue, 16 Sep 2014 08:12:41 +0200 Message-Id: <1410847961-9734-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1410847961-9734-1-git-send-email-kraxel@redhat.com> References: <1410847961-9734-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 1/1] spice: call qemu_spice_set_passwd() during init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Gerd Hoffmann , Anthony Liguori From: Marc-Andr=C3=A9 Lureau Don't call SPICE API directly to set password given in command line, but use the internal API, saving password for later calls. This solves losing password when changing expiration in qemu monitor. https://bugzilla.redhat.com/show_bug.cgi?id=3D1138639 Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 17a2ed3..6467fa4 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -733,7 +733,7 @@ void qemu_spice_init(void) tls_ciphers); } if (password) { - spice_server_set_ticket(spice_server, password, 0, 0, 0); + qemu_spice_set_passwd(password, false, false); } if (qemu_opt_get_bool(opts, "sasl", 0)) { if (spice_server_set_sasl_appname(spice_server, "qemu") =3D=3D -= 1 || --=20 1.8.3.1