commit c07e25736a9c3b3364d891ecb8e2b27ad5a1726a
parent e45b2c33e616d47b610082911679846e909a1a68
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Tue, 16 Dec 2025 15:55:04 +0100
MbedTLS backend: removed unused "sk_edge_trigg" initialisation parameter
Diffstat:
2 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/src/mhd2/tls_mbed_funcs.c b/src/mhd2/tls_mbed_funcs.c
@@ -401,14 +401,12 @@ mhd_tls_mbed_is_inited_fine (void)
/**
* Check application-provided daemon TLS settings
* @param d the daemon handle
- * @param sk_edge_trigg the sockets polling uses edge-triggering
* @param s the application-provided settings
* @return #MHD_SC_OK on success,
* error code otherwise
*/
static MHD_FN_PAR_NONNULL_ALL_ MHD_FN_MUST_CHECK_RESULT_ enum MHD_StatusCode
check_app_tls_settings (struct MHD_Daemon *restrict d,
- bool sk_edge_trigg,
struct DaemonOptions *restrict s)
{
mhd_assert (MHD_TLS_BACKEND_NONE != s->tls);
@@ -745,11 +743,10 @@ daemon_init_config (struct MHD_Daemon *restrict d,
MHD_INTERNAL MHD_FN_MUST_CHECK_RESULT_ MHD_FN_PAR_NONNULL_ALL_
-MHD_FN_PAR_OUT_ (4) mhd_StatusCodeInt
-mhd_tls_mbed_daemon_init (struct MHD_Daemon *restrict d,
- bool sk_edge_trigg,
- struct DaemonOptions *restrict s,
- struct mhd_TlsMbedDaemonData **restrict p_d_tls)
+MHD_FN_PAR_OUT_ (3) mhd_StatusCodeInt
+mhd_tls_mbed_daemon_init3 (struct MHD_Daemon *restrict d,
+ struct DaemonOptions *restrict s,
+ struct mhd_TlsMbedDaemonData **restrict p_d_tls)
{
mhd_StatusCodeInt res;
struct mhd_TlsMbedDaemonData *restrict d_tls;
@@ -759,7 +756,6 @@ mhd_tls_mbed_daemon_init (struct MHD_Daemon *restrict d,
mhd_assert (mbedtls_lib_inited_now);
res = check_app_tls_settings (d,
- sk_edge_trigg,
s);
if (MHD_SC_OK != res)
return res;
diff --git a/src/mhd2/tls_mbed_funcs.h b/src/mhd2/tls_mbed_funcs.h
@@ -128,11 +128,23 @@ struct DaemonOptions; /* Forward declaration */
* error code otherwise
*/
MHD_INTERNAL mhd_StatusCodeInt
-mhd_tls_mbed_daemon_init (struct MHD_Daemon *restrict d,
- bool sk_edge_trigg,
- struct DaemonOptions *restrict s,
- struct mhd_TlsMbedDaemonData **restrict p_d_tls)
-MHD_FN_MUST_CHECK_RESULT_ MHD_FN_PAR_NONNULL_ALL_ MHD_FN_PAR_OUT_ (4);
+mhd_tls_mbed_daemon_init3 (struct MHD_Daemon *restrict d,
+ struct DaemonOptions *restrict s,
+ struct mhd_TlsMbedDaemonData **restrict p_d_tls)
+MHD_FN_MUST_CHECK_RESULT_ MHD_FN_PAR_NONNULL_ALL_ MHD_FN_PAR_OUT_ (3);
+
+/**
+ * Allocate and initialise daemon TLS parameters
+ * @param d the daemon handle
+ * @param et if 'true' then sockets polling uses edge-triggering
+ * @param s the daemon settings
+ * @param p_d_tls the pointer to variable to set the pointer to
+ * the daemon's TLS settings (allocated by this function)
+ * @return #MHD_SC_OK on success (p_d_tls set to the allocated settings),
+ * error code otherwise
+ */
+#define mhd_tls_mbed_daemon_init(d,et,s,p_d_tls) \
+ mhd_tls_mbed_daemon_init3 ((d),(s),(p_d_tls))
/**
* De-initialise daemon TLS parameters (and free memory allocated for TLS