This patch series adds new monitor commands to set and expire the password:
set-password $protocol $secret expire-password $protocol [ now | never | +secs | secs ] The time when the password expires can be specified either relative (+60 == password expires in 60 seconds from now) or absolute in seconds since 1970 aka unix-epoch. Check the patches and/or updated docs for details. Gerd Hoffmann (3): vnc: auth reject cleanup vnc: support password expire vnc/spice: add set_passwd monitor command. console.h | 1 + hmp-commands.hx | 54 +++++++++++++++++++++++++++++ monitor.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ qemu-common.h | 3 ++ qmp-commands.hx | 57 +++++++++++++++++++++++++++++++ ui/qemu-spice.h | 5 +++ ui/spice-core.c | 35 +++++++++++++++++++ ui/vnc.c | 44 +++++++++++++++--------- ui/vnc.h | 1 + 9 files changed, 283 insertions(+), 17 deletions(-)