Function esp_idf_hal::sys::mbedtls_ssl_conf_session_tickets_cb

source ยท
pub unsafe extern "C" fn mbedtls_ssl_conf_session_tickets_cb(
    conf: *mut mbedtls_ssl_config,
    f_ticket_write: Option<unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session, _: *mut u8, _: *const u8, _: *mut usize, _: *mut u32) -> i32>,
    f_ticket_parse: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut mbedtls_ssl_session, _: *mut u8, _: usize) -> i32>,
    p_ticket: *mut c_void,
)
Expand description

\brief Configure SSL session ticket callbacks (server only). (Default: none.)

\note On server, session tickets are enabled by providing non-NULL callbacks.

\note On client, use \c mbedtls_ssl_conf_session_tickets().

\param conf SSL configuration context \param f_ticket_write Callback for writing a ticket \param f_ticket_parse Callback for parsing a ticket \param p_ticket Context shared by the two callbacks