mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Start introducing test_cas NULL-terminated list
This commit is contained in:
@ -1327,8 +1327,14 @@ int main( int argc, char *argv[] )
|
||||
else
|
||||
#endif
|
||||
#if defined(POLARSSL_CERTS_C)
|
||||
ret = x509_crt_parse( &cacert, (const unsigned char *) test_ca_list,
|
||||
test_ca_list_len );
|
||||
for( i = 0; test_cas[i] != NULL; i++ )
|
||||
{
|
||||
ret = x509_crt_parse( &cacert,
|
||||
(const unsigned char *) test_cas[i],
|
||||
test_cas_len[i] );
|
||||
if( ret != 0 )
|
||||
break;
|
||||
}
|
||||
#else
|
||||
{
|
||||
ret = 1;
|
||||
|
Reference in New Issue
Block a user