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

Adds a PEM to the trust store. This will allocate memory, and load PEM into the Trust Store. Note that the trust store will be initialized with the common locations for the host operating system by default. To completely override those locations, 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