From afe1c24a4451cc929662aed8aefaa7f846edfa5b Mon Sep 17 00:00:00 2001 From: Weston Myers Date: Mon, 13 Feb 2023 22:38:24 -0500 Subject: [PATCH] Update SSLWrapper.cpp OpenSSL 3.0 changed how you set enabling FIPS support. Added conditional check to enable compilation on this version. --- src/Transport/SSLWrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Transport/SSLWrapper.cpp b/src/Transport/SSLWrapper.cpp index 6aca9b44..6eb8da4f 100644 --- a/src/Transport/SSLWrapper.cpp +++ b/src/Transport/SSLWrapper.cpp @@ -39,7 +39,11 @@ SSLWrapper::SSLWrapper() SSLWrapper::~SSLWrapper() { +#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();