summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-25 22:12:18 -0500
committerNick Mathewson <nickm@torproject.org>2012-12-25 22:12:18 -0500
commit68dae4cf3563e536e0693648cefcd0c69e512bff (patch)
tree04b9cdb3a89d380b4e41c6dfdaef3275cec97fa8 /src/common/tortls.c
parent3eb39005106209240832b96e9292385747f703fa (diff)
downloadtor-68dae4cf3563e536e0693648cefcd0c69e512bff.tar.gz
tor-68dae4cf3563e536e0693648cefcd0c69e512bff.zip
One last fix for a warning on non-EC systems
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index f0c4c7dc57..1010425e13 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1386,6 +1386,8 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
SSL_CTX_set_tmp_ecdh(result->ctx, ec_key);
EC_KEY_free(ec_key);
}
+#else
+ (void)flags;
#endif
SSL_CTX_set_verify(result->ctx, SSL_VERIFY_PEER,
always_accept_verify_cb);