pub type mbedtls_ssl_cookie_check_t = Option<unsafe extern "C" fn(ctx: *mut c_void, cookie: *const c_uchar, clen: usize, info: *const c_uchar, ilen: usize) -> c_int>;
Expand description

\brief Callback type: verify a cookie

\param ctx Context for the callback \param cookie Cookie to verify \param clen Length of cookie \param info Client ID info that was passed to \c mbedtls_ssl_set_client_transport_id() \param ilen Length of info in bytes

\return The callback must return 0 if cookie is valid, or a negative error code.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.