pub unsafe extern "C" fn s2n_config_set_verification_ca_location(
config: *mut s2n_config,
ca_pem_filename: *const c_char,
ca_dir: *const c_char
) -> c_int
Expand description
Adds to the trust store from a CA file or directory containing trusted certificates.
When configs are created with s2n_config_new()
, the trust store is initialized with default
system certificates. To completely override these certificates, call
s2n_config_wipe_trust_store()
before calling this function.
@note The trust store will be initialized with the common locations for the host operating system by default. @param config The configuration object being updated @param ca_pem_filename A string for the file path of the CA PEM file. @param ca_dir A string for the directory of the CA PEM files. @returns S2N_SUCCESS on success. S2N_FAILURE on failure