mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-11 20:42:22 +08:00
Refactor macro-spanning if in ssl_server2.c
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
f160ef1dd1
commit
3f44e5b11a
@ -2537,8 +2537,9 @@ int main( int argc, char *argv[] )
|
|||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if( ret == 0 )
|
|
||||||
#endif /* MBEDTLS_PEM_PARSE_C */
|
#endif /* MBEDTLS_PEM_PARSE_C */
|
||||||
|
if( ret == 0 )
|
||||||
|
{
|
||||||
for( i = 0; mbedtls_test_cas_der[i] != NULL; i++ )
|
for( i = 0; mbedtls_test_cas_der[i] != NULL; i++ )
|
||||||
{
|
{
|
||||||
ret = mbedtls_x509_crt_parse_der( &cacert,
|
ret = mbedtls_x509_crt_parse_der( &cacert,
|
||||||
@ -2548,6 +2549,7 @@ int main( int argc, char *argv[] )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if( ret < 0 )
|
if( ret < 0 )
|
||||||
{
|
{
|
||||||
mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", (unsigned int) -ret );
|
mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", (unsigned int) -ret );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user