diff options
| author | Felix Fietkau | 2024-04-07 16:54:04 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-04-07 16:54:04 +0000 |
| commit | d61493a4420417cbf9931ffee8c862faf04f2967 (patch) | |
| tree | 97e97670627fbfa20320ff397d70f77b3ec61c17 | |
| parent | 28c4c1e6471b6bf5a2e5dd1842c8d1be5d9478e9 (diff) | |
| download | ustream-ssl-d61493a4420417cbf9931ffee8c862faf04f2967.tar.gz | |
mbedtls: add missing ifdef for build with disabled debug
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | ustream-mbedtls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ustream-mbedtls.c b/ustream-mbedtls.c index 73c4a5e..ff2c9a9 100644 --- a/ustream-mbedtls.c +++ b/ustream-mbedtls.c @@ -483,7 +483,9 @@ __hidden void __ustream_ssl_set_debug(struct ustream_ssl_ctx *ctx, int level, ctx->debug_cb = cb; ctx->debug_cb_priv = cb_priv; mbedtls_ssl_conf_dbg(&ctx->conf, debug_cb, ctx); +#ifdef MBEDTLS_DEBUG_C mbedtls_debug_set_threshold(level); +#endif } __hidden void *__ustream_ssl_session_new(struct ustream_ssl_ctx *ctx) |