diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2011-01-06 19:14:12 -0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-01-06 19:14:12 -0200 |
commit | ea59ccd22c3957f9ef8c7828b5c1e778ab35b302 (patch) | |
tree | 286768b354cd4b14fa59f019847e5d611e272064 /hmp-commands.hx | |
parent | 5e10257364dd653cae26eb61b699f8562f445d4d (diff) | |
parent | 7572150c189c6553c2448334116ab717680de66d (diff) |
Merge commit '7572150c189c6553c2448334116ab717680de66d' into upstream-merge
* commit '7572150c189c6553c2448334116ab717680de66d':
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.
Conflicts:
hmp-commands.hx
monitor.c
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index f610004f9..d8ae9f0be 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1148,6 +1148,60 @@ Set CPU @var{cpu} online or offline. 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]", |