diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-05-21 11:17:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-21 11:17:18 -0400 |
commit | a35d22479b55c7eaed2ddbbd85fcbf3328751fbe (patch) | |
tree | a1906bca85a30075600ce4b53241ded7633d4d38 /src/common | |
parent | eb7f4d0059d447f79362be22c9c0c3c66ec85857 (diff) | |
download | tor-a35d22479b55c7eaed2ddbbd85fcbf3328751fbe.tar.gz tor-a35d22479b55c7eaed2ddbbd85fcbf3328751fbe.zip |
move "version" declaration to avoid "set but not used" warnings
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/tortls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 4a1abac12c..ca3291b499 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -470,15 +470,14 @@ tor_tls_init(void) check_no_tls_errors(); if (!tls_library_is_initialized) { - long version; SSL_library_init(); SSL_load_error_strings(); - version = SSLeay(); - #if (SIZEOF_VOID_P >= 8 && \ !defined(OPENSSL_NO_EC) && \ OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,0,1)) + long version = SSLeay(); + if (version >= OPENSSL_V_SERIES(1,0,1)) { /* Warn if we could *almost* be running with much faster ECDH. If we're built for a 64-bit target, using OpenSSL 1.0.1, but we |