---- qemu-kvm/ui/vnc-auth-vencrypt.c 2012-01-17 01:31:17.000000000 +0100
-+++ qemu-kvm.new/ui/vnc-auth-vencrypt.c 2012-01-17 01:31:48.000000000 +0100
+Index: new/ui/vnc-auth-vencrypt.c
+===================================================================
+--- new.orig/ui/vnc-auth-vencrypt.c 2012-08-09 10:02:20.000000000 +0200
++++ new/ui/vnc-auth-vencrypt.c 2012-08-09 10:03:01.000000000 +0200
@@ -143,6 +143,11 @@
vnc_read_when(vs, protocol_client_auth_plain_start, 8);
break;
- VNC_DEBUG("Failed to setup TLS\n");
- return 0;
+ if (auth == VNC_AUTH_VENCRYPT_PLAIN) {
-+ vs->subauth = auth;
++ vs->subauth = auth;
+ start_auth_vencrypt_subauth(vs);
}
-
+ {
+ VNC_DEBUG("Accepting auth %d, setting up TLS for handshake\n", auth);
+ vnc_write_u8(vs, 1); /* Accept auth */
-+ vnc_flush(vs);
++ vnc_flush(vs);
+
+ if (vnc_tls_client_setup(vs, NEED_X509_AUTH(vs)) < 0) {
+ VNC_DEBUG("Failed to setup TLS\n");
vnc_flush(vs);
vnc_read_when(vs, protocol_client_vencrypt_auth, 4);
}
---
-1.7.2.5
-