Commit Graph
4794 Commits
Author SHA1 Message Date
Christian Grothoff b85d48cd95 -support mime-types by file extension in demo.c 2022-10-28 15:20:38 +02:00
Evgeny Grin (Karlson2k) fbb768d910 Fixing missing status update after 8565e7a8a9 2022-10-28 15:02:24 +03:00
Evgeny Grin (Karlson2k) 8565e7a8a9 epoll: make sure that connection waiting for data processing will be processed 2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) d23d5400c4 Missing part for f1c69db300 2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) 35cdcb5178 Fixed 699b6cd563
Do not removed connection from eready-list if it is waiting for
read and data processing at the same time.
2022-10-28 14:22:46 +03:00
Evgeny Grin (Karlson2k) 9f4a08a8d5 microhttpd.h: doxy improvements 2022-10-28 12:13:08 +03:00
Evgeny Grin (Karlson2k) 89e73e62ae postprocessor.h: fixed typos in doxy 2022-10-28 12:13:07 +03:00
Evgeny Grin (Karlson2k) f5d7b2fc92 test_head: check libcurl for timeout value 2022-10-28 12:13:07 +03:00
Evgeny Grin (Karlson2k) b44b4f73dd test_head: added check for excess data in reply 2022-10-28 12:13:07 +03:00
Evgeny Grin (Karlson2k) 9b86ff304c testcurl: added test with Content-Length broken value in request 2022-10-28 12:10:18 +03:00
Evgeny Grin (Karlson2k) f1bfbe71dc connection.c: fixed handling of various errors automatically detected by MHD code
Make sure that errors replies are processed correctly.
2022-10-28 12:10:18 +03:00
Evgeny Grin (Karlson2k) f1c69db300 Reworked partial processing of the upload
Now if some data has been processed by Access Handler Callback, zero
timeout is used for the next turn and at the same time more data is
read (if available) from the network.
If Access Handler Callback has not processed any data, MHD will wait
for additional data to come.
2022-10-22 09:48:07 +03:00
Evgeny Grin (Karlson2k) bf9e99729c Do not send "100 Continue" if part of the request body is already received 2022-10-22 09:48:07 +03:00
Evgeny Grin (Karlson2k) 692e8c5655 Do not send "100 Continue" if request does not have a body 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) dd7f9dfe91 Renamed one more connection state for clarity 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 9fef2196c6 Renamed one state in MHD_ConnectionEventLoopInfo for clarity 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 699b6cd563 Added new state for MHD_ConnectionEventLoopInfo 2022-10-22 09:48:06 +03:00
Evgeny Grin (Karlson2k) 571ec18078 New values for MHD_ConnectionEventLoopInfo 2022-10-22 09:47:59 +03:00
Evgeny Grin (Karlson2k) cf6f91bd6e Added check for hypothetical too large accepted sockets addresses
Also added warning (instead of rejection) for zero-length addresses.
2022-10-14 15:13:46 +03:00
Evgeny Grin (Karlson2k) 30beb61e11 Added ability to check for MHD debug builds at run-time 2022-10-14 11:25:29 +03:00
Evgeny Grin (Karlson2k) 5e0c222367 Fixed builds with old compilers after 0b9776811f 2022-10-13 19:12:59 +03:00
Evgeny Grin (Karlson2k) abbff35439 test_toolarge: fixed compiler warning 2022-10-13 09:56:19 +03:00
Evgeny Grin (Karlson2k) 778e2a031e testcurl/https: minor improvements 2022-10-13 09:07:03 +03:00
Evgeny Grin (Karlson2k) 9f659a60b0 daemon: added reporting of the position of problem in priorities string 2022-10-13 09:07:03 +03:00
Evgeny Grin (Karlson2k) 1689be3a27 daemon: merged processing of two similar options 2022-10-13 09:07:03 +03:00
Evgeny Grin (Karlson2k) f8502a2e07 testcurl/https: added test for MHD_OPTION_HTTPS_PRIORITIES_APPEND 2022-10-13 09:07:03 +03:00
Evgeny Grin (Karlson2k) 0b9776811f Added new MHD option to append TLS priorities string
The string is appended to default GnuTLS priorities. This way
application may control priorities details, while leaving the basic
settings to system's defaults.
2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) c8b0bf5627 testcurl/https/Makefile.am: removed bad whitespace 2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) 6e95c305e4 TLS: use application-specific system-wide configuration with fallbacks
Implemented more flexible GnuTLS priorities string initialisation. Now
MHD tries to use "@LIBMICROHTTPD" configuration at first, so all
MHD instances on particular system can be configured by specifying the
string like "LIBMICROHTTPD = ..." in GnuTLS system-wide configuration.
For example "LIBMICROHTTPD = NORMAL:-VERS-TLS1.0:-VERS-TLS1.1" could be
used to disable TLS v1.0 and TLS v1.1 for all MHD instances.
If application-specific configuration is not available, then default
"@SYSTEM" run-time configuration is used.
If "@SYSTEM" is not defined, then GnuTLS build-time default string
is used.
Standard "NORMAL" configuration is used if everything else fails.
2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) ce538bc102 mhd_assert: use "DEBUG" macro defined by some toolchains 2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) 094e2bbedd testcurl/https: enabled parallel make
All blocking issues should be fixed now.
2022-10-13 09:06:46 +03:00
Evgeny Grin (Karlson2k) 4ccbeb54f9 testcurl/https: handle libcurl with missing custom CA support 2022-10-10 16:25:38 +03:00
Evgeny Grin (Karlson2k) c930fe1ae3 testcurl/https: updated copyright year in modified files, fixed some doxy 2022-10-10 13:45:36 +03:00
Evgeny Grin (Karlson2k) 95e6662960 test_tls_authentication: fixed to really test TLS authentication
Previously test certificate authentication was just skipped
2022-10-10 13:45:36 +03:00
Evgeny Grin (Karlson2k) 121c134c1d https tests: updated self-signed certificate
The new certificate is TLS v1.3 compatible, while still
maintaining backward-compatibly with old TLS libs and protocols.
2022-10-10 13:45:35 +03:00
Evgeny Grin (Karlson2k) 868cb71aa2 https tests: renamed private key variable to match certificate name 2022-10-10 13:45:35 +03:00
Evgeny Grin (Karlson2k) b84dc1b220 test_tls_options: re-implemented, removed hardcoded TLS versions
The test now tries several TLS versions. If no TLS versions are
supported, then the test is considered SKIPPED.
This way test is forward compatible with future GnuTLS and libcurl
versions.
2022-10-10 13:45:35 +03:00
Evgeny Grin (Karlson2k) 749a8b434c tls_test_common: fixed comments and error messages 2022-10-10 13:45:35 +03:00
Evgeny Grin (Karlson2k) 288b02ad91 test_https_get_parallel_threads: removed libcurl-GnuTLS requirement 2022-10-10 11:54:33 +03:00
Evgeny Grin (Karlson2k) 0913234c22 digestauth.h: removed leftover in doxy 2022-10-10 11:54:33 +03:00
Evgeny Grin (Karlson2k) b6979795cd microhttpd.h: minor doxy fix 2022-10-10 11:54:33 +03:00
Evgeny Grin (Karlson2k) cfe614ca37 test_https_session_info: removed hardcoded TLS version
Test rewritten to use several known TLS versions. If all known TLS
version fail, test is skipped instead of error.
This way MHD is forward-compatible with TLS libraries versions, as
TLS versions are phased out from time to time.
2022-10-10 11:54:32 +03:00
Evgeny Grin (Karlson2k) a781ffa583 test_tls_extensions: removed unused test
The test has not been used for a long time.
The initial idea of the test was testing GnuTLS for some bugs. Let's
leave GnuTLS testing for GnuTLS test-suite.
2022-10-10 11:54:32 +03:00
Evgeny Grin (Karlson2k) 3330f10e62 testcurl/https: some simplifications and clean-ups 2022-10-10 11:54:32 +03:00
Evgeny Grin (Karlson2k) 6e78e80225 testcurl/https: added proper check for snprintf() result 2022-10-10 11:54:32 +03:00
Evgeny Grin (Karlson2k) f8441dac5f testcurl/https: significantly simplified test URI
The set URI was overcomplicated without any practical reasons.
Fixed compiler warning on W32.
2022-10-10 11:54:31 +03:00
Evgeny Grin (Karlson2k) 43e10b9088 MHD_poll(): removed unneeded check
The shutdown flag is handled externally
2022-10-10 11:54:31 +03:00
Evgeny Grin (Karlson2k) 3921f777c1 daemon: small refactoring for more compact code when poll() is not supported 2022-10-10 11:54:31 +03:00
Evgeny Grin (Karlson2k) 88d27af738 MHD_run_wait(): improved readability 2022-10-10 11:54:31 +03:00
Evgeny Grin (Karlson2k) 9f22ba9b0b microhttpd.h: improved doxy for MHD_USE_THREAD_PER_CONNECTION 2022-10-10 11:54:30 +03:00