]> git.proxmox.com Git - qemu.git/blobdiff - hmp.c
qapi: Convert expire_password
[qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index 888e1b96cecfe9b2e3e574e0862b6d9576ba48e0..081acabd21f2fc8baf777158c0d575eaf0261f68 100644 (file)
--- a/hmp.c
+++ b/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);
+}