X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fips%2Ffips_premain.c;h=7dc52460069f76c14c7f41e8e77b722b01963b08;hb=4082fea81c150e9f2643819148d275e500f309a3;hp=165d2c5dc9741da4f7a67f8bc623c1f55e4f3c59;hpb=2b4b28dc32ce7623f6169b43cd18585174de6b20;p=oweals%2Fopenssl.git diff --git a/fips/fips_premain.c b/fips/fips_premain.c index 165d2c5dc9..7dc5246006 100644 --- a/fips/fips_premain.c +++ b/fips/fips_premain.c @@ -7,7 +7,7 @@ #include #include #include -#if defined(__unix) || defined(__unix__) +#if defined(__unix) || defined(__unix__) || defined(__vxworks) || defined(__ANDROID__) || defined(__APPLE__) #include #endif @@ -68,7 +68,12 @@ #define HMAC_SHA1_SIG "?have to make sure this string is unique" #endif -static const unsigned char FINGERPRINT_ascii_value[40] = HMAC_SHA1_SIG; +#if defined(_MSC_VER) +# pragma const_seg("fipsro") +# pragma const_seg() + __declspec(allocate("fipsro")) +#endif +static const unsigned char FINGERPRINT_ascii_value[41] = HMAC_SHA1_SIG; #define atox(c) ((c)>='a'?((c)-'a'+10):((c)>='A'?(c)-'A'+10:(c)-'0'))