mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 14:45:32 +00:00
Test the return value in the OID->X.509 map functions
This commit is contained in:
parent
5ed7fff8ce
commit
3ded1c81b1
|
@ -28,6 +28,7 @@ void oid_get_certificate_policies( data_t *oid, char *result_str )
|
|||
}
|
||||
else
|
||||
{
|
||||
TEST_ASSERT( ret == 0 );
|
||||
TEST_ASSERT( strcmp( ( char* )desc, result_str ) == 0 );
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +52,7 @@ void oid_get_extended_key_usage( data_t *oid, char *result_str )
|
|||
}
|
||||
else
|
||||
{
|
||||
TEST_ASSERT( ret == 0 );
|
||||
TEST_ASSERT( strcmp( ( char * )desc, result_str ) == 0 );
|
||||
}
|
||||
}
|
||||
|
@ -74,6 +76,7 @@ void oid_get_x509_extension( data_t *oid, int exp_type )
|
|||
}
|
||||
else
|
||||
{
|
||||
TEST_ASSERT( ret == 0 );
|
||||
TEST_ASSERT( ext_type == exp_type );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue