]> git.proxmox.com Git - qemu.git/commit
Store VNC auth scheme per-client as well as per-server
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Jun 2011 12:31:41 +0000 (13:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:19:02 +0000 (11:19 -0500)
commit7e7e2ebc942da8285931ceabf12823e165dced8b
treed7d939f0efe179dfd01efc5915479623d95f8d9b
parente69ae5c49af45a67ebdf6a7cf465eb91b5c8ee11
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>
ui/vnc-auth-sasl.c
ui/vnc-auth-vencrypt.c
ui/vnc.c
ui/vnc.h