ui: refactor method for setting up VncDisplay auth types
commiteda24e188637e2f86db31c3edb76d457212fdcb1
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 29 Sep 2016 15:45:36 +0000 (29 16:45 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2016 07:22:20 +0000 (13 09:22 +0200)
tree91a8c5c9090491446672f7e9f82e25e77bae7d11
parentbf01c1794e870b6da83ccc57bb363e704ad9aa9e
ui: refactor method for setting up VncDisplay auth types

There is a lot of repeated code in the auth type setup method,
particularly around checking TLS credential types. Refactor
it to reduce duplication and instead of having one method
do both plain and websockets at once, call it separately
for each.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1475163940-26094-6-git-send-email-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c
ui/vnc.h