Evgeny Grin (Karlson2k)
d1c1699dfc
Disabled badly broken TLS tests
2023-03-31 18:50:38 +02:00
Evgeny Grin (Karlson2k)
0c21f89702
HTTPS test: fixed unmatched function declaration
2023-03-31 18:50:37 +02:00
Evgeny Grin (Karlson2k)
960b53d816
Fixed initialisation of old GnuTLS versions
2023-03-31 18:50:37 +02:00
Evgeny Grin (Karlson2k)
a93ca180b2
Upgraded TLS: fixed inefficient communication
2023-03-31 18:50:36 +02:00
Evgeny Grin (Karlson2k)
2202961654
microhttpd.h: fixed typo in doxy
2023-03-31 18:50:36 +02:00
Evgeny Grin (Karlson2k)
ee269b8d54
Makefile: fixed build with 'make' without nested vars support
2023-03-31 18:50:32 +02:00
Evgeny Grin (Karlson2k)
18a9753ac6
configure: fixed checks for tsearch() and related
...
New check works correctly with new compilers.
Added known problematic implementations.
Added more checks for correct behaviour.
Removed some m4 macros.
2023-03-31 18:50:32 +02:00
Evgeny Grin (Karlson2k)
499ff1087c
tsearch.{h,c}: updated to the latest fixed version
...
Minor modification added to avoid compiler warnings
2023-03-31 18:50:31 +02:00
Evgeny Grin (Karlson2k)
86d8267347
MHD_get_version_bin(): added new function
2023-03-31 18:50:28 +02:00
Christian Grothoff
4dee893016
add assertion to guard against bad behavior described in #7196 , also document that after suspending one must return MHD_YES
2023-03-31 18:50:28 +02:00
Evgeny Grin (Karlson2k)
e6f63b1c7e
configure: used better detection of some functions when cross-compiling
2023-03-31 18:50:27 +02:00
Evgeny Grin (Karlson2k)
6678ab663a
test_get_iovec: fixed missing include headers
2023-03-31 18:50:26 +02:00
Evgeny Grin (Karlson2k)
008930af12
test_upgrade{,_large}: fixed HTTP/1.1 compatibility
2023-03-31 18:50:25 +02:00
Evgeny Grin (Karlson2k)
d1045cc1d1
testcurl: fixed checking response headers as null-terminated string
2023-03-31 18:50:25 +02:00
Evgeny Grin (Karlson2k)
d15adc7f82
testzzuf: fixed missing CPPFLAGS from configure
2023-03-31 18:50:25 +02:00
Evgeny Grin (Karlson2k)
d05e6b9e1a
mhd_assert: use "DEBUG" macro defined by some toolchains
2023-03-31 18:50:24 +02:00
Evgeny Grin (Karlson2k)
73577a264d
daemon: fixed delayed notification callback in thread-per-connection mode
2023-03-31 18:50:24 +02:00
Evgeny Grin (Karlson2k)
f266586c4e
mhd_str: fixed compiler warning for compact code
2023-03-31 18:50:24 +02:00
Evgeny Grin (Karlson2k)
2a1ff2f9a2
connection: skip no-op calling of body generation functions when response body is not used
2023-03-31 18:50:23 +02:00
Alexander Irion
00085491b9
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 >
2023-03-31 18:50:22 +02:00
Evgeny Grin (Karlson2k)
95d163cc84
websocket_threaded_example: minor fixes
2023-03-31 18:50:22 +02:00
Evgeny Grin (Karlson2k)
b4bab00c4e
test_http_reasons: fixed compiler warnings
2023-03-31 18:50:22 +02:00
Evgeny Grin (Karlson2k)
a59760c5db
Fixed very rare data races when closing upgraded connection
2023-03-31 18:50:21 +02:00
Evgeny Grin (Karlson2k)
f5bb3f5cf4
Fixed 'int' instead of 'MHD_Result'
2023-03-31 18:50:21 +02:00
Evgeny Grin (Karlson2k)
c21c5769af
daemon.c: fixed possible uninitialized value
2023-03-31 18:50:21 +02:00
Evgeny Grin (Karlson2k)
a123f5d59c
Fixed wrong variable type used for result of gnutls_priority_init()
2023-03-31 18:50:20 +02:00
Kolja Nowak
e451f079d2
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:
2023-03-31 18:50:20 +02:00
Evgeny Grin (Karlson2k)
e73d718963
internal.h: fixed incorrect use of enum value as preprocessor value
2023-03-31 18:50:20 +02:00
Evgeny Grin (Karlson2k)
42efdc09c4
Fixed return type for get_system_fdsetsize_value ()
2023-03-31 18:50:19 +02:00
Evgeny Grin (Karlson2k)
2571d0df26
thread-per-connection: do not cache connection timeout
...
The timeout value could be updated by application
2023-03-31 18:50:19 +02:00
Evgeny Grin (Karlson2k)
e53ff788f7
Response from callback: do allow negative return amounts, except predefined values
2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k)
1db2ded673
src/examples: fixed printf format specifiers
2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k)
f795558de3
test_https_sni: use CA certificate
...
Still disabled in the test itself, but it should not hurt to give
the proper CA if it is available.
2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k)
f941637d85
Updated test TLS certificate in test and examples
...
The new certificate should be a bit more similar to production certs.
2023-03-31 18:50:17 +02:00
Evgeny Grin (Karlson2k)
ebcfcba9a0
Makefile: fixed *.crt files names for dist target
2023-03-31 18:50:17 +02:00
Evgeny Grin (Karlson2k)
41d7b18d05
test_https_sni: use certificates with SAN fields
...
While host in CommonName (CN) is still should be supported, it is
recommended to use SubjectAltName to identify the host.
This also workarounds the bug in libcurl 7.82.0 with certificates
processing.
2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k)
f0a68628e9
MHD_get_version(): fixed signed value bit shift
2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k)
826070dbce
Disallowed MHD_SIZE_UNKNOWN for buffer-based responses
2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k)
d7bcb55994
memorypool: fixed: unpoison memory for ASAN before destroying pool
2023-03-01 17:27:37 +03:00
Christian Grothoff
3c83e86e30
fix capitalization of SHA-256 / MD5 as per RFC 7616 as reported on the mailinglist by Ahmet Kermen
2023-03-01 17:27:37 +03:00
Evgeny Grin (Karlson2k)
4bb2eac006
test_upgrade{,_large}: fixed use of uninitialized value
2023-03-01 17:27:37 +03:00
Evgeny Grin (Karlson2k)
b6c9ca1c36
bump MHD_VERSION to indicate development version
2023-03-01 17:27:35 +03:00
Christian Grothoff
4a51f653a2
hotfix release
2023-02-27 16:56:31 +01:00
Christian Grothoff
e0754d1638
fix parser bug that could be used to crash servers using the MHD_PostProcessor
2023-02-27 16:55:28 +01:00
Evgeny Grin (Karlson2k)
940041ad78
Released GNU libmicrohttpd 0.9.75
2021-12-26 20:35:58 +03:00
Evgeny Grin (Karlson2k)
cf42e7fd4c
test_large_put: compatibility with old libcurl
...
Compatibility was broken by 5ce0c23e37
2021-12-26 18:25:45 +03:00
Evgeny Grin (Karlson2k)
78784ce6db
test_large_put: increased timeout
...
Incremental test may took longer than 5 seconds.
2021-12-26 17:38:19 +03:00
Evgeny Grin (Karlson2k)
38dcc34b9c
test_large_put: added request timeout detection
2021-12-26 17:36:27 +03:00
Evgeny Grin (Karlson2k)
5ce0c23e37
test_large_put: added more checking for return values
2021-12-26 16:46:03 +03:00
Evgeny Grin (Karlson2k)
73c43a7ef7
Added workaround for system clock jumps back
...
Same OSes (namely OpenBSD) has system clocks that must be monotonic,
but in practice clocks may jump forward and back up to 500 milliseconds.
2021-12-26 12:41:49 +03:00