mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +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 */
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user