commit 9d210914bf26eaf28dede27a941d350a0ebdb7be
parent 5a2605c22bbe3a03c0eff66493aac2daf74216e8
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 2 Nov 2025 19:41:33 +0100
Digest Auth: fixed internal macro name
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mhd2/action.c b/src/mhd2/action.c
@@ -301,7 +301,7 @@ MHD_upload_action_from_response (struct MHD_Request *MHD_RESTRICT request,
return (const struct MHD_UploadAction *) NULL;
}
#ifdef MHD_SUPPORT_AUTH_DIGEST
- if (mhd_RESP_HAD_AUTH_DIGEST (response) &&
+ if (mhd_RESP_HAS_AUTH_DIGEST (response) &&
! mhd_D_HAS_AUTH_DIGEST ( \
mhd_CNTNR_CPTR (request, struct MHD_Connection, rq)->daemon))
{
diff --git a/src/mhd2/mhd_response.h b/src/mhd2/mhd_response.h
@@ -403,10 +403,10 @@ struct MHD_Response
* Check whether the response has Digest Auth headers
*/
#ifdef MHD_SUPPORT_AUTH_DIGEST
-#define mhd_RESP_HAD_AUTH_DIGEST(resp) \
+#define mhd_RESP_HAS_AUTH_DIGEST(resp) \
(NULL != mhd_DLINKEDL_GET_FIRST (resp, auth_d_hdrs))
#else
-#define mhd_RESP_HAD_AUTH_DIGEST(resp) (((void) (resp)), ! ! 0)
+#define mhd_RESP_HAS_AUTH_DIGEST(resp) (((void) (resp)), ! ! 0)
#endif
#endif /* ! MHD_RESPONSE_H */
diff --git a/src/mhd2/stream_process_reply.c b/src/mhd2/stream_process_reply.c
@@ -855,7 +855,7 @@ build_header_response_inn (struct MHD_Connection *restrict c)
/* Special headers */
#ifdef MHD_SUPPORT_AUTH_DIGEST
- if (mhd_RESP_HAD_AUTH_DIGEST (r))
+ if (mhd_RESP_HAS_AUTH_DIGEST (r))
{
char noncestr[mhd_AUTH_DIGEST_NONCE_LEN];
const struct mhd_RespAuthDigestHeader *dg_hdr;