mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
https_server: Add provision for callback at session close
Closes https://github.com/espressif/esp-idf/issues/8288
This commit is contained in:
@@ -21,10 +21,21 @@ typedef enum {
|
||||
HTTPD_SSL_TRANSPORT_INSECURE // SSL disabled
|
||||
} httpd_ssl_transport_mode_t;
|
||||
|
||||
/**
|
||||
* @brief Indicates the state at which the user callback is executed,
|
||||
* i.e at session creation or session close
|
||||
*/
|
||||
typedef enum {
|
||||
HTTPD_SSL_USER_CB_SESS_CREATE,
|
||||
HTTPD_SSL_USER_CB_SESS_CLOSE
|
||||
} httpd_ssl_user_cb_state_t;
|
||||
|
||||
/**
|
||||
* @brief Callback data struct, contains the ESP-TLS connection handle
|
||||
* and the connection state at which the callback is executed
|
||||
*/
|
||||
typedef struct esp_https_server_user_cb_arg {
|
||||
httpd_ssl_user_cb_state_t user_cb_state;
|
||||
const esp_tls_t *tls;
|
||||
} esp_https_server_user_cb_arg_t;
|
||||
|
||||
|
Reference in New Issue
Block a user