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
Evgeny Grin (Karlson2k)
21d78eec58
Reply body generation: fixed dynamic content creator called with buffer larger then response size
2024-11-25 20:57:51 +03:00
Evgeny Grin (Karlson2k)
3fafb44046
conn_data_send: fixed asserts
2024-11-25 20:56:15 +03:00
Evgeny Grin (Karlson2k)
f238dd5c01
tls_gnu_funcs: mute compiler waring
2024-11-25 11:33:57 +03:00
Evgeny Grin (Karlson2k)
29adf8a3e9
tls_gnu_funcs: minor adjustments
2024-11-25 08:58:17 +03:00
Evgeny Grin (Karlson2k)
7297c93067
daemon_logger: extended doxy comments
2024-11-25 08:00:32 +03:00
Evgeny Grin (Karlson2k)
5ef5d62983
Revert "option must be const, otherwise breaks client APIs that legitimately expect const"
...
The API is temporal as it forces the same data format for the public API
and for internal data structures.
Internal data must NOT be const as it is allocated and then freed.
Leave MHD internals correct (as it does not need to be fixed) and
the temporal API incorrect as it will be fixed anyway.
The similar issues must be fixed with other daemon configuration
options.
2024-11-25 07:40:52 +03:00
Evgeny Grin (Karlson2k)
a18de61997
GnuTLS error reporting: fixed use of MHD logging
2024-11-25 07:32:49 +03:00
Christian Grothoff
2d040b28fa
mark broken test
2024-11-24 22:50:19 +01:00
Christian Grothoff
45f12e652d
fix TLS test issues
2024-11-24 22:49:43 +01:00
Christian Grothoff
3ad30a2b73
do better error reporting on gnutls API errors
2024-11-24 22:28:12 +01:00
Christian Grothoff
467ca6b4b4
option must be const, otherwise breaks client APIs that legitimately expect const
2024-11-24 22:27:39 +01:00
Christian Grothoff
e86a133fa6
option must be const, otherwise breaks client APIs that legitimately expect const
2024-11-24 22:27:12 +01:00
Evgeny Grin (Karlson2k)
cee65d14e2
GnuTLS communication: the last part
2024-11-24 20:54:11 +03:00
Evgeny Grin (Karlson2k)
8162b4098f
TLS daemon initialisation: fixed inverted assert
2024-11-24 20:54:11 +03:00
Evgeny Grin (Karlson2k)
530942bfe4
mhd_tls_funcs: fixed wrong return value type
2024-11-24 20:54:11 +03:00
Evgeny Grin (Karlson2k)
85ba7af004
Added TLS lib debug messages printing
2024-11-24 20:54:11 +03:00
Evgeny Grin (Karlson2k)
085f18f4be
Renamed CONNECTION_STATE to HTTP_STAGE
...
This is stages of HTTP communication, not states of the connection.
2024-11-24 20:54:10 +03:00
Evgeny Grin (Karlson2k)
540078c600
stream_process_states: extracted one function for internal access
2024-11-24 20:54:10 +03:00
Evgeny Grin (Karlson2k)
835c9fac96
conn_mark_ready: unified duplicated code
2024-11-24 20:54:10 +03:00
Evgeny Grin (Karlson2k)
9276899b29
mhd_socket_error: split into enum and functions
2024-11-24 20:54:10 +03:00
Evgeny Grin (Karlson2k)
333c5647f3
tls_gnu_funcs: corrected sections comments
2024-11-24 20:54:09 +03:00
Evgeny Grin (Karlson2k)
425d3003c3
daemon_add_conn: added TODO comment
2024-11-24 20:54:09 +03:00