mbedtls_asn1_store_named_data() function
Create or find a specific named_data entry for writing in a sequence or list based on the OID. If not already in there, a new entry is added to the head of the list. Warning: Destructive behaviour for the val data!
Arguments
list
The pointer to the location of the head of the list to seek through (will be updated in case of a new entry).
oid_len
The size of the OID.
val
The data to store (can be \c NULL if you want to fill it by hand).
val_len
The minimum length of the data buffer needed.
Return value
A pointer to the new / existing entry on success. \c NULL if if there was a memory allocation error.