mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Store VNC auth scheme per-client as well as per-server
A future patch will introduce a situation where different clients may have different authentication schemes set. When a new client arrives, copy the 'auth' and 'subauth' fields from VncDisplay into the client's VncState, and use the latter in all authentication functions. * ui/vnc.h: Add 'auth' and 'subauth' to VncState * ui/vnc-auth-sasl.c, ui/vnc-auth-vencrypt.c, ui/vnc.c: Make auth functions pull auth scheme from VncState instead of VncDisplay Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e69ae5c49a
commit
7e7e2ebc94
4 changed files with 41 additions and 26 deletions
2
ui/vnc.h
2
ui/vnc.h
|
@ -256,8 +256,10 @@ struct VncState
|
|||
int major;
|
||||
int minor;
|
||||
|
||||
int auth;
|
||||
char challenge[VNC_AUTH_CHALLENGE_SIZE];
|
||||
#ifdef CONFIG_VNC_TLS
|
||||
int subauth; /* Used by VeNCrypt */
|
||||
VncStateTLS tls;
|
||||
#endif
|
||||
#ifdef CONFIG_VNC_SASL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue