From: Pauli Date: Fri, 29 Aug 2025 02:42:46 +0000 (+1000) Subject: ecx: convert to transient error state on import failure in FIPS provider X-Git-Tag: openssl-3.5.3~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=119a7f4d808a15f359e20e50f918b48ea09bc208;p=thirdparty%2Fopenssl.git 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) (cherry picked from commit 811f68ffe2cb97ab997c11b0429236135eb437c0) --- diff --git a/providers/implementations/keymgmt/ecx_kmgmt.c b/providers/implementations/keymgmt/ecx_kmgmt.c index faf25606e33..e6d326a9070 100644 --- a/providers/implementations/keymgmt/ecx_kmgmt.c +++ b/providers/implementations/keymgmt/ecx_kmgmt.c @@ -223,7 +223,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;