fixup! Fix OpenSSL error, wrong initialization order.

This commit is contained in:
Jan Vidar Krey 2019-04-24 10:53:39 +02:00
parent 891adb84fb
commit 022a9895ec

View File

@ -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); LOG_ERROR("Unable to recognize tls_version: %s", tls_version);
return 0; return 0;
} }
#if OPENSSL_VERSION_NUMBER >= 0x10100000L #if OPENSSL_VERSION_NUMBER < 0x10100000L
return TLS_method(); // never gets here!
#else #else
#error "Unknown OpenSSL version!" # OPENSSL_VERSION_NUMBER return TLS_method();
#endif #endif
} }