Function s2n_tls_sys::s2n_config_wipe_trust_store
source · pub unsafe extern "C" fn s2n_config_wipe_trust_store(
config: *mut s2n_config
) -> c_int
Expand description
Clears the trust store of all certificates.
When configs are created with s2n_config_new()
, the trust store is initialized with default
system certificates. To completely override these certificates, call this function before
functions like s2n_config_set_verification_ca_location()
or
s2n_config_add_pem_to_trust_store()
.
@param config The configuration object being updated @returns S2N_SUCCESS on success. S2N_FAILURE on failure