pub unsafe extern "C" fn s2n_psk_set_early_data_context(
    psk: *mut s2n_psk,
    context: *const u8,
    size: u16
) -> c_int
Expand description

Sets the optional user early data context associated with the given pre-shared key.

The early data context is passed to the s2n_early_data_cb callback to help decide whether to accept or reject early data.

@param psk A pointer to the pre-shared key, created with s2n_external_psk_new. @param context A pointer to the associated user context data. This data will be copied. @param size The size of the data to read from the context pointer. @return A POSIX error signal. If successful, the context was set.