]> git.proxmox.com Git - mirror_qemu.git/commit
ui: enforce TLS when using websockets server
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 17 Mar 2015 13:42:58 +0000 (13:42 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Mar 2015 08:25:13 +0000 (09:25 +0100)
commit51941e4695c6f6c1f786bacef7e8c3a477570e04
tree2daa1177dcca1bb92c607f06f835b9bd136c14ed
parentf9148c8ae7b1515776699387b4d59864f302c77d
ui: enforce TLS when using websockets server

When TLS is required, the primary VNC server considers it to be
mandatory. ie the server admin decides whether or not TLS is used,
and the client has to comply with this decision. The websockets
server, however, treated it as optional, allowing non-TLS clients
to connect to a server which had setup TLS. Thus enabling websockets
lowers the security of the VNC server leaving the admin no way to
enforce use of TLS.

This removes the code that allows non-TLS fallback in the websockets
server, so that if TLS is requested for VNC it is now mandatory for
both the primary VNC server and the websockets VNC server.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-ws.c
ui/vnc-ws.h
ui/vnc.c