diff --git a/configure.ac b/configure.ac index a2d3b72..7805fa5 100644 --- a/configure.ac +++ b/configure.ac @@ -388,6 +388,8 @@ dnl --------------------------------------------------------------------------- dnl SSL Security options dnl --------------------------------------------------------------------------- +AC_CHECK_HEADER(openssl/fips.h, AC_DEFINE(HAVE_FIPS_H, 1, [FIPS Header is available]), AC_MSG_NOTICE(fips.h is not available)) + AC_ARG_ENABLE([self-signed-cert-check], [AS_HELP_STRING([--enable-self-signed-cert-check], [Emit Warning when host presents a self signed certificate])], [ diff --git a/src/include/config.h.in b/src/include/config.h.in index 5d83003..8a78af1 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -70,6 +70,7 @@ /* Security options */ #undef HAVE_LDAP #undef HAVE_LIBSSL + #undef HAVE_FIPS_H #undef SSL_ENABLE_SELF_SIGNED_CERT_CHECK diff --git a/src/network_modules/openssl/context.c b/src/network_modules/openssl/context.c index 10f1ee1..b1233a9 100644 --- a/src/network_modules/openssl/context.c +++ b/src/network_modules/openssl/context.c @@ -45,7 +45,10 @@ #include #include -#include + +#ifdef HAVE_FIPS_H + #include +#endif // HAVE_FIPS_H #ifndef SSL_ST_OK #define SSL_ST_OK 3 -- libgit2 0.21.2