summaryrefslogtreecommitdiffstats
path: root/providers/common
diff options
context:
space:
mode:
Diffstat (limited to 'providers/common')
-rw-r--r--providers/common/securitycheck.c2
-rw-r--r--providers/common/securitycheck_fips.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/providers/common/securitycheck.c b/providers/common/securitycheck.c
index 624843e3ab..9a425fb630 100644
--- a/providers/common/securitycheck.c
+++ b/providers/common/securitycheck.c
@@ -203,7 +203,7 @@ int digest_is_allowed(const EVP_MD *md)
{
# if !defined(OPENSSL_NO_FIPS_SECURITYCHECKS)
if (securitycheck_enabled())
- return (digest_get_approved_nid(md) != NID_undef);
+ return digest_get_approved_nid(md) != NID_undef;
# endif /* OPENSSL_NO_FIPS_SECURITYCHECKS */
return 1;
}
diff --git a/providers/common/securitycheck_fips.c b/providers/common/securitycheck_fips.c
index f73eae9569..94457d6ccf 100644
--- a/providers/common/securitycheck_fips.c
+++ b/providers/common/securitycheck_fips.c
@@ -19,11 +19,12 @@
#include "prov/securitycheck.h"
#include "prov/providercommonerr.h"
+extern int FIPS_security_check_enabled(void);
+
int securitycheck_enabled(void)
{
#if !defined(OPENSSL_NO_FIPS_SECURITYCHECKS)
- /* TODO(3.0): make this configurable */
- return 1;
+ return FIPS_security_check_enabled();
#else
return 0;
#endif /* OPENSSL_NO_FIPS_SECURITYCHECKS */