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
Evgeny Grin (Karlson2k)
d36dfd47c1
configure: do not use '-Wreserved-macro-identifier'
2022-05-28 21:17:02 +03:00
Evgeny Grin (Karlson2k)
82f42d01ae
MHD_str_remove_token_caseless_(): muted ASAN errors
2022-05-28 21:17:02 +03:00
Evgeny Grin (Karlson2k)
435cd008a8
test_basicauth: added new test
2022-05-28 19:54:44 +03:00
Evgeny Grin (Karlson2k)
d73c6d20e3
digestauth: reworked support for multiple digest algorithms
2022-05-23 17:25:34 +03:00
Evgeny Grin (Karlson2k)
4a4d659bac
connection_alloc_memory_(): made function non-static
2022-05-20 13:12:21 +03:00
Evgeny Grin (Karlson2k)
664d8ca99f
MHD_str_unquote(): added new internal function
2022-05-20 13:12:21 +03:00
Evgeny Grin (Karlson2k)
efaa0a6226
Created digestauth.h header
2022-05-20 13:12:21 +03:00
Evgeny Grin (Karlson2k)
223013b2e7
Created basicauth.h header
2022-05-20 13:12:20 +03:00
Kolja Nowak
b1fff186c5
I'm trying to use libmicrohttpd on a platform where fcntl(fd, O_NONBLOCK)
...
doesn't work for sockets. This shouldn't be a problem, as far as I understand,
except in epoll mode, which I'm not using, because epoll() isn't available either.
However, there is a check in daemon.c:internal_add_connection(),
the purpose of which seems to be to prevent using a blocking socket
in epoll mode. At least that's what the debug message says. The code
however does the opposite, it prevents the use of a blocking socket
if epoll mode is *not* used. This was probably never noticed because
platforms without non-blocking sockets are rare.
Please consider applying the following simple fix:
2022-05-18 10:19:31 +03:00
Evgeny Grin (Karlson2k)
5d28b72d69
W32 projects: updated custom MHD_config.h
2022-05-17 14:57:57 +03:00
Evgeny Grin (Karlson2k)
129e28d390
mhd_panic: minor macro improvement
2022-05-16 21:06:17 +03:00
Evgeny Grin (Karlson2k)
dd13417d9b
W32 projects: enabled more warnings
2022-05-16 21:05:35 +03:00
Evgeny Grin (Karlson2k)
28e0215df7
MHD_connection_update_event_loop_info(): more complete TLS states handling
2022-05-16 20:36:39 +03:00
Evgeny Grin (Karlson2k)
f0a5b72f56
MHD_connection_handle_read(): refactored states handling at the end of the function
2022-05-16 20:36:38 +03:00
Evgeny Grin (Karlson2k)
4b3b916a23
daemon options: added missing HTTPS-related options error reports for non-HTTPS builds
2022-05-16 20:36:38 +03:00
Evgeny Grin (Karlson2k)
4fde24d422
Added missing in 'switch' enum values (no functional change)
2022-05-16 19:46:30 +03:00
Evgeny Grin (Karlson2k)
76069494b4
Fixed uninitialized value used in assert
2022-05-16 19:46:30 +03:00
Evgeny Grin (Karlson2k)
280aceef91
internal.h: fixed incorrect use of enum value as preprocessor value
2022-05-16 19:46:30 +03:00
Evgeny Grin (Karlson2k)
2ec6b3c7c9
Use '#ifdef PARAM' instead of '#if PARAM' for configuration options
2022-05-16 19:46:30 +03:00
Evgeny Grin (Karlson2k)
0a0fa0f1c6
configure: use standard Linux settings for Linux on ARM
2022-05-16 19:46:29 +03:00
Evgeny Grin (Karlson2k)
f11c4cddfd
configure: use correct quoting in OS detection part
2022-05-16 19:46:29 +03:00
Evgeny Grin (Karlson2k)
59b2e9f601
configure: additional warning flags
...
* Added clang-specific warnings
* More problems detected with GCC
2022-05-16 19:46:29 +03:00
Evgeny Grin (Karlson2k)
393c5a451c
digestauth: simplified overflow check
2022-05-16 19:46:29 +03:00
Evgeny Grin (Karlson2k)
6c3d5864df
Makefile: fixed *.crt files names for dist target
2022-05-15 21:12:45 +03:00
Evgeny Grin (Karlson2k)
7899565cef
Made cookie parsing optional feature
2022-05-15 21:02:48 +03:00
Evgeny Grin (Karlson2k)
d08fb47c0a
Rewritten cookie parsing.
...
Updated to match the current RFC, fixed some edge cases.
2022-05-15 20:59:22 +03:00
Evgeny Grin (Karlson2k)
a76f989d57
test_parse_cookie: split into two tests
...
One test with valid cookie, second test with invalid/empty cookies
2022-05-15 20:30:10 +03:00
Evgeny Grin (Karlson2k)
8643dc6bb9
test_parse_cookies: updated to better match RFC 6265
...
The equal sign ('=') is allowed in cookie value.
2022-05-15 16:02:37 +03:00
Evgeny Grin (Karlson2k)
c4b0c4bc95
parse_cookie_header(): moved outside error reporting
2022-05-15 14:32:23 +03:00
Evgeny Grin (Karlson2k)
1ddb4764a7
MHD_create_response_empty(): fixed typo
2022-05-14 16:47:31 +03:00
Evgeny Grin (Karlson2k)
e4a40c110c
test_response_entries: fixed C standard
2022-05-14 16:46:38 +03:00
Evgeny Grin (Karlson2k)
83fe7b778a
Fixed additional compiler warnings on W32
2022-05-14 16:09:10 +03:00
Evgeny Grin (Karlson2k)
e4d6c07b14
Fixed some compiler warnings on W32
2022-05-14 15:48:35 +03:00
Evgeny Grin (Karlson2k)
840bc6ecfc
Fixed handling of connections with non-standard client addresses (pipe or UNIX sockets).
...
Fixed potential out-of-bond buffer read
2022-05-14 15:47:58 +03:00
Evgeny Grin (Karlson2k)
1d4a968e1b
Fixed return type for get_system_fdsetsize_value ()
2022-05-14 15:21:44 +03:00
Evgeny Grin (Karlson2k)
57f3e09813
Return NULL for MHD_CONNECTION_INFO_CLIENT_ADDRESS if information is not available
...
Pipe or UNIX socket connections may have no client address
2022-05-14 15:20:53 +03:00
Evgeny Grin (Karlson2k)
85ae657849
Replaced MHD_RESPMEM_PERSISTENT usage in examples and code
...
New functions do not produce compiler warnings.
2022-05-14 15:07:47 +03:00
Evgeny Grin (Karlson2k)
4fc1bbfd5b
MHD_create_response_from_buffer_copy(): fixed doxy
2022-05-14 14:52:07 +03:00
Evgeny Grin (Karlson2k)
a13647d1d0
Replaced MHD_RESPMEM_MUST_FREE with more portable solution in examples
2022-05-14 14:37:02 +03:00
Evgeny Grin (Karlson2k)
f50b6be7a6
libmicrohttpd.texi: fixed formatting in 15ea1533a8
2022-05-13 17:25:27 +03:00
Evgeny Grin (Karlson2k)
15ea1533a8
Updated .texi with the new digest auth functions
2022-05-13 17:23:22 +03:00
Evgeny Grin (Karlson2k)
001b6b87fd
Updated example to use new digest auth function
2022-05-13 17:22:28 +03:00
Evgeny Grin (Karlson2k)
a09b252494
Updated tests to use new digest auth functions
2022-05-13 17:21:22 +03:00
Evgeny Grin (Karlson2k)
547246b9cb
Added two new public functions for digest authentication
2022-05-13 17:20:21 +03:00
Evgeny Grin (Karlson2k)
5fdb9effcb
digestauth: added detection for possibly fabricated nonces
2022-05-13 15:18:49 +03:00
Evgeny Grin (Karlson2k)
3c63be9051
digestauth: cosmetics
2022-05-13 15:18:49 +03:00
Evgeny Grin (Karlson2k)
58d1aef753
digestauth: fixed wrong results of client data check
...
Stale 'nonce' from client was reported as either 'INVALID_NONCE' or just
as 'MHD_NO'. Now it is always reported as 'INVALID_NONCE".
Unfortunately wrong 'nonce' is reported as 'INVALID_NONCE' as well and
it cannot be fixed with current API.
2022-05-13 15:18:48 +03:00
Evgeny Grin (Karlson2k)
0d78994dd1
test_set_panic: fixed compiler warnings
2022-05-12 18:56:34 +03:00