Commit Graph
227 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) 6c84bcf3fe HTTPS tests: added new backend identification functions 2021-06-10 20:45:29 +03:00
Evgeny Grin (Karlson2k) 77a30308be HTTPS tests: ensure that CURL options were applied 2021-06-10 19:41:28 +03:00
Evgeny Grin (Karlson2k) 9ce7aa953a Style and shadowing fixes 2021-04-13 20:42:49 +03:00
Evgeny Grin (Karlson2k) 7d5e06ed5f Updated test certificates
Updated TLS test certificates with modern algorithms and correct
alternative names, which is closer to real live scenarios.
Examples programs work with browsers again.
2021-04-11 12:38:48 +03:00
Evgeny Grin (Karlson2k) d50159bf99 Implemented new function MHD_create_response_from_iovec()
Implemented the new function, related framework, and tests for iovec-based
responses.
The implementation is based on the patch provided by Lawrence Sebald and
Damon N. Earp from NASA.
2021-02-24 19:46:31 +03:00
Evgeny Grin (Karlson2k) 6d7f0a8f54 Fixed and muted compiler warnings 2020-12-23 22:40:59 +03:00
Evgeny Grin (Karlson2k) 8cb26daea6 Fixed conflict with system CPU_COUNT macro 2020-10-25 22:52:53 +03:00
Christian Grothoff beb7fa828c fix transmission stall issue with upgraded TLS connections reported by Nguyen Xuan Viet on the mailinglist 2020-09-27 22:12:13 +02:00
Christian Grothoff 89d2ef9732 define and use 'enum MHD_Result' (merge) 2020-04-08 23:38:07 +02:00
Christian Grothoff de872dea2d define and use 'enum MHD_Result' 2020-04-08 23:36:41 +02:00
silvioprog bcffdf809f Applied several spelling fixes. (#6142) 2020-03-31 15:08:34 -03:00
Christian Grothoff 2e8a4f8b9a mark build as non-parallel due to port conflicts (#6117) 2020-03-14 16:06:13 +01:00
Christian Grothoff 7389c34528 tighten formatting rules 2019-10-31 13:06:08 +01:00
Christian Grothoff 5e5dbf980d add tests for empty reply in HTTPS 2019-10-26 18:52:53 +02:00
Christian Grothoff 972103dc28 applying uncrustify to ensure uniform indentation 2019-10-17 16:56:41 +02:00
Evgeny Grin (Karlson2k) 3894027826 tests: properly setup CURL options 2019-05-26 18:17:32 +03:00
Evgeny Grin (Karlson2k) 710d79a2ea test_https_get_select: fixed usage of uninitialized variable 2019-05-26 18:02:51 +03:00
Evgeny Grin (Karlson2k) 2c5033377f Spelling fixes 2019-05-21 17:57:04 +03:00
Christian Grothoff 6bb3796f50 fix FTBFS 2018-12-07 19:11:59 +01:00
Christian Grothoff 0eefd20ba3 add build option to compile MHD without threads 2018-12-07 12:40:40 +01:00
Christian Grothoff 7ade892317 clean up use of GNUTLS linker options in various places, re-add SAVE_LIBS restoration to configure.ac to avoid linking indiscriminately against GnuTLS 2018-09-11 15:11:53 +02:00
Christian Grothoff 832739556b some minor code cleaning issues 2018-06-22 15:16:11 +02:00
Christian Grothoff 5e0e6b15c4 fix leak in test on error path 2018-02-28 00:46:36 +01:00
Evgeny Grin (Karlson2k) 56077dce84 https tests: completely exclude 3DES from tests
as it considered as "unsafe" and could be disabled in libs
2017-12-07 16:03:15 +03:00
Evgeny Grin (Karlson2k) 249dbe3d33 https_tests: fixed typo in libcurl version number 2017-11-22 23:53:20 +03:00
Evgeny Grin (Karlson2k) 23324164fb https tests: supported multi-TLS selection on libcurl >= 7.56.0,
fixed error report for failed initialisation of libcurl
2017-11-15 16:12:12 +03:00
Evgeny Grin (Karlson2k) fd7d712823 Fixed compiler warning 2017-11-15 15:36:12 +03:00
Evgeny Grin (Karlson2k) ff492e3700 testcurl/https/Makefile.am: moved headers to proper location 2017-11-15 15:32:58 +03:00
Evgeny Grin (Karlson2k) 5518c48aa5 test_https_session_info: silenced compiler warning. 2017-11-09 21:49:48 +03:00
Evgeny Grin (Karlson2k) ad6ad0ad5b HTTPS tests: disable 3DES testing on GnuTLS > 3.6.0 since it is disabled
by default in GnuTLS
2017-10-31 15:54:39 +03:00