Function esp_idf_svc::hal::sys::mbedtls_x509_string_to_names

source ยท
pub unsafe extern "C" fn mbedtls_x509_string_to_names(
    head: *mut *mut mbedtls_asn1_named_data,
    name: *const i8,
) -> i32
Expand description

\brief Convert the certificate DN string \p name into a linked list of mbedtls_x509_name (equivalent to mbedtls_asn1_named_data).

\note This function allocates a linked list, and places the head pointer in \p head. This list must later be freed by a call to mbedtls_asn1_free_named_data_list().

\param[out] head Address in which to store the pointer to the head of the allocated list of mbedtls_x509_name \param[in] name The string representation of a DN to convert

\return 0 on success, or a negative error code.