projects
/
project
/
ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c4c1e
)
mbedtls: add missing ifdef for build with disabled debug
author
Felix Fietkau
<nbd@nbd.name>
Sun, 7 Apr 2024 16:54:04 +0000
(18:54 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 7 Apr 2024 16:54:04 +0000
(18:54 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ustream-mbedtls.c
patch
|
blob
|
history
diff --git
a/ustream-mbedtls.c
b/ustream-mbedtls.c
index 73c4a5eee1be378b0062ef5408a3a5e0fa4ee424..ff2c9a9aad936deba7ac1f18f6b3b929355ae6dd 100644
(file)
--- 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)