mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 19:25:39 +00:00
Comment on return value type in two internal X.509 functions
This commit is contained in:
parent
be0cf9b1f6
commit
e452add01e
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue