mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 02:09:02 +00:00
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff --git a/src/webserver/civetweb/civetweb.h b/src/webserver/civetweb/civetweb.h
|
|
index 2ad76693..52724199 100644
|
|
--- a/src/webserver/civetweb/civetweb.h
|
|
+++ b/src/webserver/civetweb/civetweb.h
|
|
@@ -938,6 +938,10 @@ int my_send_http_error_headers(struct mg_connection *conn,
|
|
void FTL_rewrite_pattern(char *filename, size_t filename_buf_len);
|
|
|
|
|
|
+#define MG_CONFIG_MBEDTLS_DEBUG 3
|
|
+void FTL_mbed_debug(void *user_param, int level, const char *file,
|
|
+ int line, const char *message);
|
|
+
|
|
// Buffer used for additional "Set-Cookie" headers
|
|
#define PIHOLE_HEADERS_MAXLEN 1024
|
|
extern char pi_hole_extra_headers[PIHOLE_HEADERS_MAXLEN];
|
|
diff --git a/src/webserver/civetweb/mod_mbedtls.inl b/src/webserver/civetweb/mod_mbedtls.inl
|
|
index e72685f4..00b9280a 100644
|
|
--- a/src/webserver/civetweb/mod_mbedtls.inl
|
|
+++ b/src/webserver/civetweb/mod_mbedtls.inl
|
|
@@ -83,6 +83,10 @@ mbed_sslctx_init(SSL_CTX *ctx, const char *crt)
|
|
mbedtls_ssl_conf_dbg(conf, mbed_debug, (void *)ctx);
|
|
#endif
|
|
|
|
+ /****************** Pi-hole change ******************/
|
|
+ mbedtls_ssl_conf_dbg(conf, FTL_mbed_debug, NULL);
|
|
+ /****************************************************/
|
|
+
|
|
/* Initialize TLS key and cert */
|
|
mbedtls_pk_init(&ctx->pkey);
|
|
mbedtls_ctr_drbg_init(&ctx->ctr);
|