diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-04-28 03:17:16 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:35 -0400 |
commit | 0d0f7852302af38ea1a1f764e206e75e1201ae07 (patch) | |
tree | 18202a40b5b2b7877ff6a49f4c3799bbbdcee4c4 | |
parent | 99f03a2bce23f55b49d85cd7fc1acbaee3dd22c7 (diff) | |
download | lighttpd-git-0d0f7852302af38ea1a1f764e206e75e1201ae07.tar.gz |
[mod_mbedtls] check MBEDTLS_DEBUG_C for debug func
wrap mbedtls_debug_set_threshold() in #ifdef for MBEDTLS_DEBUG_C
-rw-r--r-- | src/mod_mbedtls.c | 2 |
1 files changed, 2 insertions, 0 deletions
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,9 +2358,11 @@ 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); } |