fix TLS text

This commit is contained in:
Sergio R. Caprile committed 2025-07-24 17:11:19 -03:00
1 parent 3bbcd5df3e
commit 6aa8c01ac7
2 files changed
+13 -7

No files matched your search

+6 -3
View File
@@ -4138,9 +4138,12 @@ void mg_mgr_init(struct mg_mgr *mgr) {
mgr->dns6.url = "udp://[2001:4860:4860::8888]:53"; mgr->dns6.url = "udp://[2001:4860:4860::8888]:53";
mg_tls_ctx_init(mgr); mg_tls_ctx_init(mgr);
MG_DEBUG(("MG_IO_SIZE: %lu, TLS: %s", MG_IO_SIZE, MG_DEBUG(("MG_IO_SIZE: %lu, TLS: %s", MG_IO_SIZE,
MG_TLS == MG_TLS_NONE ? "none" MG_TLS == MG_TLS_NONE ? "none"
: MG_TLS == MG_TLS_MBED ? "mbedtls" : MG_TLS == MG_TLS_MBED ? "MbedTLS"
: "builtin")); : MG_TLS == MG_TLS_OPENSSL ? "OpenSSL"
: MG_TLS == MG_TLS_BUILTIN ? "builtin"
: MG_TLS == MG_TLS_WOLFSSL ? "WolfSSL"
: "custom"));
} }
#ifdef MG_ENABLE_LINES #ifdef MG_ENABLE_LINES
+7 -4
View File
@@ -1,7 +1,7 @@
#include "net.h"
#include "dns.h" #include "dns.h"
#include "fmt.h" #include "fmt.h"
#include "log.h" #include "log.h"
#include "net.h"
#include "printf.h" #include "printf.h"
#include "profile.h" #include "profile.h"
#include "timer.h" #include "timer.h"
@@ -288,7 +288,10 @@ void mg_mgr_init(struct mg_mgr *mgr) {
mgr->dns6.url = "udp://[2001:4860:4860::8888]:53"; mgr->dns6.url = "udp://[2001:4860:4860::8888]:53";
mg_tls_ctx_init(mgr); mg_tls_ctx_init(mgr);
MG_DEBUG(("MG_IO_SIZE: %lu, TLS: %s", MG_IO_SIZE, MG_DEBUG(("MG_IO_SIZE: %lu, TLS: %s", MG_IO_SIZE,
MG_TLS == MG_TLS_NONE ? "none" MG_TLS == MG_TLS_NONE ? "none"
: MG_TLS == MG_TLS_MBED ? "mbedtls" : MG_TLS == MG_TLS_MBED ? "MbedTLS"
: "builtin")); : MG_TLS == MG_TLS_OPENSSL ? "OpenSSL"
: MG_TLS == MG_TLS_BUILTIN ? "builtin"
: MG_TLS == MG_TLS_WOLFSSL ? "WolfSSL"
: "custom"));
} }