Unify the example programs' termination

This is done to account for platforms, for which we want custom behavior
upon the program termination, hence we call `mbedtls_exit()` instead of
returning from `main()`.
This commit is contained in:
Krzysztof Stachowiak
2019-08-16 06:37:42 +02:00
committed by k-stachowiak
parent beec142010
commit 5e1b195d1f
44 changed files with 102 additions and 101 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ static void exit_usage( const char *name, const char *value )
mbedtls_printf( " option %s: illegal value: %s\n", name, value );
mbedtls_printf( USAGE );
exit( 1 );
mbedtls_exit( 1 );
}
static void get_options( int argc, char *argv[] )