summaryrefslogtreecommitdiffstats
path: root/fips/fips.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-05-11 12:16:01 +0200
committerAndy Polyakov <appro@openssl.org>2015-05-13 16:48:08 +0200
commit34f39b062c76fbd3082521b26edee7f53afc061d (patch)
treee5058e3e87893ecaa721a629f439d71db52656b9 /fips/fips.c
parent6db8e3bdc9ef83d83b83f3eec9722c96daa91f82 (diff)
util/incore update that allows FINGERPRINT_premain-free build.OpenSSL-fips-2_0_10
As for complementary fips.c modification. Goal is to ensure that FIPS_signature does not end up in .bss segment, one guaranteed to be zeroed upon program start-up. One would expect explicitly initialized values to end up in .data segment, but it turned out that values explicitly initialized with zeros can end up in .bss. The modification does not affect program flow, because first byte was the only one of significance [to FINGERPRINT_premain]. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'fips/fips.c')
-rw-r--r--fips/fips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fips/fips.c b/fips/fips.c
index 8c9e187d7b..0269609a7e 100644
--- a/fips/fips.c
+++ b/fips/fips.c
@@ -151,7 +151,7 @@ extern const unsigned char FIPS_rodata_start[], FIPS_rodata_end[];
#ifdef _TMS320C6X
const
#endif
-unsigned char FIPS_signature [20] = { 0 };
+unsigned char FIPS_signature [20] = { 0, 0xff };
__fips_constseg
static const char FIPS_hmac_key[]="etaonrishdlcupfm";