diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libcrypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index 541912b5..fff6ff55 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -112,7 +112,11 @@ 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) +#else +#define ssh_fips_mode() false +#endif #endif /* HAVE_LIBCRYPTO */ |