From 0d0f7852302af38ea1a1f764e206e75e1201ae07 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Fri, 28 Apr 2023 03:17:16 -0400 Subject: [mod_mbedtls] check MBEDTLS_DEBUG_C for debug func wrap mbedtls_debug_set_threshold() in #ifdef for MBEDTLS_DEBUG_C --- src/mod_mbedtls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mod_mbedtls.c b/src/mod_mbedtls.c index 0f429e50..20fca79c 100644 --- a/src/mod_mbedtls.c +++ b/src/mod_mbedtls.c @@ -2358,8 +2358,10 @@ CONNECTION_FUNC(mod_mbedtls_handle_con_accept) * overlap, and so this debug setting is not reset upon connection close. * Once enabled, debug hook will remain so for this mbedtls_ssl_config */ if (hctx->conf.ssl_log_noise) {/* volume level for debug message callback */ + #ifdef MBEDTLS_DEBUG_C #if MBEDTLS_VERSION_NUMBER >= 0x02000000 /* mbedtls 2.0.0 */ mbedtls_debug_set_threshold(hctx->conf.ssl_log_noise); + #endif #endif mbedtls_ssl_conf_dbg(hctx->ssl_ctx, mod_mbedtls_debug_cb, (void *)(intptr_t)hctx->conf.ssl_log_noise); -- cgit v1.2.1