fixup! Fix OpenSSL error, wrong initialization order.
This commit is contained in:
parent
891adb84fb
commit
022a9895ec
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user