summaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-12-27 22:59:48 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-12-27 22:59:48 +0100
commit818c2e1b9777599d333855330d94050b3432c8b7 (patch)
treedf85b289b7c0f797fbf5bf8ca5bca4422b387aa7 /hmp-commands.hx
parent4058fd98fd7e9c476774717adbd49698dd273166 (diff)
parent7572150c189c6553c2448334116ab717680de66d (diff)
downloadqemu-818c2e1b9777599d333855330d94050b3432c8b7.tar.gz
Merge branch 'spice.v23.pull' of git://anongit.freedesktop.org/spice/qemu
* 'spice.v23.pull' of git://anongit.freedesktop.org/spice/qemu: vnc/spice: add set_passwd monitor command. vnc: support password expire vnc: auth reject cleanup spice: add qmp 'query-spice' and hmp 'info spice' commands. spice: connection events. spice: add qxl device spice: add qxl vgabios binary.
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx54
1 files changed, 54 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 4befbe2e56..df134f8f56 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1154,6 +1154,60 @@ Set the encrypted device @var{device} password to @var{password}
ETEXI
{
+ .name = "set_password",
+ .args_type = "protocol:s,password:s,connected:s?",
+ .params = "protocol password action-if-connected",
+ .help = "set spice/vnc password",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = set_password,
+ },
+
+STEXI
+@item set_password [ vnc | spice ] password [ action-if-connected ]
+@findex set_password
+
+Change spice/vnc password. Use zero to make the password stay valid
+forever. @var{action-if-connected} specifies what should happen in
+case a connection is established: @var{fail} makes the password change
+fail. @var{disconnect} changes the password and disconnects the
+client. @var{keep} changes the password and keeps the connection up.
+@var{keep} is the default.
+ETEXI
+
+ {
+ .name = "expire_password",
+ .args_type = "protocol:s,time:s",
+ .params = "protocol time",
+ .help = "set spice/vnc password expire-time",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = expire_password,
+ },
+
+STEXI
+@item expire_password [ vnc | spice ] expire-time
+@findex expire_password
+
+Specify when a password for spice/vnc becomes
+invalid. @var{expire-time} accepts:
+
+@table @var
+@item now
+Invalidate password instantly.
+
+@item never
+Password stays valid forever.
+
+@item +nsec
+Password stays valid for @var{nsec} seconds starting now.
+
+@item nsec
+Password is invalidated at the given time. @var{nsec} are the seconds
+passed since 1970, i.e. unix epoch.
+
+@end table
+ETEXI
+
+ {
.name = "info",
.args_type = "item:s?",
.params = "[subcommand]",