mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 22:48:21 +00:00
- Adapted to compile without POLARSSL_SELF_TEST defined
This commit is contained in:
parent
e22d7030c6
commit
135b98ef69
1 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
int ret, v;
|
int ret = 0, v;
|
||||||
|
|
||||||
if( argc == 2 && strcmp( argv[1], "-quiet" ) == 0 )
|
if( argc == 2 && strcmp( argv[1], "-quiet" ) == 0 )
|
||||||
v = 0;
|
v = 0;
|
||||||
|
@ -60,6 +60,8 @@ int main( int argc, char *argv[] )
|
||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SELF_TEST)
|
||||||
|
|
||||||
#if defined(POLARSSL_MD2_C)
|
#if defined(POLARSSL_MD2_C)
|
||||||
if( ( ret = md2_self_test( v ) ) != 0 )
|
if( ( ret = md2_self_test( v ) ) != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
|
@ -135,6 +137,10 @@ int main( int argc, char *argv[] )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
printf( " POLARSSL_SELF_TEST not defined.\n" );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( v != 0 )
|
if( v != 0 )
|
||||||
{
|
{
|
||||||
printf( " [ All tests passed ]\n\n" );
|
printf( " [ All tests passed ]\n\n" );
|
||||||
|
|
Loading…
Reference in a new issue