Function s2n_quic::provider::tls::default::ffi::s2n_config_new_minimal

source ·
pub unsafe extern "C" fn s2n_config_new_minimal() -> *mut s2n_config
Expand description

Creates a new s2n_config object with minimal default options.

This function has better performance than s2n_config_new() because it does not load default system certificates into the trust store by default. To add system certificates to this config, call s2n_config_load_system_certs().

The returned config should be freed with s2n_config_free() after it’s no longer in use by any connection.

@returns A new configuration object suitable for configuring connections and associating certs and keys.