]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix evp_test HKDF failure in crosstest 3.1.2 FIPS provider with master
authorslontis <shane.lontis@oracle.com>
Mon, 5 Aug 2024 22:40:38 +0000 (08:40 +1000)
committerTomas Mraz <tomas@openssl.org>
Tue, 6 Aug 2024 08:17:50 +0000 (10:17 +0200)
commit7f8ff7ab140549a768a531d15189e54d56e52822
tree205a50cfd6c8ac4c7cbd1762d4e9af47622ef39b
parent20bf3fe236d36734a17a08252ed19c9e1bc161cd
Fix evp_test HKDF failure in crosstest 3.1.2 FIPS provider with master

Fixes #25089
The test to check if the FIPS indicator was correct failed in 3.1.2
since EVP_PKEY_CTX_get_params() returns 0 if there is no
gettable/getter.

The code has been modified to return 1 if there is no gettable.
Manually reproduced and tested by copying the 3.1.2 FIPS provider to master.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25093)
test/evp_test.c