ui: split setup of VNC auth scheme into separate method
commit0dd72e1531f0ea1a62fd016702ea3b868d116bd8
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 17 Mar 2015 13:42:56 +0000 (17 13:42 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Mar 2015 08:25:13 +0000 (18 09:25 +0100)
treea62cbc4a8dca224f8a3fb0c7a283ebdf0d161a4a
parentd169f04b8b8424ad9c5377bb5391de2f760e3db1
ui: split setup of VNC auth scheme into separate method

The vnc_display_open method is quite long and complex, so
move the VNC auth scheme decision logic into a separate
method for clarity.

Also update the comment to better describe what we are
trying to achieve.

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