From eda24e188637e2f86db31c3edb76d457212fdcb1 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 29 Sep 2016 16:45:36 +0100 Subject: 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 Message-id: 1475163940-26094-6-git-send-email-berrange@redhat.com Signed-off-by: Gerd Hoffmann --- ui/vnc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/vnc.h') diff --git a/ui/vnc.h b/ui/vnc.h index 223af38..d191d88 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; -- cgit v1.1