ui: introduce "password-secret" option for VNC servers
commit6c6840e9281cf2fd3b29d77f45b18949d4a83944
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 11 Mar 2021 11:43:41 +0000 (11 11:43 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Mar 2021 16:36:20 +0000 (15 17:36 +0100)
tree259d5ad2e62eb3d79d263772af126dd9ba299f52
parent6157b0e19721aadb4c7fdcfe57b2924af6144b14
ui: introduce "password-secret" option for VNC servers

Currently when using VNC the "password" flag turns on password based
authentication. The actual password has to be provided separately via
the monitor.

This introduces a "password-secret" option which lets the password be
provided up front.

  $QEMU --object secret,id=vncsec0,file=passwd.txt \
        --vnc localhost:0,password-secret=vncsec0

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210311114343.439820-2-berrange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qemu-options.hx
ui/vnc.c