diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index 403c2d2226e89b995c9e30eb4593a08e38f3e579..16e5f98f46c02fd2d60be0bbd0fab0d4d918e44b 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -110,6 +110,8 @@ typedef BN_CTX* bignum_CTX; /* Returns true if the OpenSSL is operating in FIPS mode */ #ifdef HAVE_OPENSSL_FIPS_MODE #define ssh_fips_mode() (FIPS_mode() != 0) +#elif OPENSSL_VERSION_NUMBER >= 0x30000000L +#define ssh_fips_mode() EVP_default_properties_is_fips_enabled(NULL) #else #define ssh_fips_mode() false #endif