]> 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:42:40 +0000 (11:42 +0200)
commitc6c6af18ea5f8dd7aa2bd54b63fcb813ee6c2394
tree9a8466848ee8916a4b48254029be8b6eceea7b62
parent15b748496faeebb3b6d8021049bccc93903ee322
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)
test/endecode_test.c