diff --git a/src/crypto/openssl.cpp b/src/crypto/openssl.cpp index 3f8df03..e4c0e88 100644 --- a/src/crypto/openssl.cpp +++ b/src/crypto/openssl.cpp @@ -39,7 +39,11 @@ namespace fc ~openssl_scope() { +#if not defined(LIBRESSL_VERSION_NUMBER) + // No FIPS in LibreSSL. + // https://marc.info/?l=openbsd-misc&m=139819485423701&w=2 FIPS_mode_set(0); +#endif CONF_modules_unload(1); EVP_cleanup(); CRYPTO_cleanup_all_ex_data();