diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-12-28 13:30:47 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-12-28 13:30:47 +0300 |
commit | ce1ea19549c8e96f43bfd4b007cb8573fbca5be5 (patch) | |
tree | 632195d88f5da7c08bf2f3bdca947cb36964fa89 /src/include/microhttpd.h | |
parent | ff63d75797ddcaf223197e12b12def2b0803588c (diff) | |
download | libmicrohttpd-ce1ea19549c8e96f43bfd4b007cb8573fbca5be5.tar.gz libmicrohttpd-ce1ea19549c8e96f43bfd4b007cb8573fbca5be5.zip |
Added daemon options for default nonce timeout and max nc values
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index c2873056..194a268c 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 0x00097708 | 99 | #define MHD_VERSION 0x00097709 |
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', |
@@ -2172,6 +2172,24 @@ enum MHD_OPTION | |||
2172 | * @note Available since #MHD_VERSION 0x00097706 | 2172 | * @note Available since #MHD_VERSION 0x00097706 |
2173 | */ | 2173 | */ |
2174 | MHD_OPTION_SOCK_ADDR_LEN = 40 | 2174 | MHD_OPTION_SOCK_ADDR_LEN = 40 |
2175 | , | ||
2176 | /** | ||
2177 | * Default nonce timeout value used for Digest Auth. | ||
2178 | * This option should be followed by an 'unsigned int' argument. | ||
2179 | * Silently ignored if followed by zero value. | ||
2180 | * @see #MHD_digest_auth_check3(), MHD_digest_auth_check_digest3() | ||
2181 | * @note Available since #MHD_VERSION 0x00097709 | ||
2182 | */ | ||
2183 | MHD_OPTION_DIGEST_AUTH_DEFAULT_NONCE_TIMEOUT = 41 | ||
2184 | , | ||
2185 | /** | ||
2186 | * Default maximum nc (nonce count) value used for Digest Auth. | ||
2187 | * This option should be followed by an 'uint32_t' argument. | ||
2188 | * Silently ignored if followed by zero value. | ||
2189 | * @see #MHD_digest_auth_check3(), MHD_digest_auth_check_digest3() | ||
2190 | * @note Available since #MHD_VERSION 0x00097709 | ||
2191 | */ | ||
2192 | MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC = 42 | ||
2175 | 2193 | ||
2176 | } _MHD_FIXED_ENUM; | 2194 | } _MHD_FIXED_ENUM; |
2177 | 2195 | ||