From 5a4a43a60ac8da63e60e68f6607cd5e7fc71b7ea Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 2 Jul 2025 17:22:51 +1000 Subject: [PATCH] evp_kdf_test: skip "engine" parameters when checking for updatability. The code already skips "properties" and "engines" behaves the same. Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27923) --- test/evp_kdf_test.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/evp_kdf_test.c b/test/evp_kdf_test.c index 898a170800e..a09470e28fb 100644 --- a/test/evp_kdf_test.c +++ b/test/evp_kdf_test.c @@ -2072,9 +2072,14 @@ static int test_kdf_hmac_drbg_settables(void) /* Fail if we pass the wrong type for params */ params[1] = OSSL_PARAM_construct_end(); for (i = 0; settableparams[i].key != NULL; ++i) { - /* Skip "properties" key since it returns 1 unless the digest is also set */ + /* + * Skip "properties" and "engine" keys since they returns 1 unless + * the digest is also set + */ if (OPENSSL_strcasecmp(settableparams[i].key, - OSSL_KDF_PARAM_PROPERTIES) != 0) { + OSSL_KDF_PARAM_PROPERTIES) != 0 + && OPENSSL_strcasecmp(settableparams[i].key, + OSSL_ALG_PARAM_ENGINE) != 0) { TEST_note("Testing set int into %s fails", settableparams[i].key); params[0] = OSSL_PARAM_construct_int(settableparams[i].key, &j); if (!TEST_int_le(EVP_KDF_CTX_set_params(kctx, params), 0)) -- 2.47.2