aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-11 15:44:10 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-11 18:42:18 +0300
commit9fa5a3b990f93b94557bc2f52aaff8db241702a7 (patch)
tree8e377be2d4e1f4b61a1b3f9175ebf4cf3112920d /src/microhttpd
parent6cf8c2f33fd1534687044ec52cb18e86865d7f78 (diff)
downloadlibmicrohttpd-9fa5a3b990f93b94557bc2f52aaff8db241702a7.tar.gz
libmicrohttpd-9fa5a3b990f93b94557bc2f52aaff8db241702a7.zip
test_dauth_user{digest,hash}: fixed copy-paste errors
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/test_dauth_userdigest.c4
-rw-r--r--src/microhttpd/test_dauth_userhash.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/test_dauth_userdigest.c b/src/microhttpd/test_dauth_userdigest.c
index 3af45156..10bf0515 100644
--- a/src/microhttpd/test_dauth_userdigest.c
+++ b/src/microhttpd/test_dauth_userdigest.c
@@ -356,7 +356,7 @@ test_sha256_failure (void)
356 "FAILED: %s() has not returned MHD_NO at line: %u.\n", 356 "FAILED: %s() has not returned MHD_NO at line: %u.\n",
357 func_name, (unsigned) __LINE__); 357 func_name, (unsigned) __LINE__);
358 } 358 }
359 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) 359 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256))
360 { 360 {
361 if (MHD_NO != MHD_digest_auth_calc_userhash (algo3, 361 if (MHD_NO != MHD_digest_auth_calc_userhash (algo3,
362 "u", "r", 362 "u", "r",
@@ -390,7 +390,7 @@ test_sha256_failure (void)
390 "FAILED: %s() has not returned MHD_NO at line: %u.\n", 390 "FAILED: %s() has not returned MHD_NO at line: %u.\n",
391 func_name, (unsigned) __LINE__); 391 func_name, (unsigned) __LINE__);
392 } 392 }
393 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) 393 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256))
394 { 394 {
395 if (MHD_NO != 395 if (MHD_NO !=
396 MHD_digest_auth_calc_userhash_hex (algo3, 396 MHD_digest_auth_calc_userhash_hex (algo3,
diff --git a/src/microhttpd/test_dauth_userhash.c b/src/microhttpd/test_dauth_userhash.c
index 6e525773..94230acd 100644
--- a/src/microhttpd/test_dauth_userhash.c
+++ b/src/microhttpd/test_dauth_userhash.c
@@ -453,7 +453,7 @@ test_sha256_failure (void)
453 "FAILED: %s() has not returned MHD_NO at line: %u.\n", 453 "FAILED: %s() has not returned MHD_NO at line: %u.\n",
454 func_name, (unsigned) __LINE__); 454 func_name, (unsigned) __LINE__);
455 } 455 }
456 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) 456 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256))
457 { 457 {
458 if (MHD_NO != MHD_digest_auth_calc_userhash (algo3, 458 if (MHD_NO != MHD_digest_auth_calc_userhash (algo3,
459 "u", "r", 459 "u", "r",
@@ -487,7 +487,7 @@ test_sha256_failure (void)
487 "FAILED: %s() has not returned MHD_NO at line: %u.\n", 487 "FAILED: %s() has not returned MHD_NO at line: %u.\n",
488 func_name, (unsigned) __LINE__); 488 func_name, (unsigned) __LINE__);
489 } 489 }
490 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) 490 if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256))
491 { 491 {
492 if (MHD_NO != 492 if (MHD_NO !=
493 MHD_digest_auth_calc_userhash_hex (algo3, 493 MHD_digest_auth_calc_userhash_hex (algo3,