Found 13 other functions taking a
mbedtls_asn1_sequence
argument:
Free a heap-allocated linked list presentation of an ASN.1 sequence, including the first element. There are two common ways to manage the memory used for the representation of a parsed ASN.1 sequence: - Allocate a head node `mbedtls_asn1_sequence *head` with mbedtls_calloc(). Pass this node as the `cur` argument to mbedtls_asn1_get_sequence_of(). When you have finished processing the sequence, call mbedtls_asn1_sequence_free() on `head`. - Allocate a head node `mbedtls_asn1_sequence *head` in any manner, for example on the stack. Make sure that `head->next == NULL`. Pass `head` as the `cur` argument to mbedtls_asn1_get_sequence_of(). When you have finished processing the sequence, call mbedtls_asn1_sequence_free() on `head->cur`, then free `head` itself in the appropriate manner.
Parses and splits an ASN.1 "SEQUENCE OF ". Updates the pointer to immediately behind the full sequence tag. This function allocates memory for the sequence elements. You can free the allocated memory with mbedtls_asn1_sequence_free().
Set the Extended Key Usage Extension (e.g. MBEDTLS_OID_SERVER_AUTH)