summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2018-07-25 08:15:02 +0000
committerRuediger Pluem <rpluem@apache.org>2018-07-25 08:15:02 +0000
commitcb06ddcf2f54b8af037cbd46c00030603b8274b6 (patch)
tree8139b51914d3018fbb5812ddf580ef7c003056e6 /crypto
parent05ab1496ca50e93a51325fd12b97e9acfc0b9d14 (diff)
downloadapr-cb06ddcf2f54b8af037cbd46c00030603b8274b6.tar.gz
* Scratch md2 and md4 as they are not part of key_digests array
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1836610 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'crypto')
-rw-r--r--crypto/apr_crypto_nss.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/apr_crypto_nss.c b/crypto/apr_crypto_nss.c
index 807ae58c5..59955b2fa 100644
--- a/crypto/apr_crypto_nss.c
+++ b/crypto/apr_crypto_nss.c
@@ -271,9 +271,7 @@ static apr_status_t crypto_make(apr_crypto_t **ff,
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]));