mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-09 23:26:29 -04:00
Fix macro-spanning if in x509_crt.c
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
04020abfae
commit
ab6175130b
@ -1258,9 +1258,12 @@ static int x509_crt_parse_der_core( mbedtls_x509_crt *crt,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int extensions_allowed = 1;
|
||||||
#if !defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
|
#if !defined(MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3)
|
||||||
if( crt->version == 3 )
|
if( crt->version != 3 )
|
||||||
|
extensions_allowed = 0;
|
||||||
#endif
|
#endif
|
||||||
|
if( extensions_allowed )
|
||||||
{
|
{
|
||||||
ret = x509_get_crt_ext( &p, end, crt, cb, p_ctx );
|
ret = x509_get_crt_ext( &p, end, crt, cb, p_ctx );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user