Function s2n_tls_sys::s2n_send_early_data
source · pub unsafe extern "C" fn s2n_send_early_data(
conn: *mut s2n_connection,
data: *const u8,
data_len: isize,
data_sent: *mut isize,
blocked: *mut Type
) -> c_int
Expand description
Called by the client to begin negotiation and send early data.
See https://github.com/aws/s2n-tls/blob/main/docs/usage-guide/topics/ch14-early-data.md for usage and examples. DO NOT USE unless you have considered the security issues and implemented mitigation for anti-replay attacks.
@param conn A pointer to the connection
@param data A pointer to the early data to be sent
@param data_len The size of the early data to send
@param data_sent A pointer which will be set to the size of the early data sent
@param blocked A pointer which will be set to the blocked status, as in s2n_negotiate
.
@returns A POSIX error signal. The error should be handled as in s2n_negotiate
.