Evgeny Grin (Karlson2k)
ee06f77543
mhd_str: added MHD_hex_to_bin() internal function
2022-07-19 17:50:04 +03:00
Evgeny Grin (Karlson2k)
93a449edfb
Use new functions for decode request URLs
2022-07-19 17:50:04 +03:00
Evgeny Grin (Karlson2k)
57f57e8bfe
Added tests for percent-decoding functions
2022-07-18 12:57:11 +03:00
Evgeny Grin (Karlson2k)
420ed698d6
mhd_str: added functions for percent-decoding
2022-07-18 11:35:19 +03:00
Christian Grothoff
d629ada1a2
-fix typos
2022-06-26 15:24:24 +02:00
Evgeny Grin (Karlson2k)
8e4eba0e70
digestauth: use GET parameters in digest calculation
2022-06-23 12:42:43 +03:00
Evgeny Grin (Karlson2k)
b41fedd52b
digestauth: use pre-calculated URI length to avoid stop at first binary zero
2022-06-23 12:42:43 +03:00
Evgeny Grin (Karlson2k)
2de47d2007
digestauth: use size_t for counting headers
2022-06-23 11:39:00 +03:00
Evgeny Grin (Karlson2k)
23d69214bd
digestauth: added check whether arguments specified in the right order
2022-06-23 11:38:54 +03:00
Evgeny Grin (Karlson2k)
8b01c152a2
mhd_str.h: fixed doxy
2022-06-22 20:59:00 +03:00
Evgeny Grin (Karlson2k)
da3457eab1
digestauth.h: added some doxy
2022-06-22 20:58:59 +03:00
Evgeny Grin (Karlson2k)
348945c306
digestauth: removed now unused do-while scope
2022-06-22 20:58:44 +03:00
Evgeny Grin (Karlson2k)
1efb758b79
Fixed check for URL match to handle URLs with binary zero
2022-06-22 20:58:44 +03:00
Evgeny Grin (Karlson2k)
c4246b5251
Added tracking of the request URL length.
...
URL may have binary zeros after url-decoding, the length helps to detect
such situations.
2022-06-22 20:58:43 +03:00
Evgeny Grin (Karlson2k)
a5af7f7379
digest_auth_check_all(): simplified, improved readability
...
Added check for too long nonce (the size is know in advance, no need to
try other check if nonce size is wrong);
Used caseless match more 'qop' value (as required by RFC), too long
'qop' values reject early, added special result value for wrong qop;
Reject early with too long 'nc' value;
Reject early with wrong response size (the size is know in advance, no
need to make CPU-intensive hash calculations if size if incorrect);
Added special return value is any parameter is too large to be processed
2022-06-22 20:58:43 +03:00
Evgeny Grin (Karlson2k)
6ccaa5da57
MHD_parse_arguments_(): refactored, allow cls for the callback
2022-06-22 20:58:43 +03:00
Evgeny Grin (Karlson2k)
5ba4b7709f
test_digestauth{._with_arguments}: do test really with arguments
2022-06-22 20:58:43 +03:00
Evgeny Grin (Karlson2k)
1c181be2ff
Removed extra "Upgrade" token in Connection reply header in tests and examples
...
MHD automatically adds "Upgrade" header, no need to add it for the
second time.
2022-06-15 15:34:34 +03:00
Alexander Irion
3526ff8302
Remove double adding of MHD_HTTP_HEADER_CONNECTION response header
...
MHD_create_response_for_upgrade() already adds the MHD_HTTP_HEADER_CONNECTION response header, so
the additional MHD_add_response_header is wrong.
In our application it caused, that on a Apple iPad, the websocket was immediately closed by the
browser(Safari, Chrome, Opera) after the protocol upgrade. Browsers on Linux, Android did not had this issue.
Signed-off-by: Alexander Irion <alexander_irion@mentor.com >
2022-06-15 15:28:07 +03:00
Evgeny Grin (Karlson2k)
80eb22434c
src/microhttpd/test_*: more compiler warning fixed
2022-06-14 21:30:05 +03:00
Evgeny Grin (Karlson2k)
977d01df7a
src/microhttpd/test_*: fixed more compiler warnings
2022-06-14 21:22:33 +03:00
Evgeny Grin (Karlson2k)
e4850e5b2c
test_str: made test compatible with non-VLA compilers
2022-06-14 20:45:13 +03:00
Evgeny Grin (Karlson2k)
202af117b4
test_helpers: fixed doxy
2022-06-14 20:15:51 +03:00
Evgeny Grin (Karlson2k)
4e5bddd004
websocket_threaded_example: minor fixes
2022-06-14 20:13:46 +03:00
Evgeny Grin (Karlson2k)
b7eaffc0ed
mhd_str: fixed doxy, updated copyright years
2022-06-14 19:48:58 +03:00
Evgeny Grin (Karlson2k)
29ff7c6869
test_str: fixed harmless sanitizer error
2022-06-14 19:17:38 +03:00
Evgeny Grin (Karlson2k)
846ecb5db3
test_upgrade{,_large}: fixed compiler warnings
2022-06-14 14:30:31 +03:00
Evgeny Grin (Karlson2k)
7c06bcaef6
test_postprocessor{,_large}: additional fixes for compiler warnings
2022-06-14 14:28:52 +03:00
Evgeny Grin (Karlson2k)
d66afa2c81
test_set_panic: fixed compiler warnings
2022-06-14 13:11:30 +03:00
Evgeny Grin (Karlson2k)
e4011fe55b
test_options: fixed compiler warnings, removed dead code
2022-06-14 13:00:14 +03:00
Evgeny Grin (Karlson2k)
9f2a4206e3
test_str: fixed more compiler warnings
2022-06-14 11:36:14 +03:00
Evgeny Grin (Karlson2k)
d3ec93c9ce
test_client_put_stop: minor refactoring, fixed compiler warnings
2022-06-13 22:13:20 +03:00
Evgeny Grin (Karlson2k)
9668d71f44
test_start_stop: fixed compiler warnings
2022-06-13 21:27:51 +03:00
Evgeny Grin (Karlson2k)
7d7085b627
test_http_reasons: fixed compiler warnings
2022-06-13 21:27:32 +03:00
Evgeny Grin (Karlson2k)
fa5b49e030
test_daemon: fixed compiler warnings
2022-06-13 21:27:10 +03:00
Evgeny Grin (Karlson2k)
70f6be39a1
test_str_token{,s,s_remove}: fixed compiler warnings
2022-06-13 21:26:31 +03:00
Evgeny Grin (Karlson2k)
fd3ff5c623
test_str: minor refactoring, fixed compiler warnings
2022-06-13 21:25:53 +03:00
Evgeny Grin (Karlson2k)
9f80521533
test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long strings
2022-06-13 21:24:51 +03:00
Evgeny Grin (Karlson2k)
11c6f7a6ed
test_postprocessor_md: removed include of .c file, fixed extra long lines
2022-06-13 18:32:53 +03:00
Evgeny Grin (Karlson2k)
c39070a62f
postprocessor.c: added assert
2022-06-13 18:27:39 +03:00
Evgeny Grin (Karlson2k)
003c29eb4b
postprocessor.h: added new internal header
2022-06-13 18:26:53 +03:00
Evgeny Grin (Karlson2k)
6884fa83cf
Fixed function name introduced by 3eb2fb6dfb
...
Thanks Christian for spotting it.
2022-06-13 12:34:16 +03:00
Evgeny Grin (Karlson2k)
c2414ffc9a
Updated examples to use new API for Basic Authorization
2022-06-13 12:15:50 +03:00
Evgeny Grin (Karlson2k)
bb0addb587
microhttpd.h: cosmetics and doxy minor improvements
2022-06-13 12:12:55 +03:00
Evgeny Grin (Karlson2k)
c0effdb305
test_basicauth: cosmetic correction
2022-06-11 13:26:31 +03:00
Evgeny Grin (Karlson2k)
846196300f
MHD_free(): updated doxy
2022-06-10 11:17:12 +03:00
Evgeny Grin (Karlson2k)
e1f5396ad4
Minor improvement for POTFILES.in building
2022-06-10 10:57:35 +03:00
Evgeny Grin (Karlson2k)
7ca83d316e
Makefiles: automatically build POTFILES.in
...
Added very simple automated solution to rebuild POTFILES.in when needed
and use only library files for it.
2022-06-10 10:53:27 +03:00
Evgeny Grin (Karlson2k)
eecdde2511
Removed Public Domain base64 decoding files
2022-06-09 16:56:06 +03:00
Evgeny Grin (Karlson2k)
483d47c90e
Basic Auth: switched to the internal Base64 decoding implementation
...
Internal implementation able to detect all kind of problems with broken
base64 encoding and more secure.
2022-06-09 16:56:06 +03:00