pub unsafe extern "C" fn s2n_connection_set_server_early_data_context(
conn: *mut s2n_connection,
context: *const u8,
context_size: u16
) -> c_int
Expand description
Sets the user context associated with early data on a server.
This context is passed to the s2n_early_data_cb
callback to help decide whether to accept or reject early data.
Unlike most contexts, the early data context is a byte buffer instead of a void pointer. This is because we need to serialize the context into session tickets.
This API is intended for use with session resumption, and will not affect pre-shared keys.
@param conn A pointer to the connection
@param context A pointer to the user context data. This data will be copied.
@param context_size The size of the data to read from the context
pointer.
@return A POSIX error signal. If successful, the context was updated.