mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qapi: Convert expire_password
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
fbf796fd6f
commit
9ad5372daa
8 changed files with 80 additions and 47 deletions
10
hmp.c
10
hmp.c
|
@ -692,3 +692,13 @@ void hmp_set_password(Monitor *mon, const QDict *qdict)
|
|||
qmp_set_password(protocol, password, !!connected, connected, &err);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
||||
void hmp_expire_password(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
const char *protocol = qdict_get_str(qdict, "protocol");
|
||||
const char *whenstr = qdict_get_str(qdict, "time");
|
||||
Error *err = NULL;
|
||||
|
||||
qmp_expire_password(protocol, whenstr, &err);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue