Function s2n_quic::provider::tls::default::ffi::s2n_connection_set_psk_mode

source ·
pub unsafe extern "C" fn s2n_connection_set_psk_mode(
    conn: *mut s2n_connection,
    mode: u32
) -> i32
Expand description

Sets the PSK mode on the s2n connection object. The supported PSK modes are listed in the enum s2n_psk_mode above. This API overrides the PSK mode set on config for this connection.

@param conn A pointer to the s2n_connection object being updated. @param mode The PSK mode to be set.