Function s2n_quic_tls::ffi::s2n_config_append_protocol_preference
source · pub unsafe extern "C" fn s2n_config_append_protocol_preference(
config: *mut s2n_config,
protocol: *const u8,
protocol_len: u8
) -> i32
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 config The configuration object being updated
@param protocol A pointer to a byte array value
@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.