pub unsafe extern "C" fn s2n_config_add_pem_to_trust_store(
    config: *mut s2n_config,
    pem: *const i8
) -> i32
Expand description

Adds a PEM to the trust store. This will allocate memory, and load pem into the trust store.

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.

@param config The configuration object being updated @param pem The string value of the PEM certificate. @returns S2N_SUCCESS on success. S2N_FAILURE on failure