mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 20:45:37 +01:00
- Minor code cleanup
This commit is contained in:
parent
fae618fa8b
commit
2a1c5f5382
@ -289,7 +289,10 @@ static int x509_get_version( unsigned char **p,
|
|||||||
ASN1_CONTEXT_SPECIFIC | ASN1_CONSTRUCTED | 0 ) ) != 0 )
|
ASN1_CONTEXT_SPECIFIC | ASN1_CONSTRUCTED | 0 ) ) != 0 )
|
||||||
{
|
{
|
||||||
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
|
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
|
||||||
return( *ver = 0 );
|
{
|
||||||
|
*ver = 0;
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
@ -318,7 +321,10 @@ static int x509_crl_get_version( unsigned char **p,
|
|||||||
if( ( ret = asn1_get_int( p, end, ver ) ) != 0 )
|
if( ( ret = asn1_get_int( p, end, ver ) ) != 0 )
|
||||||
{
|
{
|
||||||
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
|
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
|
||||||
return( *ver = 0 );
|
{
|
||||||
|
*ver = 0;
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
return( POLARSSL_ERR_X509_CERT_INVALID_VERSION + ret );
|
return( POLARSSL_ERR_X509_CERT_INVALID_VERSION + ret );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user