You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mi...@apache.org on 2018/08/27 11:51:32 UTC
svn commit: r1839299 - in /apr/apr-util/branches/1.7.x/crypto:
apr_crypto_commoncrypto.c apr_crypto_nss.c
Author: minfrin
Date: Mon Aug 27 11:51:32 2018
New Revision: 1839299
URL: http://svn.apache.org/viewvc?rev=1839299&view=rev
Log:
Backport r1839298.
Remove non existent digests.
Modified:
apr/apr-util/branches/1.7.x/crypto/apr_crypto_commoncrypto.c
apr/apr-util/branches/1.7.x/crypto/apr_crypto_nss.c
Modified: apr/apr-util/branches/1.7.x/crypto/apr_crypto_commoncrypto.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/crypto/apr_crypto_commoncrypto.c?rev=1839299&r1=1839298&r2=1839299&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/crypto/apr_crypto_commoncrypto.c (original)
+++ apr/apr-util/branches/1.7.x/crypto/apr_crypto_commoncrypto.c Mon Aug 27 11:51:32 2018
@@ -256,9 +256,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]));
Modified: apr/apr-util/branches/1.7.x/crypto/apr_crypto_nss.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/crypto/apr_crypto_nss.c?rev=1839299&r1=1839298&r2=1839299&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/crypto/apr_crypto_nss.c (original)
+++ apr/apr-util/branches/1.7.x/crypto/apr_crypto_nss.c Mon Aug 27 11:51:32 2018
@@ -383,9 +383,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]));