pub unsafe extern "C" fn s2n_config_send_max_fragment_length(
    config: *mut s2n_config,
    mfl_code: u32
) -> i32
Expand description

Allows the caller to set a TLS Maximum Fragment Length extension that will be used to fragment outgoing messages. s2n-tls currently does not reject fragments larger than the configured maximum when in server mode. The TLS negotiated maximum fragment length overrides the preference set by the s2n_connection_prefer_throughput and s2n_connection_prefer_low_latency.

@note Some TLS implementations do not respect their peer’s max fragment length extension.

@param config The configuration object being updated @param mfl_code The selected MFL size @returns S2N_SUCCESS on success. S2N_FAILURE on failure