apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r1836610 - /apr/apr/trunk/crypto/apr_crypto_nss.c
Date Wed, 25 Jul 2018 08:15:03 GMT
Author: rpluem
Date: Wed Jul 25 08:15:02 2018
New Revision: 1836610

URL: http://svn.apache.org/viewvc?rev=1836610&view=rev
Log:
* Scratch md2 and md4 as they are not part of key_digests array

Modified:
    apr/apr/trunk/crypto/apr_crypto_nss.c

Modified: apr/apr/trunk/crypto/apr_crypto_nss.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/crypto/apr_crypto_nss.c?rev=1836610&r1=1836609&r2=1836610&view=diff
==============================================================================
--- apr/apr/trunk/crypto/apr_crypto_nss.c (original)
+++ apr/apr/trunk/crypto/apr_crypto_nss.c Wed Jul 25 08:15:02 2018
@@ -271,9 +271,7 @@ static apr_status_t crypto_make(apr_cryp
     if (!f->digests) {
         return APR_ENOMEM;
     }
-    apr_hash_set(f->digests, "md2", APR_HASH_KEY_STRING, &(key_digests[i = 0]));
-    apr_hash_set(f->digests, "md4", APR_HASH_KEY_STRING, &(key_digests[++i]));
-    apr_hash_set(f->digests, "md5", APR_HASH_KEY_STRING, &(key_digests[++i]));
+    apr_hash_set(f->digests, "md5", APR_HASH_KEY_STRING, &(key_digests[i = 0]));
     apr_hash_set(f->digests, "sha1", APR_HASH_KEY_STRING, &(key_digests[++i]));
     apr_hash_set(f->digests, "sha224", APR_HASH_KEY_STRING, &(key_digests[++i]));
     apr_hash_set(f->digests, "sha256", APR_HASH_KEY_STRING, &(key_digests[++i]));



Mime
View raw message