Move some variables to .bss.
authorAndy Polyakov <appro@openssl.org>
Fri, 22 Apr 2005 12:15:38 +0000 (12:15 +0000)
committerAndy Polyakov <appro@openssl.org>
Fri, 22 Apr 2005 12:15:38 +0000 (12:15 +0000)
fips/fips.c
fips/fips_err.h
fips/fipshashes.c

index 9e478b2fa230b9cf80be64fea0d3619552b036e4..8f19c0ecec9213168f7b4cde93998b665972f38a 100644 (file)
@@ -63,9 +63,9 @@
 #define PATH_MAX 1024
 #endif
 
-static int fips_selftest_fail = 0;
-static int fips_mode = 0;
-static const void *fips_rand_check = 0;
+static int fips_selftest_fail;
+static int fips_mode;
+static const void *fips_rand_check;
 
 static void fips_set_mode(int onoff)
        {
index b8e1f57bca243b4d66fba2d9aca434bc3542b582..4f79f79862ecae465d4349733210ce8efc1f57a5 100644 (file)
@@ -108,11 +108,11 @@ static ERR_STRING_DATA FIPS_str_reasons[]=
 
 void ERR_load_FIPS_strings(void)
        {
-       static int init=1;
+       static int init;
 
-       if (init)
+       if (!init)
                {
-               init=0;
+               init=1;
 #ifndef OPENSSL_NO_ERR
                ERR_load_strings(0,FIPS_str_functs);
                ERR_load_strings(0,FIPS_str_reasons);
index eeb94a317b2d84fd028b77b50527f7e6e77b017e..816694480cc780800dfc38d43aed8c8535a73b46 100644 (file)
@@ -1,8 +1,8 @@
 const char * const FIPS_source_hashes[] = {
-"HMAC-SHA1(fips.c)= bce1e4b169f95f66b0eaf86847b41d9a2f62acd6",
+"HMAC-SHA1(fips.c)= 2f46f538f12228814cfdc8c6b37261258686fc8c",
 "HMAC-SHA1(fips_err_wrapper.c)= d3e2be316062510312269e98f964cb87e7577898",
 "HMAC-SHA1(fips.h)= 564e34c12d6743a9be06d5da74608a71937c872a",
-"HMAC-SHA1(fips_err.h)= 03468e3b593f7528fd934e49bf052c23cc98d301",
+"HMAC-SHA1(fips_err.h)= 32ad0130f639b8f6ff417d3dfda553f5a1d7512d",
 "HMAC-SHA1(aes/fips_aes_core.c)= b70bbbd675efe0613da0d57055310926a0104d55",
 "HMAC-SHA1(aes/asm/fips-ax86-elf.s)= 36ea4b40665892c0a9d791b22437ed63cac64d53",
 "HMAC-SHA1(aes/fips_aes_selftest.c)= 98b01502221e7fe529fd981222f2cbb52eb4cbe0",