From 811f68ffe2cb97ab997c11b0429236135eb437c0 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 29 Aug 2025 12:42:46 +1000 Subject: [PATCH] ecx: convert to transient error state on import failure in FIPS provider Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28376) --- providers/implementations/keymgmt/ecx_kmgmt.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/implementations/keymgmt/ecx_kmgmt.c.in b/providers/implementations/keymgmt/ecx_kmgmt.c.in index b718c6b598..99ec7499c2 100644 --- a/providers/implementations/keymgmt/ecx_kmgmt.c.in +++ b/providers/implementations/keymgmt/ecx_kmgmt.c.in @@ -234,7 +234,7 @@ static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) if (key->haspubkey && key->privkey != NULL) { ok = ecd_fips140_pairwise_test(key, key->type, 1); if (ok <= 0) - ossl_set_error_state(OSSL_SELF_TEST_TYPE_PCT); + ossl_set_error_state(OSSL_SELF_TEST_TYPE_PCT_IMPORT); } #endif /* FIPS_MODULE */ return ok;