diff options
Diffstat (limited to 'cf/crypto.m4')
| -rw-r--r-- | cf/crypto.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cf/crypto.m4 b/cf/crypto.m4 index b8b011dd154e..0f308ced8f95 100644 --- a/cf/crypto.m4 +++ b/cf/crypto.m4 @@ -112,6 +112,22 @@ if test "$with_openssl" != "no"; then LDFLAGS="${LIB_openssl_crypto} ${LDFLAGS}" AC_CHECK_LIB([crypto], [OPENSSL_init], [LIB_openssl_crypto="${LIB_openssl_crypto} -lcrypto"; openssl=yes], [openssl=no], []) + if test "$openssl" = "yes"; then + AC_CHECK_LIB([crypto], + [OSSL_EC_curve_nid2name], + [AC_DEFINE_UNQUOTED([HAVE_OPENSSL_30], 1, + [whether OpenSSL is 3.0 or higher])] + ) + AC_CHECK_HEADERS([openssl/fips.h], + [AC_DEFINE_UNQUOTED([HAVE_OPENSSL_FIPS_H], 1, + [whether openssl/fips.h is available])] + ) + AC_CHECK_LIB([crypto], + [FIPS_mode_set], + [AC_DEFINE_UNQUOTED([HAVE_OPENSSL_FIPS_MODE_SET_API], 1, + [whether FIPS_mode_set API is available])] + ) + fi # These cases are just for static linking on older OSes, # presumably. if test "$openssl" = "no"; then |
