diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2015-11-06 19:12:43 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2015-11-06 19:12:43 +0000 |
commit | 89cb2e467dd66d659cb9492e0b59c35f5d6bab57 (patch) | |
tree | a9aecf140d5b24af53d71dd2289676a0e3cc6f37 /src | |
parent | 3e3ec750cd72fe1c946d8da6e4f07d87efe3d8ac (diff) | |
download | tor-89cb2e467dd66d659cb9492e0b59c35f5d6bab57.tar.gz tor-89cb2e467dd66d659cb9492e0b59c35f5d6bab57.zip |
Fix compilation with OpenSSL 1.1.0 --enable-gcc-warnings is set.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_tortls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 280e7fa3b0..3352ed61ee 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -130,7 +130,6 @@ test_tortls_tor_tls_new(void *data) MOCK(tor_tls_cert_matches_key, mock_tls_cert_matches_key); crypto_pk_t *key1 = NULL, *key2 = NULL; SSL_METHOD *method = NULL; - SSL_CTX *ctx = NULL; key1 = pk_generate(2); key2 = pk_generate(3); @@ -148,7 +147,7 @@ test_tortls_tor_tls_new(void *data) #ifndef OPENSSL_OPAQUE method = give_me_a_test_method(); - ctx = SSL_CTX_new(method); + SSL_CTX *ctx = SSL_CTX_new(method); method->num_ciphers = fake_num_ciphers; client_tls_context->ctx = ctx; tls = tor_tls_new(-1, 0); |