summaryrefslogtreecommitdiffstats
path: root/libvncclient/tls_openssl.c
diff options
context:
space:
mode:
authorDaniel Cohen Gindi <danielgindi@gmail.com>2014-09-01 01:26:09 +0300
committerJohannes Schindelin <johannes.schindelin@gmx.de>2014-09-02 16:11:53 +0200
commit914460cac55ed7cbc72ad3585e3bab22b6f4cc8c (patch)
treef7f91053d9de23404818adf20e36b299d466081b /libvncclient/tls_openssl.c
parent50dbe1df75d983cf7d69874383445fdff18de5a3 (diff)
downloadlibvncserver-914460cac55ed7cbc72ad3585e3bab22b6f4cc8c.zip
libvncserver-914460cac55ed7cbc72ad3585e3bab22b6f4cc8c.tar.gz
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 <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncclient/tls_openssl.c')
-rw-r--r--libvncclient/tls_openssl.c7
1 files changed, 0 insertions, 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;
OpenPOWER on IntegriCloud