Skip to content

Commit

Permalink
* Scratch md2 and md4 as they are not part of key_digests array
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1836610 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rpluem committed Jul 25, 2018
1 parent 0121ed9 commit 7549f6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crypto/apr_crypto_nss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit 7549f6c

Please sign in to comment.