diff --git a/include/mbedtls/asn1.h b/include/mbedtls/asn1.h index 07fbe56a2..33b30041a 100644 --- a/include/mbedtls/asn1.h +++ b/include/mbedtls/asn1.h @@ -501,8 +501,8 @@ void mbedtls_asn1_sequence_free( mbedtls_asn1_sequence *seq ); int mbedtls_asn1_traverse_sequence_of( unsigned char **p, const unsigned char *end, - uint8_t tag_must_mask, uint8_t tag_must_val, - uint8_t tag_may_mask, uint8_t tag_may_val, + unsigned char tag_must_mask, unsigned char tag_must_val, + unsigned char tag_may_mask, unsigned char tag_may_val, int (*cb)( void *ctx, int tag, unsigned char* start, size_t len ), void *ctx ); diff --git a/library/asn1parse.c b/library/asn1parse.c index 58fe9efd6..34c660775 100644 --- a/library/asn1parse.c +++ b/library/asn1parse.c @@ -254,8 +254,8 @@ int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end, int mbedtls_asn1_traverse_sequence_of( unsigned char **p, const unsigned char *end, - uint8_t tag_must_mask, uint8_t tag_must_val, - uint8_t tag_may_mask, uint8_t tag_may_val, + unsigned char tag_must_mask, unsigned char tag_must_val, + unsigned char tag_may_mask, unsigned char tag_may_val, int (*cb)( void *ctx, int tag, unsigned char *start, size_t len ), void *ctx )