mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
move "version" declaration to avoid "set but not used" warnings
This commit is contained in:
parent
eb7f4d0059
commit
a35d22479b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user