aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-07 13:18:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-07 13:18:32 +0000
commit963657514d24c29604e0b873c17dcee0d3efd345 (patch)
tree346b4ec46380cbc96fe18f4128f88ef544fd1e71 /src/libutil/util.c
parent5f775f8c3d916bf09c5791518b73d2cc548cf89b (diff)
downloadrspamd-963657514d24c29604e0b873c17dcee0d3efd345.tar.gz
rspamd-963657514d24c29604e0b873c17dcee0d3efd345.zip
[Minor] Add explicit checks for FIPS mode presence
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 3256becb9..119082964 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -2484,6 +2484,7 @@ rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
}
if (cfg->fips_mode) {
+#ifdef HAVE_FIPS_MODE
int mode = FIPS_mode ();
unsigned long err = (unsigned long)-1;
@@ -2505,6 +2506,9 @@ rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
else {
msg_info_config ("OpenSSL FIPS mode is enabled");
}
+#else
+ msg_warn_config ("SSL FIPS mode is enabled but not supported by OpenSSL library!");
+#endif
}
if (cfg->ssl_ca_path) {