spice: auth fixes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJTv6ubAAoJEEy22O7T6HE4dV8QANelATxQDNDkRAhBsDG8j7A9 AgZoU4AhVve/xAJMDeHVTaqt2b5Kf3M2Jg4cDZxAXp0gABbFbNLzL4Xtw7mEBgpv gOdjWa/tXT/ugvZzCwZL82Ofk0bIpvjVwtfyMk+4i+x4XfpYrdYV60KH9Cw/MSF1 GTLtrItlbUNxvwuiE/ErzVyCZ6huGah+vcskWuiKx0BOUE+IytE2ofv8BLwNWU5D sznOxZESQR+n5mhJLfD867L4r3jRzqiXNGO1MeKHPOBEGgL23eOwGuFsjtFZFJq5 pcaYadSMCDlVTELs3eWKOcslEQMS9EbumH57lE+D5EKG7cynw8QpEmiAlb00g94O QMAplV73B7p9mfJGcx3u6Sj4PNXS+VjK2J6N0OVPHgWohpaGkH3bxjJUgKH/PikN cHIIciT0Y0fWLuvpPh5Iza4zkRhux8rjT46YoIyQw6H2AIyOVO1GOsQ285TtcJfh FuEBJ/47YyL+ZX0Qj6ZrlBQqTnAAXbULR8gTFqrg3xYNOP5popDEb+tdUFbvsrVd N3kzFR5DEDsABlfTH7FeA3KC2KsaaDBlgFT7uIyHY7wTs2HQuJPi45fOtv80IOn0 NQPelGNOMir34VCpw/60PLXfrtO7TCK2OWun1YTbVsuK2TXMtB3wKzjKlajGeiqZ CAnd5AyHav5G2PCRiU+6 =m1sh -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/spice/tags/pull-spice-20140711-1' into staging spice: auth fixes # gpg: Signature made Fri 11 Jul 2014 10:17:15 BST using RSA key ID D3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" * remotes/spice/tags/pull-spice-20140711-1: spice: auth fixes Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
42ca32f776
@ -741,6 +741,7 @@ void qemu_spice_init(void)
|
|||||||
error_report("spice: failed to enable sasl");
|
error_report("spice: failed to enable sasl");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
auth = "sasl";
|
||||||
}
|
}
|
||||||
if (qemu_opt_get_bool(opts, "disable-ticketing", 0)) {
|
if (qemu_opt_get_bool(opts, "disable-ticketing", 0)) {
|
||||||
auth = "none";
|
auth = "none";
|
||||||
@ -894,6 +895,10 @@ static int qemu_spice_set_ticket(bool fail_if_conn, bool disconnect_if_conn)
|
|||||||
int qemu_spice_set_passwd(const char *passwd,
|
int qemu_spice_set_passwd(const char *passwd,
|
||||||
bool fail_if_conn, bool disconnect_if_conn)
|
bool fail_if_conn, bool disconnect_if_conn)
|
||||||
{
|
{
|
||||||
|
if (strcmp(auth, "spice") != 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
g_free(auth_passwd);
|
g_free(auth_passwd);
|
||||||
auth_passwd = g_strdup(passwd);
|
auth_passwd = g_strdup(passwd);
|
||||||
return qemu_spice_set_ticket(fail_if_conn, disconnect_if_conn);
|
return qemu_spice_set_ticket(fail_if_conn, disconnect_if_conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user