]> git.ipfire.org Git - thirdparty/openssl.git/commit
Run on-demand self-tests when requested
authorSimo Sorce <simo@redhat.com>
Thu, 2 Oct 2025 21:57:42 +0000 (17:57 -0400)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 25 Oct 2025 08:45:21 +0000 (10:45 +0200)
commit43305ad7ae888bef3cf8617daccd75c11617a9a1
treefe72cae140d63798e61713a07c3cfa2520435a47
parenteb58322dc9d0013bffc662ab0360c6184abc8319
Run on-demand self-tests when requested

The `on_demand_test` flag passed to `SELF_TEST_post` was not being honored by
the Known Answer Test (KAT) runner. Tests marked as 'deferred' were always
skipped.

This change passes the `on_demand_test` flag through to the KAT functions,
ensuring that when an on-demand test is requested, the full suite of self-
tests is executed as intended.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28725)
providers/fips/self_test.c
providers/fips/self_test.h
providers/fips/self_test_kats.c