ssl.c: refactor wolfSSL_LH_strhash() to use SHA1 instead of MD5, to eliminate dependency on deprecated alg.

This commit is contained in:
Daniel Pouzzner
2021-08-27 17:16:06 -05:00
parent ddda108de6
commit f1c1f76851
2 changed files with 31 additions and 10 deletions
+3 -1
View File
@@ -29505,7 +29505,7 @@ static void test_wolfSSL_lhash(void)
printf(testingFmt, "wolfSSL_LH_strhash()");
AssertIntEQ(lh_strhash(testStr), 0xb1231320);
AssertIntEQ(lh_strhash(testStr), 0x5b7541dc);
printf(resultFmt, passed);
#endif
@@ -42923,7 +42923,9 @@ static void test_wolfSSL_EVP_get_digestbynid(void)
printf(testingFmt, "wolfSSL_EVP_get_digestbynid");
#ifndef NO_MD5
AssertNotNull(wolfSSL_EVP_get_digestbynid(NID_md5));
#endif
AssertNotNull(wolfSSL_EVP_get_digestbynid(NID_sha1));
AssertNull(wolfSSL_EVP_get_digestbynid(0));