From dfb949bb4e38c5c461171f8a52da0935fd81cc97 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 23 Aug 2019 15:22:25 +0100 Subject: [PATCH] Fixup: Use TC ECC type instead of uint32_t during pubkey parsing Using explicit enumerated types avoids type confusion. --- library/pkparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/pkparse.c b/library/pkparse.c index a3184bfbd..d03695b63 100644 --- a/library/pkparse.c +++ b/library/pkparse.c @@ -182,7 +182,7 @@ int mbedtls_pk_parse_public_keyfile( mbedtls_pk_context *ctx, const char *path ) #if defined(MBEDTLS_USE_TINYCRYPT) static int pk_use_ecparams( const mbedtls_asn1_buf *params ) { - uint32_t grp_id; + mbedtls_uecc_group_id grp_id; if( params->tag == MBEDTLS_ASN1_OID ) {