pub unsafe extern "C" fn s2n_connection_set_protocol_preferences(
conn: *mut s2n_connection,
protocols: *const *const c_char,
protocol_count: c_int
) -> c_int
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