commit d94229422f07a8023dac2c32638b012b7a73b47a
parent 26d501f7961211c9c4b0619c2733e3b27111a218
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 31 Jul 2024 13:28:09 +0200
digestauth: fixed log message when wrong value used and MHD has some
hashing algorithms disabled.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -3567,7 +3567,7 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection,
#endif /* MHD_SHA512_256_SUPPORT */
{
if (0 == (((unsigned int) malgo3)
- & (MHD_DIGEST_BASE_ALGO_MD5 | MHD_DIGEST_BASE_ALGO_SHA512_256
+ & (MHD_DIGEST_BASE_ALGO_MD5 | MHD_DIGEST_BASE_ALGO_SHA256
| MHD_DIGEST_BASE_ALGO_SHA512_256)))
MHD_PANIC (_ ("Wrong 'malgo3' value, API violation"));
else