mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02: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
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue