From 34aada2df5afa941b28e82e5635e7fa8138bc1b7 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 3 Feb 2020 10:39:55 +0000 Subject: [PATCH] Replace use of uint8_t by unsigned char in ASN.1 seq traversal API The rest of the ASN.1 API uses `unsigned char`, too. --- include/mbedtls/asn1.h | 4 ++-- library/asn1parse.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 )