]> git.ipfire.org Git - thirdparty/openssl.git/commit
endecode_test.c: Fix !fips v3.0.0 check
authorPauli <ppzgs1@gmail.com>
Fri, 30 Aug 2024 01:43:29 +0000 (11:43 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 30 Aug 2024 09:43:20 +0000 (11:43 +0200)
commitff35957337cdb1b68478fc5d1e77a2fc7e5be012
tree97a3809d02a878c2e9a828790e3d83643cacffbb
parent5673de461ae4b5a81f7ecd38103f3467585912bc
endecode_test.c: Fix !fips v3.0.0 check

The fips_provider_version_* functions return true if the FIPS provider isn't
loaded.  This is somewhat counterintuitive and the fix in #25327 neglected
this nuance resulting in not running the SM2 tests when the FIPS provider
wasn't being loaded.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25331)

(cherry picked from commit c6c6af18ea5f8dd7aa2bd54b63fcb813ee6c2394)
test/endecode_test.c