mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 01:21:05 +00:00
8730610ae0
This commit adds a new function `mbedtls_asn1_traverse_sequence_of()` which traverses an ASN.1 SEQUENCE and calls a user-provided callback for each entry. It allows to put the following constraints on the tags allowed in the SEQUENCE: - A tag mask and mandatory tag value w.r.t. that mask. A non-matching tag leads to an MBEDTLS_ERR_ASN1_UNEXPECTED_TAG error. For example, it the mask if 0xFF, this means that only a single tag will be allowed in the SEQUENCE. - A tag mask and optional tag value w.r.t. that mask. A non-matching tag is silently ignored. The main use for this flexibility is the traversal of the `SubjectAlternativeNames` extension, where some parts of the tag are fixed but some are flexible to indicate which type of name the entry describes. |
||
---|---|---|
.. | ||
mbedtls | ||
tinycrypt | ||
.gitignore | ||
CMakeLists.txt |