Commit Graph
257 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) 9a6ebcd612 Workaround for old broken GnuTLS builds 2021-12-13 21:06:17 +03:00
Evgeny Grin (Karlson2k) 73b03e9027 https tests: simplified makefile 2021-12-13 14:12:12 +03:00
Evgeny Grin (Karlson2k) fdf0ea88ac test_https_time_out: use better sleep function 2021-12-12 20:51:29 +03:00
Evgeny Grin (Karlson2k) 141a8e702c test_https_time_out: additional fixes
Fixed possible abort on SIGPIPE.
Avoid meaningless test results reports (-1 was mapped to unsigned value).
Check GnuTLS functions results.
Correctly initialize GnuTLS session.
2021-12-12 20:51:29 +03:00
Evgeny Grin (Karlson2k) 54e83ba5ee test_https_time_out: fixed test, now testing is real 2021-12-12 20:51:28 +03:00
Evgeny Grin (Karlson2k) 993fd001ab test_https_time_out: fixed broken check
The old check "send () == 0" was always wrong. send() never returns zero.
As a result, the test checks nothing.
2021-12-12 20:39:09 +03:00
Evgeny Grin (Karlson2k) 8f803e184a https tests: mute compiler warnings for old curl 2021-12-12 16:31:50 +03:00
Christian Grothoff dbe1d76d9c -fix tests for libmagic (and uncrustify indentation) 2021-12-08 14:11:31 +01:00
Evgeny Grin (Karlson2k) 742e5bd1b6 Tests: explicitly enforced zero or one exit codes 2021-11-23 15:11:50 +03:00
Evgeny Grin (Karlson2k) cba8e9f23e tests: fixed case-insensitive match for method name 2021-09-22 21:03:22 +03:00
Evgeny Grin (Karlson2k) 5929f53ef8 src/testcurl/https/Makefile.am: removed non-existing include dir 2021-08-26 16:21:24 +03:00
Evgeny Grin (Karlson2k) 78b86d29f1 curl_version_check: mark function as static 2021-08-26 16:20:49 +03:00
Evgeny Grin (Karlson2k) 143eb48f21 Moved test help file 2021-08-26 16:15:05 +03:00
Evgeny Grin (Karlson2k) b812b174c3 tests: improved handling of curl multi_* 2021-08-16 19:30:25 +03:00
Evgeny Grin (Karlson2k) 99455892ab HTTPS tests: fixed memory leak in tests 2021-08-16 11:55:23 +03:00
Evgeny Grin (Karlson2k) 386b21da1b test_tls_options: multiple fixes
* SSLv3 is not supported anymore by TLS libs and CURL
* libcurl accepts requested and later versions of TLS,
  MHD and CURL TLS versions in second test must be reversed
* Test works with any TLS backend with a few exceptions
2021-06-10 21:20:44 +03:00
Evgeny Grin (Karlson2k) 6dbe969d4d tests: removed curl_uses_nss_ssl(), used new backend identification functions 2021-06-10 21:09:25 +03:00