Commit 914460ca authored by Daniel Cohen Gindi's avatar Daniel Cohen Gindi Committed by Johannes Schindelin

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: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent 50dbe1df
...@@ -145,7 +145,6 @@ ssl_verify (int ok, X509_STORE_CTX *ctx) ...@@ -145,7 +145,6 @@ ssl_verify (int ok, X509_STORE_CTX *ctx)
{ {
unsigned char md5sum[16], fingerprint[40], *f; unsigned char md5sum[16], fingerprint[40], *f;
rfbClient *client; rfbClient *client;
char *prompt, *cert_str;
int err, i; int err, i;
unsigned int md5len; unsigned int md5len;
//char buf[257]; //char buf[257];
...@@ -203,8 +202,6 @@ static int sock_read_ready(SSL *ssl, uint32_t ms) ...@@ -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) static int wait_for_data(SSL *ssl, int ret, int timeout)
{ {
struct timeval tv;
fd_set fds;
int err; int err;
int retval = 1; int retval = 1;
...@@ -237,7 +234,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) ...@@ -237,7 +234,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS)
SSL_CTX *ssl_ctx = NULL; SSL_CTX *ssl_ctx = NULL;
SSL *ssl = NULL; SSL *ssl = NULL;
int n, finished = 0; int n, finished = 0;
BIO *sbio;
ssl_ctx = SSL_CTX_new (SSLv23_client_method ()); ssl_ctx = SSL_CTX_new (SSLv23_client_method ());
SSL_CTX_set_default_verify_paths (ssl_ctx); SSL_CTX_set_default_verify_paths (ssl_ctx);
...@@ -276,8 +272,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) ...@@ -276,8 +272,6 @@ open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS)
static rfbBool static rfbBool
InitializeTLSSession(rfbClient* client, rfbBool anonTLS) InitializeTLSSession(rfbClient* client, rfbBool anonTLS)
{ {
int ret;
if (client->tlsSession) return TRUE; if (client->tlsSession) return TRUE;
client->tlsSession = open_ssl_connection (client, client->sock, anonTLS); client->tlsSession = open_ssl_connection (client, client->sock, anonTLS);
...@@ -415,7 +409,6 @@ HandleVeNCryptAuth(rfbClient* client) ...@@ -415,7 +409,6 @@ HandleVeNCryptAuth(rfbClient* client)
uint32_t authScheme; uint32_t authScheme;
rfbBool anonTLS; rfbBool anonTLS;
// gnutls_certificate_credentials_t x509_cred = NULL; // gnutls_certificate_credentials_t x509_cred = NULL;
int ret;
if (!InitializeTLS()) return FALSE; if (!InitializeTLS()) return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment