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

\brief Callback type: generate a cookie

\param ctx Context for the callback \param p Buffer to write to, must be updated to point right after the cookie \param end Pointer to one past the end of the output buffer \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 on success, or a negative error code.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.