mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
feat(esp_https_server): Updated the ESP_TLS_SERVER_CERT_SELECT_HOOK config
Update the ESP_TLS_SERVER_CERT_SELECT_HOOK config to ESP_HTTPS_SERVER_CERT_SELECT_HOOK And made it depend on ESP_TLS_SERVER_CERT_SELECT_HOOK
This commit is contained in:
@@ -44,6 +44,8 @@ typedef enum {
|
||||
HTTPD_SSL_USER_CB_SESS_CLOSE
|
||||
} httpd_ssl_user_cb_state_t;
|
||||
|
||||
typedef esp_tls_handshake_callback esp_https_server_cert_select_cb;
|
||||
|
||||
/**
|
||||
* @brief Callback data struct, contains the ESP-TLS connection handle
|
||||
* and the connection state at which the callback is executed
|
||||
@@ -123,8 +125,8 @@ struct httpd_ssl_config {
|
||||
void *ssl_userdata;
|
||||
|
||||
/** Certificate selection callback to use.
|
||||
* The callback is only applicable when CONFIG_ESP_TLS_SERVER_CERT_SELECT_HOOK is enabled in menuconfig */
|
||||
esp_tls_handshake_callback cert_select_cb;
|
||||
* The callback is only applicable when CONFIG_ESP_HTTPS_SERVER_CERT_SELECT_HOOK is enabled in menuconfig */
|
||||
esp_https_server_cert_select_cb cert_select_cb;
|
||||
|
||||
/** Application protocols the server supports in order of prefernece.
|
||||
* Used for negotiating during the TLS handshake, first one the client supports is selected.
|
||||
|
Reference in New Issue
Block a user