mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Fix fips mode check in openssl3
FIPS_mode function is no longer supported in openssl version 3 Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -110,6 +110,8 @@ typedef BN_CTX* bignum_CTX;
|
|||||||
/* Returns true if the OpenSSL is operating in FIPS mode */
|
/* Returns true if the OpenSSL is operating in FIPS mode */
|
||||||
#ifdef HAVE_OPENSSL_FIPS_MODE
|
#ifdef HAVE_OPENSSL_FIPS_MODE
|
||||||
#define ssh_fips_mode() (FIPS_mode() != 0)
|
#define ssh_fips_mode() (FIPS_mode() != 0)
|
||||||
|
#elif OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
|
#define ssh_fips_mode() EVP_default_properties_is_fips_enabled(NULL)
|
||||||
#else
|
#else
|
||||||
#define ssh_fips_mode() false
|
#define ssh_fips_mode() false
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user