summaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-11-12 08:57:12 +0100
committerShane Lontis <shane.lontis@oracle.com>2020-11-16 08:21:57 +0100
commit4605c5ab4796e99a207ab54d31bb8d2b5e42f1ca (patch)
treeec87263a3d718096b3538b77665c60aca48e9e37 /test/evp_test.c
parentAdd documentation for EVP_PKEY2PKCS8/EVP_PKCS82PKEY (diff)
downloadopenssl-4605c5ab4796e99a207ab54d31bb8d2b5e42f1ca.tar.xz
openssl-4605c5ab4796e99a207ab54d31bb8d2b5e42f1ca.zip
Fix dsa securitycheck for fips.
Fixes #12627 Changed security check for DSA verification to match SP800-131Ar2 when the security strength is < 112. Fixed compilation error when using config opt 'no-fips-securitychecks' Removed TODO's from 20-test_cli_fips.t - there is no longer an TODO error. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13387)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r--test/evp_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index fc9121edac..9361845450 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -3284,6 +3284,7 @@ static char *take_value(PAIR *pp)
return p;
}
+#if !defined(OPENSSL_NO_FIPS_SECURITYCHECKS)
static int securitycheck_enabled(void)
{
static int enabled = -1;
@@ -3310,6 +3311,7 @@ static int securitycheck_enabled(void)
}
return enabled;
}
+#endif
/*
* Return 1 if one of the providers named in the string is available.