Comment on return value type in two internal X.509 functions

This commit is contained in:
Hanno Becker 2019-05-02 13:19:34 +01:00
parent be0cf9b1f6
commit e452add01e

View file

@ -348,6 +348,8 @@ int mbedtls_x509_get_rsassa_pss_params( const mbedtls_x509_buf *params,
* AttributeType ::= OBJECT IDENTIFIER
*
* AttributeValue ::= ANY DEFINED BY AttributeType
*
* NOTE: This function returns an ASN.1 low-level error code.
*/
static int x509_get_attr_type_value( unsigned char **p,
const unsigned char *end,
@ -423,6 +425,8 @@ exit:
* For the general case we still use a flat list, but we mark elements of the
* same set so that they are "merged" together in the functions that consume
* this list, eg mbedtls_x509_dn_gets().
*
* NOTE: This function returns an ASN.1 low-level error code.
*/
static int x509_set_sequence_iterate( unsigned char **p,
unsigned char const **end_set,
@ -446,6 +450,7 @@ static int x509_set_sequence_iterate( unsigned char **p,
*end_set = *p + set_len;
}
/* x509_get_attr_type_value() returns ASN.1 low-level error codes. */
ret = x509_get_attr_type_value( p, *end_set, oid, val );
exit: