mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
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:
parent
b2fb5424ed
commit
d89aab08bf
@ -86,7 +86,11 @@ namespace ThirdParty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void finish() {
|
void finish() {
|
||||||
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
|
EVP_default_properties_enable_fips(nullptr, 0);
|
||||||
|
#else
|
||||||
FIPS_mode_set(0);
|
FIPS_mode_set(0);
|
||||||
|
#endif
|
||||||
CONF_modules_unload(1);
|
CONF_modules_unload(1);
|
||||||
|
|
||||||
Platform::ThirdParty::finish();
|
Platform::ThirdParty::finish();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user