From 4ac6887deb99ce2e26bd34688deaafa23fe4dd03 Mon Sep 17 00:00:00 2001 From: crypto-ape <43807588+crypto-ape@users.noreply.github.com> Date: Tue, 13 Aug 2019 17:33:12 +0200 Subject: [PATCH] support openbsd // compile with libressl --- src/crypto/openssl.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();