Function esp_idf_sys::mbedtls_x509_crt_parse_file
source ยท pub unsafe extern "C" fn mbedtls_x509_crt_parse_file(
chain: *mut mbedtls_x509_crt,
path: *const c_char,
) -> c_int
Expand description
\brief Load one or more certificates and add them to the chained list. Parses permissively. If some certificates can be parsed, the result is the number of failed certificates it encountered. If none complete correctly, the first error is returned.
\note If #MBEDTLS_USE_PSA_CRYPTO is enabled, the PSA crypto subsystem must have been initialized by calling psa_crypto_init() before calling this function.
\param chain points to the start of the chain \param path filename to read the certificates from
\return 0 if all certificates parsed successfully, a positive number if partly successful or a specific X509 or PEM error code