]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ecx: convert to transient error state on import failure in FIPS provider
authorPauli <ppzgs1@gmail.com>
Fri, 29 Aug 2025 02:42:46 +0000 (12:42 +1000)
committerNeil Horman <nhorman@openssl.org>
Sat, 30 Aug 2025 13:10:59 +0000 (09:10 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28376)

providers/implementations/keymgmt/ecx_kmgmt.c.in

index b718c6b598abff7719585867d37a59b4b3f01035..99ec7499c22605debb60bf4ac7b13faa09544046 100644 (file)
@@ -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;