pub type mbedtls_ssl_ticket_write_t = Option<unsafe extern "C" fn(p_ticket: *mut c_void, session: *const mbedtls_ssl_session, start: *mut c_uchar, end: *const c_uchar, tlen: *mut usize, lifetime: *mut u32) -> c_int>;
Expand description

\brief Callback type: generate and write session ticket

\note This describes what a callback implementation should do. This callback should generate an encrypted and authenticated ticket for the session and write it to the output buffer. Here, ticket means the opaque ticket part of the NewSessionTicket structure of RFC 5077.

\param p_ticket Context for the callback \param session SSL session to be written in the ticket \param start Start of the output buffer \param end End of the output buffer \param tlen On exit, holds the length written \param lifetime On exit, holds the lifetime of the ticket in seconds

\return 0 if successful, or a specific MBEDTLS_ERR_XXX code.

Aliased Type§

enum mbedtls_ssl_ticket_write_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session, _: *mut u8, _: *const u8, _: *mut usize, _: *mut u32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *const mbedtls_ssl_session, _: *mut u8, _: *const u8, _: *mut usize, _: *mut u32) -> i32)

Some value of type T.