diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-09-29 16:45:36 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-10-13 09:22:20 +0200 |
commit | eda24e188637e2f86db31c3edb76d457212fdcb1 (patch) | |
tree | 91a8c5c9090491446672f7e9f82e25e77bae7d11 /ui/vnc.h | |
parent | bf01c1794e870b6da83ccc57bb363e704ad9aa9e (diff) | |
download | qemu-eda24e188637e2f86db31c3edb76d457212fdcb1.zip qemu-eda24e188637e2f86db31c3edb76d457212fdcb1.tar.gz qemu-eda24e188637e2f86db31c3edb76d457212fdcb1.tar.bz2 |
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>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r-- | ui/vnc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -172,6 +172,7 @@ struct VncDisplay int auth; int subauth; /* Used by VeNCrypt */ int ws_auth; /* Used by websockets */ + int ws_subauth; /* Used by websockets */ bool lossy; bool non_adaptive; QCryptoTLSCreds *tlscreds; |