Function esp_idf_sys::esp_tls_cfg_server_session_tickets_init
source ยท pub unsafe extern "C" fn esp_tls_cfg_server_session_tickets_init(
cfg: *mut esp_tls_cfg_server_t,
) -> esp_err_t
Expand description
@brief Initialize the server side TLS session ticket context
This function initializes the server side tls session ticket context which holds all necessary data structures to enable tls session tickets according to RFC5077. Use esp_tls_cfg_server_session_tickets_free to free the data.
@param[in] cfg server configuration as esp_tls_cfg_server_t @return ESP_OK if setup succeeded ESP_ERR_INVALID_ARG if context is already initialized ESP_ERR_NO_MEM if memory allocation failed ESP_ERR_NOT_SUPPORTED if session tickets are not available due to build configuration ESP_FAIL if setup failed