Commit Graph
274 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 41f2a26f62 Initial draft M2 (WIP) 2024-07-01 02:53:35 +02:00
Evgeny Grin (Karlson2k) f2e8c99e24 Skipped some HTTPS tests with old broken GnuTLS 2024-02-05 09:17:27 +01:00
Evgeny Grin (Karlson2k) 37286a3b73 Fixed compiler warnings 2024-02-05 09:17:25 +01:00
Evgeny Grin (Karlson2k) e43f3716f0 Fixed and/or muted compiler warnings 2024-02-05 09:17:24 +01:00
Evgeny Grin (Karlson2k) 67b1cdc29d Tests: added use of MHD_USE_NO_THREAD_SAFETY flag 2023-11-23 13:47:00 +03:00
Evgeny Grin (Karlson2k) 1ffe7932df Tests and examples: added rule to (re-)build libmicrohttpd.la 2022-11-06 15:01:19 +03:00
Evgeny Grin (Karlson2k) 9440f9aefe configure: do not pass AM_TESTS_ENVIRONMENT directly 2022-10-30 13:20:19 +03:00
Evgeny Grin (Karlson2k) 778e2a031e testcurl/https: minor improvements 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) c8b0bf5627 testcurl/https/Makefile.am: removed bad whitespace 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) 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) 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) 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) 4adc14c948 Some readability improvements 2022-09-28 11:46:59 +03:00
Evgeny Grin (Karlson2k) db4d4cb4bd test-suite: sorted and fixed build flags 2022-09-27 14:51:32 +03:00
Evgeny Grin (Karlson2k) 1e288041bd Fixed initialisation of old GnuTLS versions 2022-09-25 18:39:40 +03:00
Evgeny Grin (Karlson2k) 977d01df7a src/microhttpd/test_*: fixed more compiler warnings 2022-06-14 21:22:33 +03:00
Evgeny Grin (Karlson2k) afb8ed41f8 HTTPS tests: added missing function declaration 2022-05-31 11:49:50 +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) 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) a3ce7049bd test_https_sni: limit to libcrul with certain TLS backends.
NSS can't be used with SSL_VERIFYPEER disabled, while SSL_VERIFYHOST is
enabled, other backends may have some problems as well.
2022-04-21 13:40:10 +03:00
Evgeny Grin (Karlson2k) fc649c7bf3 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.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k) dde8624f97 Updated test TLS certificate in test and examples
The new certificate should be a bit more similar to production certs.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k) 38f60de83d 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.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k) 166b572354 Use HTTP/1.1 for all TLS tests
Nobody is using HTTP/1.0 with TLS
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k) bd41946e8f Renamed 'con_cls' -> 'req_cls' for access handler callback
The argument is actually request-specific, not connection specific. The
name was confusing.
Fixed related documentation and clarified usage.

Also fixed code where argument named 'unused' was actually used.
2022-01-18 15:18:40 +03:00
Evgeny Grin (Karlson2k) cbd62cc2d3 Autotools refactoring: better follow GNU coding standards
Never override CFLAGS, CPPFLAGS, and LDFLAGS in 'configure'.
Let user override compile setting as make-time almost in the same way
like at configure-time.

Removed some redundant compile settings.
2022-01-06 19:05:41 +03:00
Evgeny Grin (Karlson2k) 5eae5d9ba2 https tests: mute compiler warning on old systems 2021-12-13 21:07:44 +03:00