fix(esp_https_server): Convert HTTPD_SSL_CONFIG_DEFAULT MACRO to function

Previously with HTTPD_SSL_CONFIG_DEFAULT being a MACRO, the
    configuration options could not be applied to it. This was casuing
    error in multiple scenarios. For e.g., here user_cert_cb is a part
    of httpd_ssl_config_t which this macro defines. But the type of
    user_cert_cb (esp_tls_server_callback_t) is only available when it is enabled
    in esp-tls. The MACRO however cannot be modified to set the defaults
    based on configuration option. This fix solves the issue without
    breaking the compatibility
This commit is contained in:
Aditya Patwardhan
2023-10-10 16:27:59 +05:30
committed by Mahavir Jain
parent d4544a0d5c
commit a0d73b5155
3 changed files with 64 additions and 49 deletions

View File

@@ -1,3 +1,4 @@
CONFIG_ESP_HTTPS_SERVER_ENABLE=y
CONFIG_ESP_TLS_CERT_SELECT_HOOK=y
CONFIG_EXAMPLE_ENABLE_HTTPS_USER_CALLBACK=y
CONFIG_EXAMPLE_WIFI_SSID_PWD_FROM_STDIN=y