diff --git a/daemon/connect/TlsSocket.cpp b/daemon/connect/TlsSocket.cpp index 544bf6850..831da0dc0 100644 --- a/daemon/connect/TlsSocket.cpp +++ b/daemon/connect/TlsSocket.cpp @@ -189,7 +189,11 @@ void TlsSocket::Final() #ifdef HAVE_OPENSSL #ifndef LIBRESSL_VERSION_NUMBER +#if OPENSSL_VERSION_NUMBER < 0x30000000L FIPS_mode_set(0); +#else + EVP_default_properties_enable_fips(NULL, 0); +#endif #endif #ifdef NEED_CRYPTO_LOCKING CRYPTO_set_locking_callback(nullptr);