mbedtls_asn1_get_sequence_of() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsReferencesCall TreeData Use

Return value

0 if successful. #MBEDTLS_ERR_ASN1_LENGTH_MISMATCH if the input contains extra data after a valid SEQUENCE OF \p tag. #MBEDTLS_ERR_ASN1_UNEXPECTED_TAG if the input starts with an ASN.1 SEQUENCE in which an element has a tag that is different from \p tag. #MBEDTLS_ERR_ASN1_ALLOC_FAILED if a memory allocation failed. An ASN.1 error code if the input does not start with a valid ASN.1 SEQUENCE.

Notes

On error, this function may return a partial list in \p cur. You must set `cur->next = NULL` before calling this function! Otherwise it is impossible to distinguish a previously non-null pointer from a pointer to an object allocated by this function. If the sequence is empty, this function does not modify \c *cur. If the sequence is valid and non-empty, this function sets `cur->buf.tag` to \p tag. This allows callers to distinguish between an empty sequence and a one-element sequence.

References