Commit Graph
4490 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) 6dea1cf68e gen_auth: detect invalid Digest parameters without value the end of the string 2022-06-05 12:48:31 +03:00
Evgeny Grin (Karlson2k) b00a58cfa7 gen_auth: treat empty header as invalid 2022-06-05 12:48:31 +03:00
Evgeny Grin (Karlson2k) 4520ac2d31 test_auth_parse: added new test 2022-06-05 12:48:30 +03:00
Evgeny Grin (Karlson2k) 00caba6212 Request authorisation: detect possibly valid, but unsupported type 2022-06-05 12:48:30 +03:00
Evgeny Grin (Karlson2k) 6ab9cb0c8a Muted compiler warnings for W32 non-TLS build of the lib 2022-06-02 17:28:39 +03:00
Evgeny Grin (Karlson2k) e583a3430f websocket_threaded_example: fixed sprintf() usage, compiler warnings 2022-06-02 17:03:31 +03:00
Evgeny Grin (Karlson2k) bd9b7be732 doc/examples: fixed compiler warnings 2022-06-02 09:43:12 +03:00
Evgeny Grin (Karlson2k) 8da7be3b7b examples: marked non-global variables as 'static' 2022-06-02 09:07:48 +03:00
Evgeny Grin (Karlson2k) badf75607b http_chunked_compression: fixed errors 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 5821a7f303 src/examples/demo{,_https}: added some error checking, fixed compiler warnings 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 0e829bf21b src/examples/benchmark{,_https}: simplified time calculation 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) aefa12e99a src/examples/*fileserver*.c: added error checking 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 73340d1daf microhttpd.h: fixed doxy 2022-06-01 22:12:37 +03:00
Evgeny Grin (Karlson2k) 93dcf8ea91 src/examples: muted compiler warnings 2022-06-01 22:12:37 +03:00
Evgeny Grin (Karlson2k) 74c2eba238 connection: muted compiler warning 2022-06-01 09:51:08 +03:00
Evgeny Grin (Karlson2k) 1b8c52f1d0 daemon: muted compiler warning, refactored code for readability 2022-05-31 20:21:08 +03:00
Evgeny Grin (Karlson2k) f061c8617d Fixed 'int' instead of 'MHD_Result' 2022-05-31 20:21:08 +03:00
Evgeny Grin (Karlson2k) 041ada4eee daemon.c: fixed possible uninitialized value 2022-05-31 20:21:07 +03:00
Evgeny Grin (Karlson2k) 887a554376 mhd_sockets: muted compiler warning with very minor optimisation 2022-05-31 20:21:07 +03:00
Evgeny Grin (Karlson2k) b21d309092 configure: disabled one more warning on clang 2022-05-31 20:21:07 +03:00
Evgeny Grin (Karlson2k) 7422951e9b Fixed wrong variable type used for result of gnutls_priority_init() 2022-05-31 20:19:13 +03:00
Evgeny Grin (Karlson2k) 92bfeb762e MHD_get_timeout*(): improved doxy 2022-05-31 20:19:13 +03:00
Evgeny Grin (Karlson2k) b3b131c6b9 configure: added more workarounds for clang 2022-05-31 20:19:12 +03:00
Evgeny Grin (Karlson2k) 5fd6ea3071 MHD_FIND_ADD_CC_{C,LD}FLAG_IFELSE: added new autoconf macros 2022-05-31 20:19:12 +03:00
Evgeny Grin (Karlson2k) 3ab4375160 connection.c: fixed compiler warnings 2022-05-31 20:19:12 +03:00
Evgeny Grin (Karlson2k) afb8ed41f8 HTTPS tests: added missing function declaration 2022-05-31 11:49:50 +03:00
Evgeny Grin (Karlson2k) 9039d65241 authentication: reworked header parsing
Added single function to parse all enabled authentication schemes header
strings.
The parsing result is cached and reused thus avoiding repetitive header
parsing.
The new function correctly "unquotes" values (backslashes are removed)
as required by RFC.
2022-05-31 11:45:36 +03:00
Evgeny Grin (Karlson2k) c15077e312 mhd_str: renamed internal struct 2022-05-31 11:32:40 +03:00
Evgeny Grin (Karlson2k) 75cb9ff49c mhd_str: corrected doxy 2022-05-31 11:32:29 +03:00
Evgeny Grin (Karlson2k) 8d9eb70d7a response.c: better handle broken situation 2022-05-29 21:35:11 +03:00
Evgeny Grin (Karlson2k) 018e77a4f0 MHD_str_remove_token_caseless_(): added check, muted compiler warnings 2022-05-29 21:35:11 +03:00
Evgeny Grin (Karlson2k) 3a97a11f7b .gitignore: Updated 2022-05-29 21:35:11 +03:00
Evgeny Grin (Karlson2k) c3ea38eb00 configure: do not use -Wno-reserved-macro-identifier
It may confuse compiler when it is used as linked wrapper.
2022-05-29 15:53:52 +03:00
Evgeny Grin (Karlson2k) cf26c7b443 configure: do not use -Og with Clang when ASAN enabled 2022-05-29 15:43:18 +03:00