Skip to content

Commit b5c74a5

Browse files
gilles-peskine-armHanno Becker
authored andcommitted
Document one more error code for mbedtls_asn1_get_sequence_of
Also fix a copypasta.
1 parent 12ae27d commit b5c74a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/mbedtls/asn1.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,12 @@ int mbedtls_asn1_get_bitstring_null( unsigned char **p,
379379
* \return 0 if successful.
380380
* \return #MBEDTLS_ERR_ASN1_LENGTH_MISMATCH if the input contains
381381
* extra data after a valid SEQUENCE OF \p tag.
382+
* \return #MBEDTLS_ERR_ASN1_UNEXPECTED_TAG if the input starts with
383+
* an ASN.1 SEQUENCE in which an element has a tag that
384+
* is different from \p tag.
382385
* \return #MBEDTLS_ERR_ASN1_ALLOC_FAILED if a memory allocation failed.
383386
* \return An ASN.1 error code if the input does not start with
384-
* a valid ASN.1 BIT STRING.
387+
* a valid ASN.1 SEQUENCE.
385388
*/
386389
int mbedtls_asn1_get_sequence_of( unsigned char **p,
387390
const unsigned char *end,

0 commit comments

Comments
 (0)