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)
5524197da9
libmicrohttpd.texi: updated list of used external data types
2022-06-13 12:23:36 +03:00
Evgeny Grin (Karlson2k)
5249d3339c
Updated documentation for the new Basic Authorization API
2022-06-13 12:23:01 +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
Evgeny Grin (Karlson2k)
496dfffcf7
test_str_base64: added test for base64 decoding
2022-06-09 16:56:05 +03:00
Evgeny Grin (Karlson2k)
b1dd47abbf
Implemented base64 decoding with thorough checks for the input data validity
2022-06-09 16:56:05 +03:00
Evgeny Grin (Karlson2k)
4866181f53
MHD_bin_to_hex(): fixed wrong return value (unused currently by MHD).
2022-06-09 16:56:05 +03:00
Evgeny Grin (Karlson2k)
d2ec9e9385
mhd_str.h: fixed typo in doxy
2022-06-09 15:54:33 +03:00
Evgeny Grin (Karlson2k)
3eb2fb6dfb
Fixed very rare data races when closing upgraded connection
2022-06-08 20:35:29 +03:00
Evgeny Grin (Karlson2k)
c8b7b8fed9
test_basicauth: added two additional tests for the new API
2022-06-08 16:52:50 +03:00
Evgeny Grin (Karlson2k)
929e046215
MHD_basic_auth_get_username_password3(): added new public API function
2022-06-08 16:52:50 +03:00
Evgeny Grin (Karlson2k)
72e6f27fce
MHD_queue_basic_auth_fail_response3(): new function for RFC 7617 support
2022-06-08 16:52:48 +03:00
Evgeny Grin (Karlson2k)
109311446e
test_str: fixed code style
2022-06-07 21:28:28 +03:00
Evgeny Grin (Karlson2k)
b1a5840766
test_str: added extra check to see why Coverity gives strange reports
2022-06-07 21:28:01 +03:00
Evgeny Grin (Karlson2k)
abe138ee3a
Fixed wrong usage of maximum client nonce size as maximum size of server nonce
...
This also saves some RAM for nonce-nc map array
2022-06-07 20:23:18 +03:00
Evgeny Grin (Karlson2k)
2d551c422d
Added TODO comment
2022-06-07 20:01:19 +03:00
Evgeny Grin (Karlson2k)
c375e5aa1c
Partial revert of 82abaee62f
...
No need to process part of code if some variables length are zeros.
Non-NULL pointers can point to zero-length strings, but if pointer is
NULL the length is always zero.
For example 'req_body' could be not be NULL, but as long as
'req_body_size' is zero, no chunk must be added.
2022-06-07 19:51:20 +03:00
Evgeny Grin (Karlson2k)
56b131d9ec
Added one more test for Basic Auth
...
By default libcurl sends Basic Authentication header without checking
whether authentication is required. New test forces libcrul to try
without authentication at first to test MHD's "auth fail response"
function.
2022-06-07 19:32:57 +03:00
Evgeny Grin (Karlson2k)
02ed59e79c
Basic Auth: fixed handling of realms with backslashes or double quotes
2022-06-07 19:32:57 +03:00
Evgeny Grin (Karlson2k)
bde583e647
MHD_str_quote(): optimized for typical scenario
2022-06-07 19:32:57 +03:00
Christian Grothoff
4195c246bb
-more minor fixes
2022-06-07 18:01:13 +02:00
Christian Grothoff
b627fdaf25
-fix read-only off-by one in 'if ( (0 != memcmp (nn->nonce, nonce, noncelen)) ||
...
772 (0 != nn->nonce[noncelen]) )' by making buffer one element larger
2022-06-07 17:57:26 +02:00
Christian Grothoff
711099c7ea
unsure why this was left as a TODO, fix seems trivial (EG: please check)
2022-06-07 17:41:54 +02:00
Christian Grothoff
82abaee62f
-minor cleanups
2022-06-07 17:40:28 +02:00
Christian Grothoff
4720ace1a7
-fix memory leaks in tests
2022-06-07 17:29:24 +02:00
Evgeny Grin (Karlson2k)
33ee100c86
test_str_quote: added testing of the new function
2022-06-07 09:52:23 +03:00
Evgeny Grin (Karlson2k)
4ec916c02c
MHD_str_quote(): added new internal function
2022-06-07 09:51:44 +03:00
Christian Grothoff
a940c3ba58
-fix warning
2022-06-06 20:41:10 +02:00
Evgeny Grin (Karlson2k)
8d5ebaec91
gen_auth: simplified value assignment
2022-06-06 19:11:06 +03:00
Evgeny Grin (Karlson2k)
d9ebd051d2
digestauth: avoid repetitive calculations of some strings' length
2022-06-06 18:29:44 +03:00
Evgeny Grin (Karlson2k)
eb48c25865
Simplified Digest Auth code by using the new string processing functions
2022-06-06 18:29:44 +03:00
Evgeny Grin (Karlson2k)
1e010db732
test_str_quote: added testing of the new function
2022-06-06 15:55:22 +03:00
Evgeny Grin (Karlson2k)
1a37de9601
MHD_str_equal_caseless_quoted_bin_n(): added new internal function
2022-06-06 15:55:22 +03:00
Evgeny Grin (Karlson2k)
7eef6dd3e4
Excluded build on the new string functions when they are unused
2022-06-06 15:55:22 +03:00
Evgeny Grin (Karlson2k)
d9c37e01a9
test_str_quote: added new test
2022-06-06 15:55:21 +03:00
Evgeny Grin (Karlson2k)
83d7386c47
MHD_str_equal_quoted_bin_n(): added new internal function
2022-06-06 14:25:53 +03:00
Evgeny Grin (Karlson2k)
667be90ded
mhd_str: fixed doxy again
2022-06-06 14:25:52 +03:00
Evgeny Grin (Karlson2k)
b587bb722d
test_auth_parse: minor formatting imrpovement
2022-06-05 19:23:56 +03:00
Evgeny Grin (Karlson2k)
56c4b4ae9c
test_auth_parse: added more checks with unclose quotation for digest auth
2022-06-05 14:28:21 +03:00
Evgeny Grin (Karlson2k)
7f4634ccdd
mhd_str: fixed typo in doxy
2022-06-05 13:25:25 +03:00
Evgeny Grin (Karlson2k)
dbb1222de7
gen_auth: do not allow semicolon for diget auth unless it is in a quoted string
...
Also forbid binary zero
2022-06-05 12:49:16 +03:00
Evgeny Grin (Karlson2k)
8a2da6d6a3
gen_auth: do not allow the equal sign alone for digest auth
2022-06-05 12:48:31 +03:00
Evgeny Grin (Karlson2k)
3fcec14c8d
gen_auth: added detection of incorrect delimiters in token68
2022-06-05 12:48:31 +03:00