]> 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:46 +0000 (11:43 +0200)
commit9aae56395aa8e77c44a9df83fd395a644d016635
treeb54ad86e2552e1188486efb3a8715a5581eec2ff
parent507e9ad9cfcc3786a328577436542b0bf6adae86
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