Revision 7572150c hmp-commands.hx

b/hmp-commands.hx
1135 1135
ETEXI
1136 1136

  
1137 1137
    {
1138
        .name       = "set_password",
1139
        .args_type  = "protocol:s,password:s,connected:s?",
1140
        .params     = "protocol password action-if-connected",
1141
        .help       = "set spice/vnc password",
1142
        .user_print = monitor_user_noop,
1143
        .mhandler.cmd_new = set_password,
1144
    },
1145

  
1146
STEXI
1147
@item set_password [ vnc | spice ] password [ action-if-connected ]
1148
@findex set_password
1149

  
1150
Change spice/vnc password.  Use zero to make the password stay valid
1151
forever.  @var{action-if-connected} specifies what should happen in
1152
case a connection is established: @var{fail} makes the password change
1153
fail.  @var{disconnect} changes the password and disconnects the
1154
client.  @var{keep} changes the password and keeps the connection up.
1155
@var{keep} is the default.
1156
ETEXI
1157

  
1158
    {
1159
        .name       = "expire_password",
1160
        .args_type  = "protocol:s,time:s",
1161
        .params     = "protocol time",
1162
        .help       = "set spice/vnc password expire-time",
1163
        .user_print = monitor_user_noop,
1164
        .mhandler.cmd_new = expire_password,
1165
    },
1166

  
1167
STEXI
1168
@item expire_password [ vnc | spice ] expire-time
1169
@findex expire_password
1170

  
1171
Specify when a password for spice/vnc becomes
1172
invalid. @var{expire-time} accepts:
1173

  
1174
@table @var
1175
@item now
1176
Invalidate password instantly.
1177

  
1178
@item never
1179
Password stays valid forever.
1180

  
1181
@item +nsec
1182
Password stays valid for @var{nsec} seconds starting now.
1183

  
1184
@item nsec
1185
Password is invalidated at the given time.  @var{nsec} are the seconds
1186
passed since 1970, i.e. unix epoch.
1187

  
1188
@end table
1189
ETEXI
1190

  
1191
    {
1138 1192
        .name       = "info",
1139 1193
        .args_type  = "item:s?",
1140 1194
        .params     = "[subcommand]",

Also available in: Unified diff