Function s2n_quic::provider::tls::default::ffi::s2n_config_load_system_certs

source ·
pub unsafe extern "C" fn s2n_config_load_system_certs(
    config: *mut s2n_config
) -> i32
Expand description

Loads default system certificates into the trust store.

s2n_config_new_minimal() doesn’t load default system certificates into the config’s trust store by default. If config was created with s2n_config_new_minimal, this function can be used to load system certificates into the trust store.

@note This API will error if called on a config that has already loaded system certificates into its trust store, which includes all configs created with s2n_config_new().

@param config The configuration object being updated @returns S2N_SUCCESS on success. S2N_FAILURE on failure