mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spice: move auth functions to QemuSpiceOps.
Move qemu_spice_set_passwd() and qemu_spice_set_pw_expire() functions to QemuSpiceOps. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20201019075224.14803-7-kraxel@redhat.com
This commit is contained in:
parent
05b53636d0
commit
08ad262643
5 changed files with 25 additions and 20 deletions
|
@ -197,7 +197,7 @@ void qmp_set_password(const char *protocol, const char *password,
|
|||
if (!qemu_using_spice(errp)) {
|
||||
return;
|
||||
}
|
||||
rc = qemu_spice_set_passwd(password, fail_if_connected,
|
||||
rc = qemu_spice.set_passwd(password, fail_if_connected,
|
||||
disconnect_if_connected);
|
||||
if (rc != 0) {
|
||||
error_setg(errp, QERR_SET_PASSWD_FAILED);
|
||||
|
@ -243,7 +243,7 @@ void qmp_expire_password(const char *protocol, const char *whenstr,
|
|||
if (!qemu_using_spice(errp)) {
|
||||
return;
|
||||
}
|
||||
rc = qemu_spice_set_pw_expire(when);
|
||||
rc = qemu_spice.set_pw_expire(when);
|
||||
if (rc != 0) {
|
||||
error_setg(errp, QERR_SET_PASSWD_FAILED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue