libmicrohttpd

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

commit e981dee05ddcaf409275273c2c7ecf5460b1f927
parent 32aa4d0d99a05020a23874f31be931cb79e72cec
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 28 Jan 2024 23:02:32 +0100

Fixed some doxy for digest auth

Diffstat:
Msrc/include/microhttpd.h | 7++++---
Msrc/microhttpd/digestauth.c | 9+++++----
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -5521,7 +5521,8 @@ enum MHD_DigestAuthResult MHD_DAUTH_NONCE_WRONG = -33, /** - * The 'response' is wrong. May indicate an attack attempt. + * The 'response' is wrong. Typically it means that wrong password used. + * May indicate an attack attempt. */ MHD_DAUTH_RESPONSE_WRONG = -34 }; @@ -5592,8 +5593,8 @@ MHD_digest_auth_check3 (struct MHD_Connection *connection, * if this function succeeds, then this buffer has * #MHD_digest_get_hash_size(algo3) bytes of * userdigest upon return - * @param userdigest_bin the size of the @a userdigest_bin buffer, must be - * at least #MHD_digest_get_hash_size(algo3) bytes long + * @param bin_buf_size the size of the @a userdigest_bin buffer, must be + * at least #MHD_digest_get_hash_size(algo3) bytes long * @return MHD_YES on success, * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is * not supported (or external error has occurred, diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -1923,8 +1923,8 @@ calc_userdigest (struct DigestAlgorithm *da, * if this function succeeds, then this buffer has * #MHD_digest_get_hash_size(algo3) bytes of * userdigest upon return - * @param userdigest_bin the size of the @a userdigest_bin buffer, must be - * at least #MHD_digest_get_hash_size(algo3) bytes long + * @param bin_buf_size the size of the @a userdigest_bin buffer, must be + * at least #MHD_digest_get_hash_size(algo3) bytes long * @return MHD_YES on success, * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is * not supported (or external error has occurred, @@ -3545,8 +3545,9 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection, #endif /* HAVE_MESSAGES */ return MHD_NO; } - malgo3 &= (enum MHD_DigestAuthMultiQOP) - (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)); + malgo3 &= + (enum MHD_DigestAuthMultiQOP) + (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)); #ifdef MHD_MD5_SUPPORT if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5)) s_algo = MHD_DIGEST_AUTH_ALGO3_MD5;