[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 11/335: Fixed some doxy for digest auth
From: |
gnunet |
Subject: |
[libmicrohttpd] 11/335: Fixed some doxy for digest auth |
Date: |
Sat, 27 Jul 2024 21:58:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit 8bd8cd0ace02b170c8924cb84e2c17cd8b99b09c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Jan 28 23:02:32 2024 +0100
Fixed some doxy for digest auth
---
src/include/microhttpd.h | 7 ++++---
src/microhttpd/digestauth.c | 9 +++++----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 6db28657..910589d3 100644
--- 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
index 58561abb..99e9872e 100644
--- 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] tag stf-m2 created (now 3a520997), gnunet, 2024/07/27
- [libmicrohttpd] 04/335: header work, gnunet, 2024/07/27
- [libmicrohttpd] 06/335: add missing lock, do not call 'close(-1)' on very rare error path, gnunet, 2024/07/27
- [libmicrohttpd] 05/335: small typo likely from copy&paste causing macro names to be different between builds with and without messages resulting in compilation failure if configured with --disable-messages, gnunet, 2024/07/27
- [libmicrohttpd] 08/335: clean up logic, simplify one dead branch in test, gnunet, 2024/07/27
- [libmicrohttpd] 07/335: use correct HTTP header (content type, not content encoding) for mime type in example; do check return value in example, gnunet, 2024/07/27
- [libmicrohttpd] 01/335: first edits, gnunet, 2024/07/27
- [libmicrohttpd] 09/335: fix memory leak on error path, gnunet, 2024/07/27
- [libmicrohttpd] 11/335: Fixed some doxy for digest auth,
gnunet <=
- [libmicrohttpd] 10/335: fix #8012, gnunet, 2024/07/27
- [libmicrohttpd] 03/335: checkpointing, gnunet, 2024/07/27
- [libmicrohttpd] 02/335: checkpointing, gnunet, 2024/07/27
- [libmicrohttpd] 13/335: digest_auth_example_adv: added new example, gnunet, 2024/07/27
- [libmicrohttpd] 24/335: Fixed compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 21/335: Updated .gitignore, gnunet, 2024/07/27
- [libmicrohttpd] 17/335: make-dist.sh: allowed Debian trixie/sid, gnunet, 2024/07/27
- [libmicrohttpd] 18/335: libcurl tests: fixed compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 27/335: Muted extra compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 23/335: Fixed compiler warnings, gnunet, 2024/07/27