summaryrefslogtreecommitdiffstats
path: root/test/dsatest.c
diff options
context:
space:
mode:
authorslontis <shane.lontis@oracle.com>2024-07-24 09:24:33 +0200
committerTomas Mraz <tomas@openssl.org>2024-08-06 11:01:13 +0200
commitf98e49b326fe1fda5efadc10e7905b09a394591c (patch)
tree44da2bd6352fb2e2a19634ef45fd39d1810e5d6e /test/dsatest.c
parentDisallow DSA Keygen in the FIPS provider (diff)
downloadopenssl-f98e49b326fe1fda5efadc10e7905b09a394591c.tar.xz
openssl-f98e49b326fe1fda5efadc10e7905b09a394591c.zip
Add FIPS DSA Keygen tests
Adjust the existing tests to disable DSA keygen in FIPS mode. Allow evp_test to load DSA 'KeyParams' that can then be used to perform a DSA KeyGen. Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24978)
Diffstat (limited to 'test/dsatest.c')
-rw-r--r--test/dsatest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dsatest.c b/test/dsatest.c
index 73c6827bb0..e8839c7176 100644
--- a/test/dsatest.c
+++ b/test/dsatest.c
@@ -247,7 +247,7 @@ static int dsa_keygen_test(void)
goto end;
if (!TEST_ptr(pg_ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL))
|| !TEST_int_gt(EVP_PKEY_paramgen_init(pg_ctx), 0)
- || !TEST_ptr_null(EVP_PKEY_CTX_gettable_params(pg_ctx))
+ || !TEST_ptr(EVP_PKEY_CTX_gettable_params(pg_ctx))
|| !TEST_ptr(settables = EVP_PKEY_CTX_settable_params(pg_ctx))
|| !TEST_ptr(OSSL_PARAM_locate_const(settables,
OSSL_PKEY_PARAM_FFC_PBITS))