diff --git a/build/.gitignore b/build/.gitignore index c96a04f0..d6b7ef32 100644 --- a/build/.gitignore +++ b/build/.gitignore @@ -1,2 +1,2 @@ * -!.gitignore \ No newline at end of file +!.gitignore diff --git a/src/Transport/SSLWrapper.cpp b/src/Transport/SSLWrapper.cpp index 726972b7..5266ffde 100644 --- a/src/Transport/SSLWrapper.cpp +++ b/src/Transport/SSLWrapper.cpp @@ -40,7 +40,11 @@ SSLWrapper::SSLWrapper() SSLWrapper::~SSLWrapper() { - FIPS_mode_set(0); +#if OPENSSL_VERSION_NUMBER >= 0x30000000L + EVP_default_properties_enable_fips(nullptr, 0); +#else + FIPS_mode_set(0); +#endif ENGINE_cleanup(); CONF_modules_unload(1); EVP_cleanup();