From 914460cac55ed7cbc72ad3585e3bab22b6f4cc8c Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Mon, 1 Sep 2014 01:26:09 +0300 Subject: Remove unused variables This change is technically not required to support MSVC, but it was detected by Microsoft's compiler. [JES: fixed commit message] Signed-off-by: Johannes Schindelin --- libvncclient/tls_openssl.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libvncclient/tls_openssl.c b/libvncclient/tls_openssl.c index 529d476..b7a0911 100644 --- a/libvncclient/tls_openssl.c +++ b/libvncclient/tls_openssl.c @@ -145,7 +145,6 @@ ssl_verify (int ok, X509_STORE_CTX *ctx) { unsigned char md5sum[16], fingerprint[40], *f; rfbClient *client; - char *prompt, *cert_str; int err, i; unsigned int md5len; //char buf[257]; @@ -203,8 +202,6 @@ static int sock_read_ready(SSL *ssl, uint32_t ms) static int wait_for_data(SSL *ssl, int ret, int timeout) { - struct timeval tv; - fd_set fds; int err; int retval = 1; @@ -237,7 +234,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) SSL_CTX *ssl_ctx = NULL; SSL *ssl = NULL; int n, finished = 0; - BIO *sbio; ssl_ctx = SSL_CTX_new (SSLv23_client_method ()); SSL_CTX_set_default_verify_paths (ssl_ctx); @@ -276,8 +272,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) static rfbBool InitializeTLSSession(rfbClient* client, rfbBool anonTLS) { - int ret; - if (client->tlsSession) return TRUE; client->tlsSession = open_ssl_connection (client, client->sock, anonTLS); @@ -415,7 +409,6 @@ HandleVeNCryptAuth(rfbClient* client) uint32_t authScheme; rfbBool anonTLS; // gnutls_certificate_credentials_t x509_cred = NULL; - int ret; if (!InitializeTLS()) return FALSE; -- cgit v1.2.1