aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimo Sorce <[email protected]>2026-10-01 22:23:46 +0200
committerDmitry Belyavskiy <[email protected]>2026-10-10 12:30:36 +0200
commit1d9809a35b92fff8c41ca3e6a53a76d3c1edbcd2 (patch)
tree79ddb83c9b92c63c1c7c2b7433e7ef4229fb791a
parenttest/quicapitest.c: fix BIO leak in test_quic_amplification_limit() (diff)
downloadopenssl-1d9809a35b92fff8c41ca3e6a53a76d3c1edbcd2.tar.gz
openssl-1d9809a35b92fff8c41ca3e6a53a76d3c1edbcd2.zip
Ensure self test is executed before SLH-DSA KeyGen
Signed-off-by: simo Sorce <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Paul Dale <[email protected]> MergeDate: Sat Oct 10 10:29:15 2026 (Merged from https://github.com/openssl/openssl/pull/33074) (cherry picked from commit 1300f36c559a74d28ac1e74b166bcb22429d97db)
-rw-r--r--providers/implementations/keymgmt/slh_dsa_kmgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/keymgmt/slh_dsa_kmgmt.c b/providers/implementations/keymgmt/slh_dsa_kmgmt.c
index 559df639f3c..e1473fe962b 100644
--- a/providers/implementations/keymgmt/slh_dsa_kmgmt.c
+++ b/providers/implementations/keymgmt/slh_dsa_kmgmt.c
@@ -361,7 +361,7 @@ static void *slh_dsa_gen(void *genctx, const char *alg)
SLH_DSA_KEY *key = NULL;
SLH_DSA_HASH_CTX *ctx = NULL;
- if (!ossl_prov_is_running())
+ if (!slh_dsa_self_check(gctx->libctx))
return NULL;
key = ossl_slh_dsa_key_new(gctx->libctx, gctx->propq, alg);
if (key == NULL)