Christian Grothoff
9f6dcfb19f
work on test
2024-12-23 16:50:30 +01:00
Evgeny Grin (Karlson2k)
22f6c839a6
configure: formatted the final summary
2024-12-05 13:22:01 +03:00
Evgeny Grin (Karlson2k)
22404bb5ee
OpenSSL backend: updated comments
2024-12-05 12:47:59 +03:00
Evgeny Grin (Karlson2k)
37e5e5cda8
fix 'make dist', second try
2024-12-05 10:04:03 +03:00
Evgeny Grin (Karlson2k)
bb9101f496
src/tests/client_server/Makefile.am: fixed 'make dist'
2024-12-04 21:54:16 +03:00
Evgeny Grin (Karlson2k)
7815866281
OpenSSL backend: block use if sockets are edge-triggered
2024-12-04 21:50:07 +03:00
Evgeny Grin (Karlson2k)
62d58edb3f
TLS backends: added asserts for successful initialisaion
2024-12-04 21:45:25 +03:00
Evgeny Grin (Karlson2k)
d68e3ea5c6
TLS backends: added missing doxy parts
2024-12-04 19:05:11 +03:00
Evgeny Grin (Karlson2k)
379be0cce5
daemon_start: do not auto-choose epoll if TLS backend does not support it
2024-12-04 19:05:11 +03:00
Evgeny Grin (Karlson2k)
1de1782c78
daemon_start: minimal refactoring of socket polling syscall selection algorithm
2024-12-04 16:18:25 +03:00
Evgeny Grin (Karlson2k)
e1a5e5cad4
OpenSSL backend: improved comments
2024-12-04 12:53:16 +03:00
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