support openbsd // compile with libressl

This commit is contained in:
crypto-ape 2019-08-13 17:33:12 +02:00
parent cb5f7d3cdd
commit 4ac6887deb

View file

@ -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();