aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-12-28 12:44:46 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-12-28 12:51:07 +0300
commitff63d75797ddcaf223197e12b12def2b0803588c (patch)
tree60b1db2e1604fa93f0bc96511db6fdd06583e05b /src/include/microhttpd.h
parent6f9ff50bed6f38ed849d4699f4fcdde4d540e419 (diff)
downloadlibmicrohttpd-ff63d75797ddcaf223197e12b12def2b0803588c.tar.gz
libmicrohttpd-ff63d75797ddcaf223197e12b12def2b0803588c.zip
digest auth: added default timeout and max nc values
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 84b0d23d..c2873056 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -96,7 +96,7 @@ extern "C"
96 * they are parsed as decimal numbers. 96 * they are parsed as decimal numbers.
97 * Example: 0x01093001 = 1.9.30-1. 97 * Example: 0x01093001 = 1.9.30-1.
98 */ 98 */
99#define MHD_VERSION 0x00097707 99#define MHD_VERSION 0x00097708
100 100
101/* If generic headers don't work on your platform, include headers 101/* If generic headers don't work on your platform, include headers
102 which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', 102 which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
@@ -5524,17 +5524,18 @@ enum MHD_DigestAuthResult
5524 * even if userhash is used by the client 5524 * even if userhash is used by the client
5525 * @param password the password matching the @a username (and the @a realm) 5525 * @param password the password matching the @a username (and the @a realm)
5526 * @param nonce_timeout the period of seconds since nonce generation, when 5526 * @param nonce_timeout the period of seconds since nonce generation, when
5527 * the nonce is recognised as valid and not stale. 5527 * the nonce is recognised as valid and not stale;
5528 * if zero is specified then daemon default value is used.
5528 * @param max_nc the maximum allowed nc (Nonce Count) value, if client's nc 5529 * @param max_nc the maximum allowed nc (Nonce Count) value, if client's nc
5529 * exceeds the specified value then MHD_DAUTH_NONCE_STALE is 5530 * exceeds the specified value then MHD_DAUTH_NONCE_STALE is
5530 * returned; 5531 * returned;
5531 * zero for no limit 5532 * if zero is specified then daemon default value is used.
5532 * @param mqop the QOP to use 5533 * @param mqop the QOP to use
5533 * @param malgo3 digest algorithms allowed to use, fail if algorithm used 5534 * @param malgo3 digest algorithms allowed to use, fail if algorithm used
5534 * by the client is not allowed by this parameter 5535 * by the client is not allowed by this parameter
5535 * @return #MHD_DAUTH_OK if authenticated, 5536 * @return #MHD_DAUTH_OK if authenticated,
5536 * the error code otherwise 5537 * the error code otherwise
5537 * @note Available since #MHD_VERSION 0x00097701 5538 * @note Available since #MHD_VERSION 0x00097708
5538 * @ingroup authentication 5539 * @ingroup authentication
5539 */ 5540 */
5540_MHD_EXTERN enum MHD_DigestAuthResult 5541_MHD_EXTERN enum MHD_DigestAuthResult
@@ -5614,11 +5615,12 @@ MHD_digest_auth_calc_userdigest (enum MHD_DigestAuthAlgo3 algo3,
5614 * #MHD_SHA256_DIGEST_SIZE, #MHD_SHA512_256_DIGEST_SIZE, 5615 * #MHD_SHA256_DIGEST_SIZE, #MHD_SHA512_256_DIGEST_SIZE,
5615 * #MHD_digest_get_hash_size()) 5616 * #MHD_digest_get_hash_size())
5616 * @param nonce_timeout the period of seconds since nonce generation, when 5617 * @param nonce_timeout the period of seconds since nonce generation, when
5617 * the nonce is recognised as valid and not stale. 5618 * the nonce is recognised as valid and not stale;
5619 * if zero is specified then daemon default value is used.
5618 * @param max_nc the maximum allowed nc (Nonce Count) value, if client's nc 5620 * @param max_nc the maximum allowed nc (Nonce Count) value, if client's nc
5619 * exceeds the specified value then MHD_DAUTH_NONCE_STALE is 5621 * exceeds the specified value then MHD_DAUTH_NONCE_STALE is
5620 * returned; 5622 * returned;
5621 * zero for no limit 5623 * if zero is specified then daemon default value is used.
5622 * @param mqop the QOP to use 5624 * @param mqop the QOP to use
5623 * @param malgo3 digest algorithms allowed to use, fail if algorithm used 5625 * @param malgo3 digest algorithms allowed to use, fail if algorithm used
5624 * by the client is not allowed by this parameter; 5626 * by the client is not allowed by this parameter;