Function s2n_tls_sys::s2n_config_new

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

Creates a new s2n_config object. This object can (and should) be associated with many connection objects.

The returned config will be initialized with default system certificates in its trust store.

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.