diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-29 10:47:14 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-29 10:47:14 +0300 |
commit | 6d67eadb614da29ac4b143c68064bb7268e30060 (patch) | |
tree | fd8451bbad17e2b368068726a38d570540a5c658 | |
parent | 6f1b7c2c2265da31a4eaaeaf1cbb1a809020c125 (diff) | |
download | libmicrohttpd-6d67eadb614da29ac4b143c68064bb7268e30060.tar.gz libmicrohttpd-6d67eadb614da29ac4b143c68064bb7268e30060.zip |
Doxy corrections, fixes, and sync
-rw-r--r-- | src/include/microhttpd.h | 7 | ||||
-rw-r--r-- | src/microhttpd/connection.c | 7 | ||||
-rw-r--r-- | src/microhttpd/connection.h | 4 | ||||
-rw-r--r-- | src/microhttpd/daemon.c | 15 | ||||
-rw-r--r-- | src/microhttpd/digestauth.c | 7 | ||||
-rw-r--r-- | src/microhttpd/internal.c | 2 | ||||
-rw-r--r-- | src/microhttpd/internal.h | 2 | ||||
-rw-r--r-- | src/microhttpd/md5.c | 10 | ||||
-rw-r--r-- | src/microhttpd/md5.h | 2 | ||||
-rw-r--r-- | src/microhttpd/memorypool.c | 2 | ||||
-rw-r--r-- | src/microhttpd/memorypool.h | 4 | ||||
-rw-r--r-- | src/microhttpd/mhd_str.c | 4 | ||||
-rw-r--r-- | src/microhttpd/mhd_str.h | 28 | ||||
-rw-r--r-- | src/microhttpd/mhd_threads.c | 4 | ||||
-rw-r--r-- | src/microhttpd/sha1.h | 2 |
15 files changed, 64 insertions, 36 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 24bb8839..811b2fc0 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -2412,6 +2412,7 @@ typedef enum MHD_Result | |||
2412 | * | 2412 | * |
2413 | * @param cls argument given together with the function | 2413 | * @param cls argument given together with the function |
2414 | * pointer when the handler was registered with MHD | 2414 | * pointer when the handler was registered with MHD |
2415 | * @param connection the connection handle | ||
2415 | * @param url the requested url | 2416 | * @param url the requested url |
2416 | * @param method the HTTP method used (#MHD_HTTP_METHOD_GET, | 2417 | * @param method the HTTP method used (#MHD_HTTP_METHOD_GET, |
2417 | * #MHD_HTTP_METHOD_PUT, etc.) | 2418 | * #MHD_HTTP_METHOD_PUT, etc.) |
@@ -4243,12 +4244,12 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, | |||
4243 | 4244 | ||
4244 | 4245 | ||
4245 | /** | 4246 | /** |
4246 | * Queues a response to request authentication from the client | 4247 | * Queues a response to request authentication from the client. |
4247 | * For now uses MD5 (for backwards-compatibility). Still, if you | 4248 | * For now uses MD5 (for backwards-compatibility). Still, if you |
4248 | * need to be sure, use #MHD_queue_fail_auth_response2(). | 4249 | * need to be sure, use #MHD_queue_auth_fail_response2(). |
4249 | * | 4250 | * |
4250 | * @param connection The MHD connection structure | 4251 | * @param connection The MHD connection structure |
4251 | * @param realm The realm presented to the client | 4252 | * @param realm the realm presented to the client |
4252 | * @param opaque string to user for opaque value | 4253 | * @param opaque string to user for opaque value |
4253 | * @param response reply to send; should contain the "access denied" | 4254 | * @param response reply to send; should contain the "access denied" |
4254 | * body; note that this function will set the "WWW Authenticate" | 4255 | * body; note that this function will set the "WWW Authenticate" |
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 84bfc662..2490a1fb 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1757,7 +1757,6 @@ is_reply_body_needed (struct MHD_Connection *connection) | |||
1757 | * type and other. | 1757 | * type and other. |
1758 | * | 1758 | * |
1759 | * @param connection to connection to process | 1759 | * @param connection to connection to process |
1760 | * @param reply_body_allowed | ||
1761 | */ | 1760 | */ |
1762 | static void | 1761 | static void |
1763 | setup_reply_properties (struct MHD_Connection *connection) | 1762 | setup_reply_properties (struct MHD_Connection *connection) |
@@ -3844,7 +3843,9 @@ MHD_connection_handle_read (struct MHD_Connection *connection, | |||
3844 | 3843 | ||
3845 | /** | 3844 | /** |
3846 | * This function was created to handle writes to sockets when it has | 3845 | * This function was created to handle writes to sockets when it has |
3847 | * been determined that the socket can be written to. | 3846 | * been determined that the socket can be written to. All |
3847 | * implementations (multithreaded, external select, internal select) | ||
3848 | * call this function | ||
3848 | * | 3849 | * |
3849 | * @param connection connection to handle | 3850 | * @param connection connection to handle |
3850 | */ | 3851 | */ |
@@ -4400,6 +4401,8 @@ connection_reset (struct MHD_Connection *connection, | |||
4400 | /** | 4401 | /** |
4401 | * This function was created to handle per-connection processing that | 4402 | * This function was created to handle per-connection processing that |
4402 | * has to happen even if the socket cannot be read or written to. | 4403 | * has to happen even if the socket cannot be read or written to. |
4404 | * All implementations (multithreaded, external select, internal select) | ||
4405 | * call this function. | ||
4403 | * @remark To be called only from thread that process connection's | 4406 | * @remark To be called only from thread that process connection's |
4404 | * recv(), send() and response. | 4407 | * recv(), send() and response. |
4405 | * | 4408 | * |
diff --git a/src/microhttpd/connection.h b/src/microhttpd/connection.h index 50816ce2..9f1a0ffb 100644 --- a/src/microhttpd/connection.h +++ b/src/microhttpd/connection.h | |||
@@ -114,8 +114,8 @@ MHD_connection_handle_write (struct MHD_Connection *connection); | |||
114 | 114 | ||
115 | /** | 115 | /** |
116 | * This function was created to handle per-connection processing that | 116 | * This function was created to handle per-connection processing that |
117 | * has to happen even if the socket cannot be read or written to. All | 117 | * has to happen even if the socket cannot be read or written to. |
118 | * implementations (multithreaded, external select, internal select) | 118 | * All implementations (multithreaded, external select, internal select) |
119 | * call this function. | 119 | * call this function. |
120 | * @remark To be called only from thread that process connection's | 120 | * @remark To be called only from thread that process connection's |
121 | * recv(), send() and response. | 121 | * recv(), send() and response. |
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 5ca612ea..1ddbd83e 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -90,7 +90,7 @@ | |||
90 | 90 | ||
91 | /** | 91 | /** |
92 | * Close all connections for the daemon. | 92 | * Close all connections for the daemon. |
93 | * Must only be called when MHD_Daemon::shutdown was set to #MHD_YES. | 93 | * Must only be called when MHD_Daemon::shutdown was set to true. |
94 | * @remark To be called only from thread that process | 94 | * @remark To be called only from thread that process |
95 | * daemon's select()/poll()/etc. | 95 | * daemon's select()/poll()/etc. |
96 | * | 96 | * |
@@ -240,6 +240,7 @@ MHD_default_logger_ (void *cls, | |||
240 | * Free the memory given by @a ptr. Calls "free(ptr)". This function | 240 | * Free the memory given by @a ptr. Calls "free(ptr)". This function |
241 | * should be used to free the username returned by | 241 | * should be used to free the username returned by |
242 | * #MHD_digest_auth_get_username(). | 242 | * #MHD_digest_auth_get_username(). |
243 | * @note Available since #MHD_VERSION 0x00095600 | ||
243 | * | 244 | * |
244 | * @param ptr pointer to free. | 245 | * @param ptr pointer to free. |
245 | */ | 246 | */ |
@@ -3235,9 +3236,15 @@ MHD_suspend_connection (struct MHD_Connection *connection) | |||
3235 | 3236 | ||
3236 | /** | 3237 | /** |
3237 | * Resume handling of network data for suspended connection. It is | 3238 | * Resume handling of network data for suspended connection. It is |
3238 | * safe to resume a suspended connection at any time. Calling this function | 3239 | * safe to resume a suspended connection at any time. Calling this |
3239 | * on a connection that was not previously suspended will result | 3240 | * function on a connection that was not previously suspended will |
3240 | * in undefined behavior. | 3241 | * result in undefined behavior. |
3242 | * | ||
3243 | * If you are using this function in "external" sockets polling mode, you must | ||
3244 | * make sure to run #MHD_run() and #MHD_get_timeout() afterwards (before | ||
3245 | * again calling #MHD_get_fdset()), as otherwise the change may not be | ||
3246 | * reflected in the set returned by #MHD_get_fdset() and you may end up | ||
3247 | * with a connection that is stuck until the next network activity. | ||
3241 | * | 3248 | * |
3242 | * @param connection the connection to resume | 3249 | * @param connection the connection to resume |
3243 | */ | 3250 | */ |
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 | */ |
1473 | enum MHD_Result | 1474 | enum MHD_Result |
1474 | MHD_queue_auth_fail_response (struct MHD_Connection *connection, | 1475 | MHD_queue_auth_fail_response (struct MHD_Connection *connection, |
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c index dacb433f..055deb32 100644 --- a/src/microhttpd/internal.c +++ b/src/microhttpd/internal.c | |||
@@ -139,7 +139,7 @@ MHD_unescape_plus (char *arg) | |||
139 | * The result must also still be 0-terminated. | 139 | * The result must also still be 0-terminated. |
140 | * | 140 | * |
141 | * @param val value to unescape (modified in the process) | 141 | * @param val value to unescape (modified in the process) |
142 | * @return length of the resulting val (strlen(val) maybe | 142 | * @return length of the resulting val (`strlen(val)` may be |
143 | * shorter afterwards due to elimination of escape sequences) | 143 | * shorter afterwards due to elimination of escape sequences) |
144 | */ | 144 | */ |
145 | size_t | 145 | size_t |
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 45c17441..3c1a889d 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -414,7 +414,7 @@ struct MHD_iovec_track_ | |||
414 | MHD_iovec_ *iov; | 414 | MHD_iovec_ *iov; |
415 | 415 | ||
416 | /** | 416 | /** |
417 | * The number of elements in @iov. | 417 | * The number of elements in @a iov. |
418 | * This value is not changed during lifetime. | 418 | * This value is not changed during lifetime. |
419 | */ | 419 | */ |
420 | size_t cnt; | 420 | size_t cnt; |
diff --git a/src/microhttpd/md5.c b/src/microhttpd/md5.c index 4de888a8..d267e803 100644 --- a/src/microhttpd/md5.c +++ b/src/microhttpd/md5.c | |||
@@ -37,7 +37,7 @@ | |||
37 | * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious | 37 | * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious |
38 | * initialization constants. | 38 | * initialization constants. |
39 | * | 39 | * |
40 | * @param ctx must be a `struct MD5Context *` | 40 | * @param ctx_ must be a `struct MD5Context *` |
41 | */ | 41 | */ |
42 | void | 42 | void |
43 | MHD_MD5Init (void *ctx_) | 43 | MHD_MD5Init (void *ctx_) |
@@ -59,9 +59,9 @@ MD5Transform (uint32_t state[4], | |||
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Final wrapup, fill in digest and zero out ctx. | 62 | * Final wrapup--call MD5Pad, fill in digest and zero out ctx. |
63 | * | 63 | * |
64 | * @param ctx must be a `struct MD5Context *` | 64 | * @param ctx_ must be a `struct MD5Context *` |
65 | */ | 65 | */ |
66 | void | 66 | void |
67 | MHD_MD5Final (void *ctx_, | 67 | MHD_MD5Final (void *ctx_, |
@@ -264,6 +264,10 @@ MD5Transform (uint32_t state[4], | |||
264 | /** | 264 | /** |
265 | * Update context to reflect the concatenation of another buffer full | 265 | * Update context to reflect the concatenation of another buffer full |
266 | * of bytes. | 266 | * of bytes. |
267 | * | ||
268 | * @param ctx_ must be a `struct MD5Context *` | ||
269 | * @param input bytes to add to hash | ||
270 | * @param len the number of bytes in @a data | ||
267 | */ | 271 | */ |
268 | void | 272 | void |
269 | MHD_MD5Update (void *ctx_, | 273 | MHD_MD5Update (void *ctx_, |
diff --git a/src/microhttpd/md5.h b/src/microhttpd/md5.h index 14cee305..239cf664 100644 --- a/src/microhttpd/md5.h +++ b/src/microhttpd/md5.h | |||
@@ -51,6 +51,8 @@ MHD_MD5Init (void *ctx_); | |||
51 | * of bytes. | 51 | * of bytes. |
52 | * | 52 | * |
53 | * @param ctx_ must be a `struct MD5Context *` | 53 | * @param ctx_ must be a `struct MD5Context *` |
54 | * @param input bytes to add to hash | ||
55 | * @param len the number of bytes in @a data | ||
54 | */ | 56 | */ |
55 | void | 57 | void |
56 | MHD_MD5Update (void *ctx_, | 58 | MHD_MD5Update (void *ctx_, |
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index 58fc1e45..49ed9524 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -499,7 +499,7 @@ MHD_pool_reallocate (struct MemoryPool *pool, | |||
499 | 499 | ||
500 | /** | 500 | /** |
501 | * Clear all entries from the memory pool except | 501 | * Clear all entries from the memory pool except |
502 | * for @a keep of the given @a size. The pointer | 502 | * for @a keep of the given @a copy_bytes. The pointer |
503 | * returned should be a buffer of @a new_size where | 503 | * returned should be a buffer of @a new_size where |
504 | * the first @a copy_bytes are from @a keep. | 504 | * the first @a copy_bytes are from @a keep. |
505 | * | 505 | * |
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h index ab977d12..98f96bda 100644 --- a/src/microhttpd/memorypool.h +++ b/src/microhttpd/memorypool.h | |||
@@ -92,7 +92,7 @@ MHD_pool_allocate (struct MemoryPool *pool, | |||
92 | * Try to allocate @a size bytes memory area from the @a pool. | 92 | * Try to allocate @a size bytes memory area from the @a pool. |
93 | * | 93 | * |
94 | * If allocation fails, @a required_bytes is updated with size required to be | 94 | * If allocation fails, @a required_bytes is updated with size required to be |
95 | * freed in the @a pool from relocatable area to allocate requested number | 95 | * freed in the @a pool from rellocatable area to allocate requested number |
96 | * of bytes. | 96 | * of bytes. |
97 | * Allocated memory area is always not rellocatable ("from end"). | 97 | * Allocated memory area is always not rellocatable ("from end"). |
98 | * | 98 | * |
@@ -104,7 +104,7 @@ MHD_pool_allocate (struct MemoryPool *pool, | |||
104 | * Cannot be NULL. | 104 | * Cannot be NULL. |
105 | * @return the pointer to allocated memory area if succeed, | 105 | * @return the pointer to allocated memory area if succeed, |
106 | * NULL if the pool doesn't have enough space, required_bytes is updated | 106 | * NULL if the pool doesn't have enough space, required_bytes is updated |
107 | * with amount of space needed to be freed in relocatable area or | 107 | * with amount of space needed to be freed in rellocatable area or |
108 | * set to SIZE_MAX if requested size is too large for the pool. | 108 | * set to SIZE_MAX if requested size is too large for the pool. |
109 | */ | 109 | */ |
110 | void * | 110 | void * |
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c index 6c07a574..7c7fcf1f 100644 --- a/src/microhttpd/mhd_str.c +++ b/src/microhttpd/mhd_str.c | |||
@@ -226,7 +226,7 @@ toxdigitvalue (char c) | |||
226 | * Caseless compare two characters. | 226 | * Caseless compare two characters. |
227 | * | 227 | * |
228 | * @param c1 the first char to compare | 228 | * @param c1 the first char to compare |
229 | * @param c1 the second char to compare | 229 | * @param c2 the second char to compare |
230 | * @return boolean 'true' if chars are caseless equal, false otherwise | 230 | * @return boolean 'true' if chars are caseless equal, false otherwise |
231 | */ | 231 | */ |
232 | _MHD_static_inline bool | 232 | _MHD_static_inline bool |
@@ -356,7 +356,7 @@ charsequalcaseless (const char c1, const char c2) | |||
356 | * Caseless compare two characters. | 356 | * Caseless compare two characters. |
357 | * | 357 | * |
358 | * @param c1 the first char to compare | 358 | * @param c1 the first char to compare |
359 | * @param c1 the second char to compare | 359 | * @param c2 the second char to compare |
360 | * @return boolean 'true' if chars are caseless equal, false otherwise | 360 | * @return boolean 'true' if chars are caseless equal, false otherwise |
361 | */ | 361 | */ |
362 | #define charsequalcaseless(c1, c2) \ | 362 | #define charsequalcaseless(c1, c2) \ |
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index 4faeba08..2943cf27 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -74,6 +74,7 @@ struct _MHD_str_w_len | |||
74 | #ifndef MHD_FAVOR_SMALL_CODE | 74 | #ifndef MHD_FAVOR_SMALL_CODE |
75 | /** | 75 | /** |
76 | * Check two strings for equality, ignoring case of US-ASCII letters. | 76 | * Check two strings for equality, ignoring case of US-ASCII letters. |
77 | * | ||
77 | * @param str1 first string to compare | 78 | * @param str1 first string to compare |
78 | * @param str2 second string to compare | 79 | * @param str2 second string to compare |
79 | * @return non-zero if two strings are equal, zero otherwise. | 80 | * @return non-zero if two strings are equal, zero otherwise. |
@@ -123,7 +124,7 @@ MHD_str_equal_caseless_bin_n_ (const char *const str1, | |||
123 | /** | 124 | /** |
124 | * Check whether @a str has case-insensitive @a token. | 125 | * Check whether @a str has case-insensitive @a token. |
125 | * Token could be surrounded by spaces and tabs and delimited by comma. | 126 | * Token could be surrounded by spaces and tabs and delimited by comma. |
126 | * Match succeed if substring between start, end of string or comma | 127 | * Match succeed if substring between start, end (of string) or comma |
127 | * contains only case-insensitive token and optional spaces and tabs. | 128 | * contains only case-insensitive token and optional spaces and tabs. |
128 | * @warning token must not contain null-characters except optional | 129 | * @warning token must not contain null-characters except optional |
129 | * terminating null-character. | 130 | * terminating null-character. |
@@ -225,8 +226,9 @@ MHD_str_remove_tokens_caseless_ (char *str, | |||
225 | /** | 226 | /** |
226 | * Convert decimal US-ASCII digits in string to number in uint64_t. | 227 | * Convert decimal US-ASCII digits in string to number in uint64_t. |
227 | * Conversion stopped at first non-digit character. | 228 | * Conversion stopped at first non-digit character. |
229 | * | ||
228 | * @param str string to convert | 230 | * @param str string to convert |
229 | * @param out_val pointer to uint64_t to store result of conversion | 231 | * @param[out] out_val pointer to uint64_t to store result of conversion |
230 | * @return non-zero number of characters processed on succeed, | 232 | * @return non-zero number of characters processed on succeed, |
231 | * zero if no digit is found, resulting value is larger | 233 | * zero if no digit is found, resulting value is larger |
232 | * then possible to store in uint64_t or @a out_val is NULL | 234 | * then possible to store in uint64_t or @a out_val is NULL |
@@ -240,9 +242,10 @@ MHD_str_to_uint64_ (const char *str, | |||
240 | * number in uint64_t. | 242 | * number in uint64_t. |
241 | * Conversion stopped at first non-digit character or after @a maxlen | 243 | * Conversion stopped at first non-digit character or after @a maxlen |
242 | * digits. | 244 | * digits. |
245 | * | ||
243 | * @param str string to convert | 246 | * @param str string to convert |
244 | * @param maxlen maximum number of characters to process | 247 | * @param maxlen maximum number of characters to process |
245 | * @param out_val pointer to uint64_t to store result of conversion | 248 | * @param[out] out_val pointer to uint64_t to store result of conversion |
246 | * @return non-zero number of characters processed on succeed, | 249 | * @return non-zero number of characters processed on succeed, |
247 | * zero if no digit is found, resulting value is larger | 250 | * zero if no digit is found, resulting value is larger |
248 | * then possible to store in uint64_t or @a out_val is NULL | 251 | * then possible to store in uint64_t or @a out_val is NULL |
@@ -256,8 +259,9 @@ MHD_str_to_uint64_n_ (const char *str, | |||
256 | /** | 259 | /** |
257 | * Convert hexadecimal US-ASCII digits in string to number in uint32_t. | 260 | * Convert hexadecimal US-ASCII digits in string to number in uint32_t. |
258 | * Conversion stopped at first non-digit character. | 261 | * Conversion stopped at first non-digit character. |
262 | * | ||
259 | * @param str string to convert | 263 | * @param str string to convert |
260 | * @param out_val pointer to uint32_t to store result of conversion | 264 | * @param[out] out_val pointer to uint32_t to store result of conversion |
261 | * @return non-zero number of characters processed on succeed, | 265 | * @return non-zero number of characters processed on succeed, |
262 | * zero if no digit is found, resulting value is larger | 266 | * zero if no digit is found, resulting value is larger |
263 | * then possible to store in uint32_t or @a out_val is NULL | 267 | * then possible to store in uint32_t or @a out_val is NULL |
@@ -272,9 +276,10 @@ MHD_strx_to_uint32_ (const char *str, | |||
272 | * to number in uint32_t. | 276 | * to number in uint32_t. |
273 | * Conversion stopped at first non-digit character or after @a maxlen | 277 | * Conversion stopped at first non-digit character or after @a maxlen |
274 | * digits. | 278 | * digits. |
279 | * | ||
275 | * @param str string to convert | 280 | * @param str string to convert |
276 | * @param maxlen maximum number of characters to process | 281 | * @param maxlen maximum number of characters to process |
277 | * @param out_val pointer to uint32_t to store result of conversion | 282 | * @param[out] out_val pointer to uint32_t to store result of conversion |
278 | * @return non-zero number of characters processed on succeed, | 283 | * @return non-zero number of characters processed on succeed, |
279 | * zero if no digit is found, resulting value is larger | 284 | * zero if no digit is found, resulting value is larger |
280 | * then possible to store in uint32_t or @a out_val is NULL | 285 | * then possible to store in uint32_t or @a out_val is NULL |
@@ -288,8 +293,9 @@ MHD_strx_to_uint32_n_ (const char *str, | |||
288 | /** | 293 | /** |
289 | * Convert hexadecimal US-ASCII digits in string to number in uint64_t. | 294 | * Convert hexadecimal US-ASCII digits in string to number in uint64_t. |
290 | * Conversion stopped at first non-digit character. | 295 | * Conversion stopped at first non-digit character. |
296 | * | ||
291 | * @param str string to convert | 297 | * @param str string to convert |
292 | * @param out_val pointer to uint64_t to store result of conversion | 298 | * @param[out] out_val pointer to uint64_t to store result of conversion |
293 | * @return non-zero number of characters processed on succeed, | 299 | * @return non-zero number of characters processed on succeed, |
294 | * zero if no digit is found, resulting value is larger | 300 | * zero if no digit is found, resulting value is larger |
295 | * then possible to store in uint64_t or @a out_val is NULL | 301 | * then possible to store in uint64_t or @a out_val is NULL |
@@ -304,9 +310,10 @@ MHD_strx_to_uint64_ (const char *str, | |||
304 | * to number in uint64_t. | 310 | * to number in uint64_t. |
305 | * Conversion stopped at first non-digit character or after @a maxlen | 311 | * Conversion stopped at first non-digit character or after @a maxlen |
306 | * digits. | 312 | * digits. |
313 | * | ||
307 | * @param str string to convert | 314 | * @param str string to convert |
308 | * @param maxlen maximum number of characters to process | 315 | * @param maxlen maximum number of characters to process |
309 | * @param out_val pointer to uint64_t to store result of conversion | 316 | * @param[out] out_val pointer to uint64_t to store result of conversion |
310 | * @return non-zero number of characters processed on succeed, | 317 | * @return non-zero number of characters processed on succeed, |
311 | * zero if no digit is found, resulting value is larger | 318 | * zero if no digit is found, resulting value is larger |
312 | * then possible to store in uint64_t or @a out_val is NULL | 319 | * then possible to store in uint64_t or @a out_val is NULL |
@@ -325,15 +332,16 @@ MHD_strx_to_uint64_n_ (const char *str, | |||
325 | * Conversion stopped at first non-digit character or after @a maxlen | 332 | * Conversion stopped at first non-digit character or after @a maxlen |
326 | * digits. | 333 | * digits. |
327 | * To be used only within macro. | 334 | * To be used only within macro. |
335 | * | ||
328 | * @param str the string to convert | 336 | * @param str the string to convert |
329 | * @param maxlen the maximum number of characters to process | 337 | * @param maxlen the maximum number of characters to process |
330 | * @param out_val the pointer to uint64_t to store result of conversion | 338 | * @param out_val the pointer to variable to store result of conversion |
331 | * @param val_size the size of variable pointed by @a out_val | 339 | * @param val_size the size of variable pointed by @a out_val, in bytes, 4 or 8 |
332 | * @param max_val the maximum decoded number | 340 | * @param max_val the maximum decoded number |
333 | * @param base the numeric base, 10 or 16 | 341 | * @param base the numeric base, 10 or 16 |
334 | * @return non-zero number of characters processed on succeed, | 342 | * @return non-zero number of characters processed on succeed, |
335 | * zero if no digit is found, resulting value is larger | 343 | * zero if no digit is found, resulting value is larger |
336 | * then @ max_val or @a out_val is NULL | 344 | * then @max_val, @val_size is not 16/32 or @a out_val is NULL |
337 | */ | 345 | */ |
338 | size_t | 346 | size_t |
339 | MHD_str_to_uvalue_n_ (const char *str, | 347 | MHD_str_to_uvalue_n_ (const char *str, |
diff --git a/src/microhttpd/mhd_threads.c b/src/microhttpd/mhd_threads.c index 7291bfef..96182965 100644 --- a/src/microhttpd/mhd_threads.c +++ b/src/microhttpd/mhd_threads.c | |||
@@ -173,11 +173,13 @@ MHD_set_thread_name_ (const MHD_thread_ID_ thread_id, | |||
173 | /** | 173 | /** |
174 | * Create a thread and set the attributes according to our options. | 174 | * Create a thread and set the attributes according to our options. |
175 | * | 175 | * |
176 | * If thread is created, thread handle must be freed by MHD_join_thread_(). | ||
177 | * | ||
176 | * @param thread handle to initialize | 178 | * @param thread handle to initialize |
177 | * @param stack_size size of stack for new thread, 0 for default | 179 | * @param stack_size size of stack for new thread, 0 for default |
178 | * @param start_routine main function of thread | 180 | * @param start_routine main function of thread |
179 | * @param arg argument for start_routine | 181 | * @param arg argument for start_routine |
180 | * @return non-zero on success; zero otherwise (with errno set) | 182 | * @return non-zero on success; zero otherwise |
181 | */ | 183 | */ |
182 | int | 184 | int |
183 | MHD_create_thread_ (MHD_thread_handle_ID_ *thread, | 185 | MHD_create_thread_ (MHD_thread_handle_ID_ *thread, |
diff --git a/src/microhttpd/sha1.h b/src/microhttpd/sha1.h index 851a4429..9a3847e0 100644 --- a/src/microhttpd/sha1.h +++ b/src/microhttpd/sha1.h | |||
@@ -78,7 +78,7 @@ struct sha1_ctx | |||
78 | /** | 78 | /** |
79 | * Initialise structure for SHA-1 calculation. | 79 | * Initialise structure for SHA-1 calculation. |
80 | * | 80 | * |
81 | * @param ctx must be a `struct sha1_ctx *` | 81 | * @param ctx_ must be a `struct sha1_ctx *` |
82 | */ | 82 | */ |
83 | void | 83 | void |
84 | MHD_SHA1_init (void *ctx_); | 84 | MHD_SHA1_init (void *ctx_); |