libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9fa5a3b990f93b94557bc2f52aaff8db241702a7
parent 6cf8c2f33fd1534687044ec52cb18e86865d7f78
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 11 Sep 2022 15:44:10 +0300

test_dauth_user{digest,hash}: fixed copy-paste errors

Diffstat:
Msrc/microhttpd/test_dauth_userdigest.c | 4++--
Msrc/microhttpd/test_dauth_userhash.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/test_dauth_userdigest.c b/src/microhttpd/test_dauth_userdigest.c @@ -356,7 +356,7 @@ test_sha256_failure (void) "FAILED: %s() has not returned MHD_NO at line: %u.\n", func_name, (unsigned) __LINE__); } - if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) + if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256)) { if (MHD_NO != MHD_digest_auth_calc_userhash (algo3, "u", "r", @@ -390,7 +390,7 @@ test_sha256_failure (void) "FAILED: %s() has not returned MHD_NO at line: %u.\n", func_name, (unsigned) __LINE__); } - if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) + if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256)) { if (MHD_NO != MHD_digest_auth_calc_userhash_hex (algo3, diff --git a/src/microhttpd/test_dauth_userhash.c b/src/microhttpd/test_dauth_userhash.c @@ -453,7 +453,7 @@ test_sha256_failure (void) "FAILED: %s() has not returned MHD_NO at line: %u.\n", func_name, (unsigned) __LINE__); } - if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) + if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256)) { if (MHD_NO != MHD_digest_auth_calc_userhash (algo3, "u", "r", @@ -487,7 +487,7 @@ test_sha256_failure (void) "FAILED: %s() has not returned MHD_NO at line: %u.\n", func_name, (unsigned) __LINE__); } - if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_MD5)) + if (MHD_NO == MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH_SHA256)) { if (MHD_NO != MHD_digest_auth_calc_userhash_hex (algo3,