mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 10:35:12 +00:00
Fixup: Use TC ECC type instead of uint32_t during pubkey parsing
Using explicit enumerated types avoids type confusion.
This commit is contained in:
parent
28332a5642
commit
dfb949bb4e
|
@ -182,7 +182,7 @@ int mbedtls_pk_parse_public_keyfile( mbedtls_pk_context *ctx, const char *path )
|
||||||
#if defined(MBEDTLS_USE_TINYCRYPT)
|
#if defined(MBEDTLS_USE_TINYCRYPT)
|
||||||
static int pk_use_ecparams( const mbedtls_asn1_buf *params )
|
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 )
|
if( params->tag == MBEDTLS_ASN1_OID )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue