mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 10:04:14 +01:00
Merge pull request #4903 from kennethsoerensen/pkparse-warning_2.x
Backport 2.x: Remove compiler warning if only MBEDTLS_PK_PARSE_C is d…
This commit is contained in:
commit
9be53ffd10
@ -1380,8 +1380,11 @@ int mbedtls_pk_parse_key( mbedtls_pk_context *pk,
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */
|
#endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */
|
||||||
|
|
||||||
if( ( ret = pk_parse_key_pkcs8_unencrypted_der( pk, key, keylen ) ) == 0 )
|
ret = pk_parse_key_pkcs8_unencrypted_der( pk, key, keylen );
|
||||||
|
if( ret == 0 )
|
||||||
|
{
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
mbedtls_pk_free( pk );
|
mbedtls_pk_free( pk );
|
||||||
mbedtls_pk_init( pk );
|
mbedtls_pk_init( pk );
|
||||||
|
Loading…
Reference in New Issue
Block a user