aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index aaed170e..2d70e10a 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -81,7 +81,7 @@
81#endif 81#endif
82 82
83/** 83/**
84 * Check that @a n is below #MAX_NONCE 84 * Check that @a n is below #MAX_DIGEST
85 */ 85 */
86#define VLA_CHECK_LEN_DIGEST(n) do { if ((n) > MAX_DIGEST) mhd_panic ( \ 86#define VLA_CHECK_LEN_DIGEST(n) do { if ((n) > MAX_DIGEST) mhd_panic ( \
87 mhd_panic_cls, __FILE__, __LINE__, \ 87 mhd_panic_cls, __FILE__, __LINE__, \
@@ -205,7 +205,7 @@ cvthex (const unsigned char *bin,
205 * da->sessionkey will be initialized to the digest in HEX 205 * da->sessionkey will be initialized to the digest in HEX
206 * @param digest An `unsigned char *' pointer to the binary MD5 sum 206 * @param digest An `unsigned char *' pointer to the binary MD5 sum
207 * for the precalculated hash value "username:realm:password" 207 * for the precalculated hash value "username:realm:password"
208 * of #MHD_MD5_DIGEST_SIZE or #MHD_SHA256_DIGEST_SIZE bytes 208 * of #MHD_MD5_DIGEST_SIZE or #SHA256_DIGEST_SIZE bytes
209 * @param nonce A `char *' pointer to the nonce value 209 * @param nonce A `char *' pointer to the nonce value
210 * @param cnonce A `char *' pointer to the cnonce value 210 * @param cnonce A `char *' pointer to the cnonce value
211 */ 211 */
@@ -1457,7 +1457,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1457/** 1457/**
1458 * Queues a response to request authentication from the client. 1458 * Queues a response to request authentication from the client.
1459 * For now uses MD5 (for backwards-compatibility). Still, if you 1459 * For now uses MD5 (for backwards-compatibility). Still, if you
1460 * need to be sure, use #MHD_queue_fail_auth_response2(). 1460 * need to be sure, use #MHD_queue_auth_fail_response2().
1461 * 1461 *
1462 * @param connection The MHD connection structure 1462 * @param connection The MHD connection structure
1463 * @param realm the realm presented to the client 1463 * @param realm the realm presented to the client
@@ -1469,6 +1469,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1469 * 'stale=true' to the authentication header 1469 * 'stale=true' to the authentication header
1470 * @return #MHD_YES on success, #MHD_NO otherwise 1470 * @return #MHD_YES on success, #MHD_NO otherwise
1471 * @ingroup authentication 1471 * @ingroup authentication
1472 * @deprecated use MHD_queue_auth_fail_response2()
1472 */ 1473 */
1473enum MHD_Result 1474enum MHD_Result
1474MHD_queue_auth_fail_response (struct MHD_Connection *connection, 1475MHD_queue_auth_fail_response (struct MHD_Connection *connection,