Skip to contentSkip to conversation

spice: call qemu_spice_set_passwd() during init

GIT PULL Applied Gerd Hoffmann 2 participants 3 messages Sep 16, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

Spice patch queue, with a single patch this time.

please pull,
Gerd

The following changes since commit cc35a44cf7b522b1fd0b786562b7de4b881c41b0:

Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging (2014-09-15 19:44:34 +0100)

are available in the git repository at:

git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140916-2

for you to fetch changes up to 07d49a53b6394941ed833486a3acb5c480d87db2:

spice: call qemu_spice_set_passwd() during init (2014-09-16 08:09:03 +0200)

----------------------------------------------------------------
spice: call qemu_spice_set_passwd() during init

----------------------------------------------------------------
Marc-André Lureau (1):
spice: call qemu_spice_set_passwd() during init

 ui/spice-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw

From: Marc-André Lureau <[email protected]>

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=1138639

---
 ui/spice-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/spice-core.c +1 -1
index 17a2ed3..6467fa4 100644
@@ -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") == -1 ||
Signature · 1 line
1.8.3.1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 16 lines · Gerd Hoffmann

Hi,

Spice patch queue, with a single patch this time.

please pull,
Gerd

The following changes since commit cc35a44cf7b522b1fd0b786562b7de4b881c41b0:

Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging (2014-09-15 19:44:34 +0100)

are available in the git repository at:

git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140916-2

Quoted 8 lines

for you to fetch changes up to 07d49a53b6394941ed833486a3acb5c480d87db2:

spice: call qemu_spice_set_passwd() during init (2014-09-16 08:09:03 +0200)

----------------------------------------------------------------
spice: call qemu_spice_set_passwd() during init

----------------------------------------------------------------

Applied, thanks.

-- PMM