From 022a9895ec280172e3efd14d3170ded9701e573b Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Wed, 24 Apr 2019 10:53:39 +0200 Subject: [PATCH] fixup! Fix OpenSSL error, wrong initialization order. --- src/network/openssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/openssl.c b/src/network/openssl.c index 15c182f..331358b 100644 --- a/src/network/openssl.c +++ b/src/network/openssl.c @@ -186,10 +186,10 @@ static const SSL_METHOD* get_ssl_method(const char* tls_version, long* flags) LOG_ERROR("Unable to recognize tls_version: %s", tls_version); return 0; } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L - return TLS_method(); +#if OPENSSL_VERSION_NUMBER < 0x10100000L + // never gets here! #else -#error "Unknown OpenSSL version!" # OPENSSL_VERSION_NUMBER + return TLS_method(); #endif }