Function esp_idf_svc::hal::sys::mbedtls_x509_crt_parse_path

source ยท
pub unsafe extern "C" fn mbedtls_x509_crt_parse_path(
    chain: *mut mbedtls_x509_crt,
    path: *const i8,
) -> i32
Expand description

\brief Load one or more certificate files from a path 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.

\param chain points to the start of the chain \param path directory / folder to read the certificate files from

\return 0 if all certificates parsed successfully, a positive number if partly successful or a specific X509 or PEM error code