]> git.ipfire.org Git - thirdparty/openssl.git/commit
fips: correctly initialise FIPS indicator settables
authorPauli <ppzgs1@gmail.com>
Thu, 18 Jul 2024 02:53:22 +0000 (12:53 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 19 Jul 2024 15:33:19 +0000 (17:33 +0200)
commit98afa01f3e02fba18f9203b2451113df8f247f7c
tree00e39adc9a8eb11212adad6b1335c79d1c55ff58
parent8a79f5bc184939aeaff4479d48fda92d0d33aa96
fips: correctly initialise FIPS indicator settables

The `memset(3)` just happened to work because 2s complement.
This is more robust.

Also reduced the size of the indicator structure.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24923)
providers/common/include/prov/fipsindicator.h
providers/fips/fipsindicator.c