Remove defunct FIPS_allow_md5() and related functions.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 22 Apr 2005 01:06:59 +0000 (01:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 22 Apr 2005 01:06:59 +0000 (01:06 +0000)
apps/openssl.c
fips/fips.c
fips/fips.h
fips/fipshashes.c

index 65a9ee8a66b42aa6cff1f1d595ee4c1a13916b95..2080fa8816bb2d9cf1cff2b4fdabca827c370fdf 100644 (file)
@@ -250,8 +250,6 @@ int main(int Argc, char *Argv[])
                        EXIT(1);
                }
                in_FIPS_mode = 1;
-               if (getenv("OPENSSL_FIPS_MD5"))
-                       FIPS_allow_md5(1);
                }
 #endif
        if (bio_err == NULL)
index e879e0c3db993e28d81d0face8c11549242432af..9e478b2fa230b9cf80be64fea0d3619552b036e4 100644 (file)
@@ -63,7 +63,6 @@
 #define PATH_MAX 1024
 #endif
 
-static int fips_md5_allowed = 0;
 static int fips_selftest_fail = 0;
 static int fips_mode = 0;
 static const void *fips_rand_check = 0;
@@ -120,32 +119,6 @@ const void *FIPS_rand_check(void)
        return ret;
        }
 
-void FIPS_allow_md5(int onoff)
-    {
-    if (fips_is_started())
-       {
-       int owning_thread = fips_is_owning_thread();
-
-       if (!owning_thread) fips_w_lock();
-       fips_md5_allowed = onoff;
-       if (!owning_thread) fips_w_unlock();
-       }
-    }
-
-int FIPS_md5_allowed(void)
-    {
-    int ret = 1;
-    if (fips_is_started())
-       {
-       int owning_thread = fips_is_owning_thread();
-
-       if (!owning_thread) fips_r_lock();
-       ret = fips_md5_allowed;
-       if (!owning_thread) fips_r_unlock();
-       }
-    return ret;
-    }
-
 int FIPS_selftest_failed(void)
     {
     int ret = 0;
index 15fa2d2c1bdec7468703116693c96a4270d2c1c6..e8ebaf3679d8b6b1e5e656b00c6968fcaacfcc77 100644 (file)
@@ -60,8 +60,6 @@ struct dsa_st;
 int FIPS_mode_set(int onoff,const char *path);
 int FIPS_mode(void);
 const void *FIPS_rand_check(void);
-void FIPS_allow_md5(int onoff);
-int FIPS_md5_allowed(void);
 int FIPS_selftest_failed(void);
 int FIPS_dsa_check(struct dsa_st *dsa);
 void FIPS_corrupt_sha1(void);
index a9c3c2266ba0727783a0e515398067d5e0efb582..8470c1f594cd6022974b419eb8a45a637f620e5c 100644 (file)
@@ -1,7 +1,7 @@
 const char * const FIPS_source_hashes[] = {
-"HMAC-SHA1(fips.c)= f14ae9175119f045f1c645a2458602ccd2b2a34e",
+"HMAC-SHA1(fips.c)= bce1e4b169f95f66b0eaf86847b41d9a2f62acd6",
 "HMAC-SHA1(fips_err_wrapper.c)= d3e2be316062510312269e98f964cb87e7577898",
-"HMAC-SHA1(fips.h)= 70f0181f269e6b09a9e3e6d9ff82f3461bd41222",
+"HMAC-SHA1(fips.h)= 564e34c12d6743a9be06d5da74608a71937c872a",
 "HMAC-SHA1(fips_err.h)= 03468e3b593f7528fd934e49bf052c23cc98d301",
 "HMAC-SHA1(aes/fips_aes_core.c)= b70bbbd675efe0613da0d57055310926a0104d55",
 "HMAC-SHA1(aes/asm/fips-ax86-elf.s)= 0d1c89f93cbf7bf4854bb238627c99ecda462f17",