summaryrefslogtreecommitdiff
path: root/ui/vnc.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-09-29 16:45:36 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-10-13 09:22:20 +0200
commiteda24e188637e2f86db31c3edb76d457212fdcb1 (patch)
tree91a8c5c9090491446672f7e9f82e25e77bae7d11 /ui/vnc.h
parentbf01c1794e870b6da83ccc57bb363e704ad9aa9e (diff)
downloadqemu-eda24e188637e2f86db31c3edb76d457212fdcb1.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/vnc.h b/ui/vnc.h
index 223af38515..d191d88356 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -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;