Skip to content

Commit 84a6cc3

Browse files
Document one more error code for mbedtls_asn1_get_sequence_of
Also fix a copypasta.
1 parent ac2e6c0 commit 84a6cc3

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
@@ -359,9 +359,12 @@ int mbedtls_asn1_get_bitstring_null( unsigned char **p,
359359
* \return 0 if successful.
360360
* \return #MBEDTLS_ERR_ASN1_LENGTH_MISMATCH if the input contains
361361
* extra data after a valid SEQUENCE OF \p tag.
362+
* \return #MBEDTLS_ERR_ASN1_UNEXPECTED_TAG if the input starts with
363+
* an ASN.1 SEQUENCE in which an element has a tag that
364+
* is different from \p tag.
362365
* \return #MBEDTLS_ERR_ASN1_ALLOC_FAILED if a memory allocation failed.
363366
* \return An ASN.1 error code if the input does not start with
364-
* a valid ASN.1 BIT STRING.
367+
* a valid ASN.1 SEQUENCE.
365368
*/
366369
int mbedtls_asn1_get_sequence_of( unsigned char **p,
367370
const unsigned char *end,

0 commit comments

Comments
 (0)