Commit Graph
5791 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 9196205a7f OpenSLL backend: simplified code, improved readability 2024-12-04 12:50:27 +03:00
Evgeny Grin (Karlson2k) 0874c39ea3 OpenSSL backend: use compile-time information about enabled features 2024-12-04 11:54:00 +03:00
Evgeny Grin (Karlson2k) 8f34593b11 daemon_start: fixed clean-up of partially initialised thread pool in case of initialisation error 2024-12-03 21:20:13 +03:00
Evgeny Grin (Karlson2k) cffa4bfd49 test_cert_tls: added explicit testing of all available TLS backends 2024-12-02 11:13:00 +03:00
Evgeny Grin (Karlson2k) c5af200870 tls_open_funcs: removed unused var 2024-11-30 19:39:35 +03:00
Evgeny Grin (Karlson2k) 2d9c39c1e0 tls_open_funcs: fixed memleak on settings load 2024-11-30 19:35:21 +03:00
Evgeny Grin (Karlson2k) e9a1f46091 libtest.c: fixed buffer overrun 2024-11-30 19:13:14 +03:00
Evgeny Grin (Karlson2k) 27f2748050 OpenTLS backend: removed workaround 2024-11-30 18:34:03 +03:00
Evgeny Grin (Karlson2k) 1460684dd5 test_cert_tls.c: replaced certificates 2024-11-30 18:34:02 +03:00
Evgeny Grin (Karlson2k) 564f656d57 tls_open_funcs: renamed var for readability 2024-11-30 18:17:20 +03:00
Christian Grothoff 4add8f29ee fix cmp 2024-11-29 19:07:43 +01:00
Christian Grothoff 2ae29c6a02 better error message 2024-11-29 19:03:26 +01:00
Evgeny Grin (Karlson2k) dd6aa6e582 TLS recv: always check for extra data in buffers, even if buffer is not completely used 2024-11-29 20:28:24 +03:00
Evgeny Grin (Karlson2k) 44725b67d9 libtest_convenience.c: fixed broken private key 2024-11-29 19:50:09 +03:00
Evgeny Grin (Karlson2k) 41c2fe20c7 Fixed copy-paste error in assert 2024-11-29 19:34:11 +03:00
Evgeny Grin (Karlson2k) b26be94f72 Fixed broken length for memcopy()
Syntax highlighting would be helpful to avoid such bugs.
2024-11-29 18:20:49 +03:00
Christian Grothoff 72def27df4 fix more pedantic warnings 2024-11-29 15:45:42 +01:00
Christian Grothoff 5cbaad7487 fix more pedantic warnings 2024-11-29 15:45:03 +01:00
Christian Grothoff 5554aac1fb -use ifdef 2024-11-29 15:44:13 +01:00
Evgeny Grin (Karlson2k) f649ca1853 TLS backends: muted some compiler warnings 2024-11-29 17:34:01 +03:00
Christian Grothoff 22d36574c2 pedanti 2024-11-29 15:32:34 +01:00
Christian Grothoff 7c02b0b6fb cast 2024-11-29 15:31:31 +01:00
Christian Grothoff c917479215 -minor fixes 2024-11-29 15:18:52 +01:00
Christian Grothoff df09a72007 expand test to force OpenSSL 2024-11-29 15:02:11 +01:00
Christian Grothoff c9ced7a52c -update self-signed cert 2024-11-29 14:58:40 +01:00
Evgeny Grin (Karlson2k) 3ba6df02bb The missing part for TLS backend availability implementation 2024-11-29 16:38:39 +03:00
Christian Grothoff a027d49a4e more TLS tests 2024-11-29 14:29:02 +01:00
Evgeny Grin (Karlson2k) 2e59d560a5 Implemented introspection functions for TLS backends availability 2024-11-29 16:24:27 +03:00
Evgeny Grin (Karlson2k) e1ed2c2862 MultiTLS: do not try TLS backend if TLS lib initialisation failed 2024-11-29 16:22:17 +03:00
Evgeny Grin (Karlson2k) 4b02c3b059 TLS backends: added function attributes 2024-11-29 16:18:35 +03:00
Evgeny Grin (Karlson2k) 6164109e33 TLS backends: moved some macros from one header to anouther 2024-11-29 16:17:28 +03:00
Evgeny Grin (Karlson2k) 38d7cb6123 OpenSSL backend: fixed compatibility with OpenSSL versions < 3.4 2024-11-29 14:04:45 +03:00
Evgeny Grin (Karlson2k) 86b399e27b Added check that NDEBUG and _DEBUG are not defined together 2024-11-29 13:34:59 +03:00
Evgeny Grin (Karlson2k) bb56a090bc mhd_unreachable.h: removed not used macro 2024-11-29 13:33:51 +03:00
Evgeny Grin (Karlson2k) 66ab9661e5 mhd_unreachable.h: fixed code formatting 2024-11-29 10:30:03 +03:00
Evgeny Grin (Karlson2k) ca6f6d670d mhd_UNREACHABLE(): improved internal helper macro
Forced assert trigger if the macro is reached on debug builds.
Regardless of the macro content, it can be always safely used in
constructs like:

  if (something)
    do_something();
  else
    mhd_UNREACHABLE();
2024-11-29 10:27:16 +03:00
Evgeny Grin (Karlson2k) e16e516c44 Implemented virtual MultiTLS backend
Now the TLS backend selection can be set at runtime, individually
for every daemon.
2024-11-28 22:10:01 +03:00
Evgeny Grin (Karlson2k) e76c054cb0 MHD_UNREACHABLE_: various fixes 2024-11-28 22:05:16 +03:00
Evgeny Grin (Karlson2k) 155895fe45 Corrected internal API for TLS backends 2024-11-28 22:04:06 +03:00
Evgeny Grin (Karlson2k) 70b042be40 MHD_UNREACHABLE_: various fixes 2024-11-28 21:59:45 +03:00
Evgeny Grin (Karlson2k) 455c083b56 Implemented OpenSSL TLS backend support
Multi-TLS is not implemented yet, so MHD works only when configured
--without-gnutls or --without-openssl.
Only single TLS backend is supported for now.
2024-11-28 15:26:24 +03:00
Evgeny Grin (Karlson2k) a13c8742f4 TLS backends: minor corrections 2024-11-28 14:36:45 +03:00
Evgeny Grin (Karlson2k) 1e2f00d3ee Corrected description for the daemon option 2024-11-28 14:20:12 +03:00
Evgeny Grin (Karlson2k) a3457d9a6d Replace predefined DH params "high" with "medium" 2024-11-28 14:20:11 +03:00
Christian Grothoff 088f5e199b write a script to generate certificate files for tests 2024-11-27 21:56:25 +01:00
Evgeny Grin (Karlson2k) 20a6e142b8 test_tls: fixed wrong preprocessor macro 2024-11-27 21:44:43 +03:00
Evgeny Grin (Karlson2k) a44819dbdf Fixed compiler warning about re-definitions of system macros
The header "mhd_sys_options.h" controls behaviour of other included
headers and must be always included first (if included).
2024-11-27 21:42:38 +03:00
Christian Grothoff 062efed8b7 expand test to force GnuTLS 2024-11-27 18:43:47 +01:00
Evgeny Grin (Karlson2k) 2775435621 test_tls: enabled sendfile() part 2024-11-25 20:58:27 +03:00
Evgeny Grin (Karlson2k) 7aa923019d Implemented fallback file reader for the responses 2024-11-25 20:58:26 +03:00