mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(esp_https_server): restore use_secure_element initializer in HTTPD_SSL_CONFIG_DEFAULT()
36090b7161removed use_secure_element from httpd_ssl_config and from HTTPD_SSL_CONFIG_DEFAULT().8fe74703bcthen 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.
This commit is contained in:
@@ -234,6 +234,7 @@ typedef struct httpd_ssl_config httpd_ssl_config_t;
|
|||||||
.port_secure = 443, \
|
.port_secure = 443, \
|
||||||
.port_insecure = 80, \
|
.port_insecure = 80, \
|
||||||
.session_tickets = false, \
|
.session_tickets = false, \
|
||||||
|
.use_secure_element = false, \
|
||||||
.user_cb = NULL, \
|
.user_cb = NULL, \
|
||||||
.ssl_userdata = NULL, \
|
.ssl_userdata = NULL, \
|
||||||
.cert_select_cb = NULL, \
|
.cert_select_cb = NULL, \
|
||||||
|
|||||||
Reference in New Issue
Block a user