pub unsafe extern "C" fn s2n_connection_append_protocol_preference(
conn: *mut s2n_connection,
protocol: *const u8,
protocol_len: u8
) -> c_int
Expand description
Appends the provided application protocol to the preference list
The data provided in protocol
parameter will be copied into an internal buffer
@param conn The connection object being updated
@param protocol A pointer to a slice of bytes
@param protocol_len The length of bytes that should be read from protocol
. Note: this value cannot be 0, otherwise an error will be returned.
@returns S2N_SUCCESS on success. S2N_FAILURE on failure