diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-28 23:02:32 +0100 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-28 23:02:32 +0100 |
commit | e981dee05ddcaf409275273c2c7ecf5460b1f927 (patch) | |
tree | 1bee869dd25371f6518646a31cc8e9d621d376c4 | |
parent | 32aa4d0d99a05020a23874f31be931cb79e72cec (diff) | |
download | libmicrohttpd-e981dee05ddcaf409275273c2c7ecf5460b1f927.tar.gz libmicrohttpd-e981dee05ddcaf409275273c2c7ecf5460b1f927.zip |
Fixed some doxy for digest auth
-rw-r--r-- | src/include/microhttpd.h | 7 | ||||
-rw-r--r-- | 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 b0b06d51..c24fbd8b 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -5521,7 +5521,8 @@ enum MHD_DigestAuthResult | |||
5521 | MHD_DAUTH_NONCE_WRONG = -33, | 5521 | MHD_DAUTH_NONCE_WRONG = -33, |
5522 | 5522 | ||
5523 | /** | 5523 | /** |
5524 | * The 'response' is wrong. May indicate an attack attempt. | 5524 | * The 'response' is wrong. Typically it means that wrong password used. |
5525 | * May indicate an attack attempt. | ||
5525 | */ | 5526 | */ |
5526 | MHD_DAUTH_RESPONSE_WRONG = -34 | 5527 | MHD_DAUTH_RESPONSE_WRONG = -34 |
5527 | }; | 5528 | }; |
@@ -5592,8 +5593,8 @@ MHD_digest_auth_check3 (struct MHD_Connection *connection, | |||
5592 | * if this function succeeds, then this buffer has | 5593 | * if this function succeeds, then this buffer has |
5593 | * #MHD_digest_get_hash_size(algo3) bytes of | 5594 | * #MHD_digest_get_hash_size(algo3) bytes of |
5594 | * userdigest upon return | 5595 | * userdigest upon return |
5595 | * @param userdigest_bin the size of the @a userdigest_bin buffer, must be | 5596 | * @param bin_buf_size the size of the @a userdigest_bin buffer, must be |
5596 | * at least #MHD_digest_get_hash_size(algo3) bytes long | 5597 | * at least #MHD_digest_get_hash_size(algo3) bytes long |
5597 | * @return MHD_YES on success, | 5598 | * @return MHD_YES on success, |
5598 | * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is | 5599 | * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is |
5599 | * not supported (or external error has occurred, | 5600 | * 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, | |||
1923 | * if this function succeeds, then this buffer has | 1923 | * if this function succeeds, then this buffer has |
1924 | * #MHD_digest_get_hash_size(algo3) bytes of | 1924 | * #MHD_digest_get_hash_size(algo3) bytes of |
1925 | * userdigest upon return | 1925 | * userdigest upon return |
1926 | * @param userdigest_bin the size of the @a userdigest_bin buffer, must be | 1926 | * @param bin_buf_size the size of the @a userdigest_bin buffer, must be |
1927 | * at least #MHD_digest_get_hash_size(algo3) bytes long | 1927 | * at least #MHD_digest_get_hash_size(algo3) bytes long |
1928 | * @return MHD_YES on success, | 1928 | * @return MHD_YES on success, |
1929 | * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is | 1929 | * MHD_NO if @a userdigest_bin is too small or if @a algo3 algorithm is |
1930 | * not supported (or external error has occurred, | 1930 | * not supported (or external error has occurred, |
@@ -3545,8 +3545,9 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection, | |||
3545 | #endif /* HAVE_MESSAGES */ | 3545 | #endif /* HAVE_MESSAGES */ |
3546 | return MHD_NO; | 3546 | return MHD_NO; |
3547 | } | 3547 | } |
3548 | malgo3 &= (enum MHD_DigestAuthMultiQOP) | 3548 | malgo3 &= |
3549 | (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)); | 3549 | (enum MHD_DigestAuthMultiQOP) |
3550 | (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)); | ||
3550 | #ifdef MHD_MD5_SUPPORT | 3551 | #ifdef MHD_MD5_SUPPORT |
3551 | if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5)) | 3552 | if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5)) |
3552 | s_algo = MHD_DIGEST_AUTH_ALGO3_MD5; | 3553 | s_algo = MHD_DIGEST_AUTH_ALGO3_MD5; |