]> git.ipfire.org Git - thirdparty/openssl.git/commit
test: use runtime FIPS detection instead of compile-time check master
authorAnatolii Ohorodnyk <anatolii.ohorodnyk@gmail.com>
Wed, 31 Dec 2025 20:40:11 +0000 (20:40 +0000)
committerPauli <paul.dale@oracle.com>
Tue, 6 Jan 2026 21:28:51 +0000 (08:28 +1100)
commit5707fd07531a4bf923a5a20b136691291e08bd57
tree87407acf272e5daefd8c28d6982e84586b5099c3
parent712361413403dad7f09ee43ce1a5581d5ae7bb3a
test: use runtime FIPS detection instead of compile-time check

Replace #ifdef FIPS_MODULE with OSSL_PROVIDER_available() runtime check
in ecdsatest.c. The compile-time check is not meaningful for test cases
as the test binary may be compiled without FIPS_MODULE but run with the
FIPS provider loaded.

Fixes #28255

CLA: trivial

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29527)
test/ecdsatest.c