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
Evgeny Grin (Karlson2k)
759eb24fbd
MHD_start_daemon(): minor readability improvement
2022-10-10 11:54:30 +03:00
Evgeny Grin (Karlson2k)
a710f62708
test_https_time_out: second attempt to really check something with this test
2022-10-10 11:54:30 +03:00
Evgeny Grin (Karlson2k)
8fea3c9192
daemon: fixed delayed notification callback in thread-per-connection mode
2022-10-10 11:54:29 +03:00
Evgeny Grin (Karlson2k)
4237407f81
test_https_get_parallel{,_threads}: removed artificial delay
2022-10-10 11:54:29 +03:00
Evgeny Grin (Karlson2k)
8d00c4f778
testcurl/https: enable verbose libcurl on debug builds
2022-10-10 11:54:29 +03:00
Evgeny Grin (Karlson2k)
860010b668
testcurl/https: removed usage of deprecated libcurl parameter
2022-10-10 11:54:28 +03:00
Evgeny Grin (Karlson2k)
26c6ba57bd
test_https_session_info: fixed compiler warning with old libcurl
2022-10-06 14:23:04 +03:00
Evgeny Grin (Karlson2k)
f7747015d8
testcurl/https: do not enforce TLSv1
...
Usage of concrete TLS version is not future-proof. Relay on default
version setting by libcurl/TLS lib.
2022-10-05 18:42:20 +03:00
Evgeny Grin (Karlson2k)
f069ee365d
testcurl/https: removed explicit cipher setting
...
Explicit ciphers are not required and not future-proof.
2022-10-05 18:42:20 +03:00
Evgeny Grin (Karlson2k)
0be4e8c2a7
testcurl/https: stopped CA file creation/removal
...
Use CA cert file which is already in the filesystem
2022-10-05 18:42:19 +03:00
Evgeny Grin (Karlson2k)
28e28436c6
testcurl/https: fixed compiler warnings, wrong types
2022-10-05 18:42:19 +03:00
Evgeny Grin (Karlson2k)
c1f7c8075a
testcurl/https: fixed functions declarations
2022-10-05 13:19:01 +03:00
Evgeny Grin (Karlson2k)
2249c1f5df
Removed curl_version_check
...
No modern and even old platform has such old components
2022-10-05 13:19:01 +03:00
Evgeny Grin (Karlson2k)
30ef790c1a
testcurl: updated copyright year in updated files
2022-10-01 17:36:51 +03:00
Evgeny Grin (Karlson2k)
96ff40d7ea
test_add_conn: added reasonable limits
2022-10-01 15:07:37 +03:00
Evgeny Grin (Karlson2k)
023e1dba2a
testcurl: fixed used types and related warnings
2022-10-01 15:07:36 +03:00
Evgeny Grin (Karlson2k)
81733d43e8
testcurl: fixed functions declarations
2022-10-01 15:04:18 +03:00
Evgeny Grin (Karlson2k)
53207f93b0
testcurl: Muted some compiler warnings, minor refactoring
...
Used new API for creating of responses to avoid 'const' drops
2022-10-01 15:00:34 +03:00
Evgeny Grin (Karlson2k)
b34d7a3e02
microhttpd/tests: muted compiler warnings
2022-09-30 15:47:11 +03:00
Evgeny Grin (Karlson2k)
3f98c6092d
Removed "gauger" server usage from the testsuite
...
The testsuite should test MHD functionality, not measure performance in
some unpredictable conditions.
2022-09-30 15:28:03 +03:00