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);
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
}