Fixed build against OpenSSL 3.0.

Deprecated function FIPS_mode_set() was removed in OpenSSL 3.0.

Switched to EVP_default_properties_enable_fips() as described in OpenSSL
3.0 migration guide.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
This commit is contained in:
Vitaly Zaitsev 2021-12-09 12:41:17 +01:00 committed by John Preston
parent b2fb5424ed
commit d89aab08bf

View File

@ -86,7 +86,11 @@ namespace ThirdParty {
}
void finish() {
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
EVP_default_properties_enable_fips(nullptr, 0);
#else
FIPS_mode_set(0);
#endif
CONF_modules_unload(1);
Platform::ThirdParty::finish();