Allow hostname checking even when no CA cert was given

This commit is contained in:
Sergio R. Caprile committed 2026-06-22 14:51:24 -03:00
1 parent 044fdd472f
commit d8e629a048
8 files changed
+131 -48

No files matched your search

+2 -1
View File
@@ -24,12 +24,13 @@ struct mg_tls {
mbedtls_x509_crt cert; // Parsed certificate
mbedtls_pk_context pk; // Private key context
mbedtls_ssl_context ssl; // SSL/TLS context
mbedtls_ssl_config conf; // SSL-TLS config
mbedtls_ssl_config conf; // SSL/TLS config
#ifdef MBEDTLS_SSL_SESSION_TICKETS
mbedtls_ssl_ticket_context ticket; // Session tickets context
#endif
// https://github.com/Mbed-TLS/mbedtls/blob/3b3c652d/include/mbedtls/ssl.h#L5071C18-L5076C29
unsigned char *throttled_buf; // see #3074
size_t throttled_len;
bool check_name; // set when hostname was set, but no CA certificate given
};
#endif