[6493] Split VNC defines to vnc.h (Alexander Graf)
Revision: 6493
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6493 Author: aliguori Date: 2009-02-02 15:58:25 +0000 (Mon, 02 Feb 2009)
Log Message:
-----------
Split VNC defines to vnc.h (Alexander Graf)
The VNC protocol contains quite some constants, some of which are currently hardcoded in the vnc.c code. This is not exactly pretty.
Let's move all those constants out to vnc.h, so they are clearly separated. While at it, I also included other defines that will be used later in this patch series.
Modified Paths:
--------------
trunk/pc-bios/bios-pq/series
trunk/vnc.c
Added Paths:
-----------
trunk/vnc.h
Modified: trunk/pc-bios/bios-pq/series
===================================================================
pc-bios/bios-pq/series +1 -0
@@ -8,3 +8,4 @@ 0008_kvm-bios-switch-mtrrs-to-cover-only-the-pci-range-and--default-to-wb.patch 0009_kvm-bios-resolve-memory-device-roll-over-reporting--issues-with-32g-guests.patch 0010_kvm-bios-fix-smbios-memory-device-length-boundary--condition.patch +enable-serial-output.patch
Modified: trunk/vnc.c
===================================================================
vnc.c +1 -35
@@ -32,6 +32,7 @@#define VNC_REFRESH_INTERVAL (1000 / 30) +#include "vnc.h" #include "vnc_keysym.h" #include "keymaps.c" #include "d3des.h"
@@ -88,41 +89,6 @@#define VNC_AUTH_CHALLENGE_SIZE 16 -enum { -VNC_AUTH_INVALID =0 , -VNC_AUTH_NONE =1 , -VNC_AUTH_VNC =2 , -VNC_AUTH_RA2 =5 , -VNC_AUTH_RA2NE =6 , -VNC_AUTH_TIGHT =16 , -VNC_AUTH_ULTRA =17 , -VNC_AUTH_TLS =18 , -VNC_AUTH_VENCRYPT =19 -}; - -#ifdef CONFIG_VNC_TLS -enum { -VNC_WIREMODE_CLEAR , -VNC_WIREMODE_TLS , -}; - -enum { -VNC_AUTH_VENCRYPT_PLAIN =256 , -VNC_AUTH_VENCRYPT_TLSNONE =257 , -VNC_AUTH_VENCRYPT_TLSVNC =258 , -VNC_AUTH_VENCRYPT_TLSPLAIN =259 , -VNC_AUTH_VENCRYPT_X509NONE =260 , -VNC_AUTH_VENCRYPT_X509VNC =261 , -VNC_AUTH_VENCRYPT_X509PLAIN =262 , -}; - -#define X509_CA_CERT_FILE "ca-cert.pem" -#define X509_CA_CRL_FILE "ca-crl.pem" -#define X509_SERVER_KEY_FILE "server-key.pem" -#define X509_SERVER_CERT_FILE "server-cert.pem" - -#endif /* CONFIG_VNC_TLS */ -struct VncState {QEMUTimer *timer;
Added: trunk/vnc.h
===================================================================
vnc.h +112 -0
112 lines not on this page · raw message