mbedtls_x509_string_to_names() function
Convert the certificate DN string \p name into a linked list of mbedtls_x509_name (equivalent to mbedtls_asn1_named_data).
Arguments
head
Address in which to store the pointer to the head of the allocated list of mbedtls_x509_name
name
The string representation of a DN to convert
Return value
0 on success, or a negative error code.
Notes
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().
mbedtls_x509_string_to_names() is called by 3 functions and calls 8 functions:
![]()
mbedtls_x509_string_to_names()
mbedtls_x509_string_to_names() reads 5 variables and writes 3 variables:
![]()
mbedtls_x509_string_to_names()