Function s2n_quic_tls::ffi::s2n_connection_set_protocol_preferences
source · pub unsafe extern "C" fn s2n_connection_set_protocol_preferences(
conn: *mut s2n_connection,
protocols: *const *const i8,
protocol_count: i32
) -> i32
Expand description
Sets the protocol preference override for the s2n_connection. Calling this function is not necessary unless you want to set the protocol preferences on the connection to something different than what is in the s2n_config.
@param conn The connection object being updated @param protocols A pointer to an array of protocol strings @param protocol_count The number of protocols contained in protocols @returns S2N_SUCCESS on success. S2N_FAILURE on failure