Remove the flag variable in OpenSSL_add_all_ciphers() and
authorRichard Levitte <levitte@openssl.org>
Thu, 14 Nov 2002 23:24:39 +0000 (23:24 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Nov 2002 23:24:39 +0000 (23:24 +0000)
OpenSSL_add_all_digests(), as it doesn't really serve any
sensible purpose.
PR: 261

crypto/evp/c_allc.c
crypto/evp/c_alld.c

index 0820557fdbf550301bf25abc0e4bf991531bf697..f24d3756c904a8650f30ce77a4b97683d16845c7 100644 (file)
 
 void OpenSSL_add_all_ciphers(void)
        {
-       static int done=0;
-
-       if (done) return;
-       done=1;
 #ifndef NO_DES
        EVP_add_cipher(EVP_des_cfb());
        EVP_add_cipher(EVP_des_ede_cfb());
index 41695df1067b462a4823446a14fb4835590948d4..bbf059eb85e27e68fe47e5481e82823b80998277 100644 (file)
 
 void OpenSSL_add_all_digests(void)
        {
-       static int done=0;
-
-       if (done) return;
-       done=1;
 #ifndef NO_MD2
        EVP_add_digest(EVP_md2());
 #endif