mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-22 04:20:59 +00:00
Refactor macro-spanning if in ssl_client2.c
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
91e20a0580
commit
f160ef1dd1
@ -1732,15 +1732,17 @@ 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 */
|
||||||
for( i = 0; mbedtls_test_cas_der[i] != NULL; i++ )
|
if( ret == 0 )
|
||||||
{
|
{
|
||||||
ret = mbedtls_x509_crt_parse_der( &cacert,
|
for( i = 0; mbedtls_test_cas_der[i] != NULL; i++ )
|
||||||
(const unsigned char *) mbedtls_test_cas_der[i],
|
{
|
||||||
mbedtls_test_cas_der_len[i] );
|
ret = mbedtls_x509_crt_parse_der( &cacert,
|
||||||
if( ret != 0 )
|
(const unsigned char *) mbedtls_test_cas_der[i],
|
||||||
break;
|
mbedtls_test_cas_der_len[i] );
|
||||||
|
if( ret != 0 )
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( ret < 0 )
|
if( ret < 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user