commit 6813492448621934992aa99f992c22c153962dbe
parent 6243e169137e8dd75921edfa4899bc128a08e2f7
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Tue, 16 Dec 2025 16:44:18 +0100
MbedTLS backend: fixed clang warnings
Diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/mhd2/tls_mbed_funcs.c b/src/mhd2/tls_mbed_funcs.c
@@ -449,6 +449,7 @@ check_app_tls_settings (struct MHD_Daemon *restrict d,
}
+#if defined(mhd_TLS_MBED_INIT_TLS_REQ_RNG)
/**
* Set daemon TLS credentials.
* This function puts error messages to the log if needed.
@@ -460,6 +461,17 @@ check_app_tls_settings (struct MHD_Daemon *restrict d,
* @return #MHD_SC_OK on success,
* error code otherwise
*/
+#else /* ! mhd_TLS_MBED_INIT_TLS_REQ_RNG */
+/**
+ * Set daemon TLS credentials.
+ * This function puts error messages to the log if needed.
+ * @param d the daemon handle
+ * @param d_tls the daemon TLS settings
+ * @param s the application-provided settings
+ * @return #MHD_SC_OK on success,
+ * error code otherwise
+ */
+#endif /* ! mhd_TLS_MBED_INIT_TLS_REQ_RNG */
static MHD_FN_PAR_NONNULL_ (1) MHD_FN_PAR_NONNULL_ (2)
MHD_FN_PAR_NONNULL_ (3) MHD_FN_MUST_CHECK_RESULT_ enum MHD_StatusCode
daemon_init_credentials (
@@ -645,8 +657,6 @@ daemon_set_alpn (struct MHD_Daemon *restrict d,
* @param d the daemon handle
* @param d_tls the daemon TLS settings
* @param s the application-provided settings
- * @param rng_func the random generator function
- * @param rng_ctx the random generator function context
* @return #MHD_SC_OK on success,
* error code otherwise
*/
diff --git a/src/mhd2/tls_mbed_funcs.h b/src/mhd2/tls_mbed_funcs.h
@@ -120,7 +120,6 @@ struct DaemonOptions; /* Forward declaration */
/**
* 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)