mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 14:15:37 +00:00
Minor source simplification
This commit is contained in:
parent
957b1ee96e
commit
a252af760f
|
@ -723,17 +723,15 @@ static int x509_crt_parse_der_core( x509_crt *crt, const unsigned char *buf,
|
||||||
|
|
||||||
#if !defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
|
#if !defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
|
||||||
if( crt->version == 3 )
|
if( crt->version == 3 )
|
||||||
{
|
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
ret = x509_get_crt_ext( &p, end, crt );
|
ret = x509_get_crt_ext( &p, end, crt );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
x509_crt_free( crt );
|
x509_crt_free( crt );
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
#if !defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if( p != end )
|
if( p != end )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue