feat(esp_https_server): adds support for user callback on handshake failure

Closes https://github.com/espressif/esp-idf/issues/18053
This commit is contained in:
Ashish Sharma
2026-01-07 16:04:03 +08:00
parent dad6e2b020
commit 22d7c20b31
3 changed files with 36 additions and 2 deletions
@@ -39,11 +39,12 @@ typedef enum {
/**
* @brief Indicates the state at which the user callback is executed,
* i.e at session creation or session close
* i.e at session creation, session close, or session error
*/
typedef enum {
HTTPD_SSL_USER_CB_SESS_CREATE,
HTTPD_SSL_USER_CB_SESS_CLOSE
HTTPD_SSL_USER_CB_SESS_CLOSE,
HTTPD_SSL_USER_CB_SESS_ERROR
} httpd_ssl_user_cb_state_t;
typedef esp_tls_handshake_callback esp_https_server_cert_select_cb;