From 53d1548e91ee4801fdb31a2ffa16cafb8d814775 Mon Sep 17 00:00:00 2001 From: Chris Leishman Date: Fri, 31 Jul 2026 13:02:51 -0700 Subject: [PATCH] fix(esp_https_server): restore use_secure_element initializer in HTTPD_SSL_CONFIG_DEFAULT() 36090b71611 removed use_secure_element from httpd_ssl_config and from HTTPD_SSL_CONFIG_DEFAULT(). 8fe74703bc9 then restored the member to the struct to keep source compatibility, but did not restore it to the macro, so HTTPD_SSL_CONFIG_DEFAULT() no longer initializes every member of the struct it is documented to initialize. C tolerates the gap in designated initializers, but C++ diagnoses it as -Wmissing-field-initializers, which is fatal for applications built with -Werror. --- components/esp_https_server/include/esp_https_server.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_https_server/include/esp_https_server.h b/components/esp_https_server/include/esp_https_server.h index 2c92b6c2dd6..499891261d1 100644 --- a/components/esp_https_server/include/esp_https_server.h +++ b/components/esp_https_server/include/esp_https_server.h @@ -234,6 +234,7 @@ typedef struct httpd_ssl_config httpd_ssl_config_t; .port_secure = 443, \ .port_insecure = 80, \ .session_tickets = false, \ + .use_secure_element = false, \ .user_cb = NULL, \ .ssl_userdata = NULL, \ .cert_select_cb = NULL, \