From 691c22b61cae1c197fa2e8a4fccd128dad727421 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Fri, 21 Jan 2022 13:10:45 +0100 Subject: [PATCH] Remove volatile attribute from HMAC to make annocheck happy Related: rhbz#1985362 --- 0033-FIPS-embed-hmac.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0033-FIPS-embed-hmac.patch b/0033-FIPS-embed-hmac.patch index 5e914ed..c788072 100644 --- a/0033-FIPS-embed-hmac.patch +++ b/0033-FIPS-embed-hmac.patch @@ -10,7 +10,7 @@ diff -up openssl-3.0.0/providers/fips/self_test.c.embed-hmac openssl-3.0.0/provi + * The __attribute__ ensures we've created the .rodata1 section + * static ensures it's zero filled +*/ -+static const volatile unsigned char __attribute__ ((section (".rodata1"))) fips_hmac_container[HMAC_LEN] = {0}; ++static const unsigned char __attribute__ ((section (".rodata1"))) fips_hmac_container[HMAC_LEN] = {0}; + /* * Calculate the HMAC SHA256 of data read using a BIO and read_cb, and verify