Commit 775de72903047ee845fc8227d6fff348218c70cb
1 parent
a1d7eb31
Exists in
master
and in
1 other branch
Fixing build without FIPS on linux.
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
configure.ac
@@ -388,6 +388,8 @@ dnl --------------------------------------------------------------------------- | @@ -388,6 +388,8 @@ dnl --------------------------------------------------------------------------- | ||
388 | dnl SSL Security options | 388 | dnl SSL Security options |
389 | dnl --------------------------------------------------------------------------- | 389 | dnl --------------------------------------------------------------------------- |
390 | 390 | ||
391 | +AC_CHECK_HEADER(openssl/fips.h, AC_DEFINE(HAVE_FIPS_H, 1, [FIPS Header is available]), AC_MSG_NOTICE(fips.h is not available)) | ||
392 | + | ||
391 | AC_ARG_ENABLE([self-signed-cert-check], | 393 | AC_ARG_ENABLE([self-signed-cert-check], |
392 | [AS_HELP_STRING([--enable-self-signed-cert-check], [Emit Warning when host presents a self signed certificate])], | 394 | [AS_HELP_STRING([--enable-self-signed-cert-check], [Emit Warning when host presents a self signed certificate])], |
393 | [ | 395 | [ |
src/include/config.h.in
src/network_modules/openssl/context.c
@@ -45,7 +45,10 @@ | @@ -45,7 +45,10 @@ | ||
45 | 45 | ||
46 | #include <openssl/err.h> | 46 | #include <openssl/err.h> |
47 | #include <openssl/x509_vfy.h> | 47 | #include <openssl/x509_vfy.h> |
48 | -#include <openssl/fips.h> | 48 | + |
49 | +#ifdef HAVE_FIPS_H | ||
50 | + #include <openssl/fips.h> | ||
51 | +#endif // HAVE_FIPS_H | ||
49 | 52 | ||
50 | #ifndef SSL_ST_OK | 53 | #ifndef SSL_ST_OK |
51 | #define SSL_ST_OK 3 | 54 | #define SSL_ST_OK 3 |