]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: remove unused 'wiremode' variable in VncState struct
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 17 Mar 2015 13:42:53 +0000 (13:42 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Mar 2015 08:25:13 +0000 (09:25 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-auth-vencrypt.c
ui/vnc-tls.c
ui/vnc-tls.h
ui/vnc-ws.c

index bc7032e6951fcfe7bb38683a8f7a624d6b3fb3d0..a420ccbd1dcf82bdea19ba598c79cf24d95b60ee 100644 (file)
@@ -93,7 +93,6 @@ static int vnc_start_vencrypt_handshake(struct VncState *vs) {
     }
 
     VNC_DEBUG("Handshake done, switching to TLS data mode\n");
-    vs->tls.wiremode = VNC_WIREMODE_TLS;
     qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs);
 
     start_auth_vencrypt_subauth(vs);
index 0f59f9b28e278874b5f81761830a979e08182d32..de1cb342a49c0dc003311267ce41ad76f46c4413 100644 (file)
@@ -421,14 +421,12 @@ void vnc_tls_client_cleanup(struct VncState *vs)
         gnutls_deinit(vs->tls.session);
         vs->tls.session = NULL;
     }
-    vs->tls.wiremode = VNC_WIREMODE_CLEAR;
     g_free(vs->tls.dname);
 #ifdef CONFIG_VNC_WS
     if (vs->ws_tls.session) {
         gnutls_deinit(vs->ws_tls.session);
         vs->ws_tls.session = NULL;
     }
-    vs->ws_tls.wiremode = VNC_WIREMODE_CLEAR;
     g_free(vs->ws_tls.dname);
 #endif /* CONFIG_VNC_WS */
 }
index 36a2227fece1d6bfd02c43313bf4018369f5e6e6..f9829c7824f2897bf5fd6979c05d384aeefd1a77 100644 (file)
 
 #include "qemu/acl.h"
 
-enum {
-    VNC_WIREMODE_CLEAR,
-    VNC_WIREMODE_TLS,
-};
-
 typedef struct VncDisplayTLS VncDisplayTLS;
 typedef struct VncStateTLS VncStateTLS;
 
@@ -55,8 +50,6 @@ struct VncDisplayTLS {
 
 /* Per client state */
 struct VncStateTLS {
-    /* Whether data is being TLS encrypted yet */
-    int wiremode;
     gnutls_session_t session;
 
     /* Client's Distinguished Name from the x509 cert */
index d75950d7b1a6bb58f99fc551d7516428e027972f..1769d526f80e4479ba7862712dfe53765133e431 100644 (file)
@@ -48,7 +48,6 @@ static int vncws_start_tls_handshake(struct VncState *vs)
     }
 
     VNC_DEBUG("Handshake done, switching to TLS data mode\n");
-    vs->ws_tls.wiremode = VNC_WIREMODE_TLS;
     qemu_set_fd_handler2(vs->csock, NULL, vncws_handshake_read, NULL, vs);
 
     return 0;