mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 06:18:49 +00:00
Use both applicable error codes and a proper coding style
This commit is contained in:
parent
b2b29d5259
commit
7b2e85dd7c
1 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,8 @@ static int pk_get_ecparams( unsigned char **p, const unsigned char *end,
|
|||
int ret;
|
||||
|
||||
if ( end - *p < 1 )
|
||||
return MBEDTLS_ERR_ASN1_OUT_OF_DATA;
|
||||
return( MBEDTLS_ERR_PK_KEY_INVALID_FORMAT +
|
||||
MBEDTLS_ERR_ASN1_OUT_OF_DATA );
|
||||
|
||||
/* Tag may be either OID or SEQUENCE */
|
||||
params->tag = **p;
|
||||
|
|
Loading…
Reference in a new issue