mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
tests: Move mbedtls_param_failed() to test common code
This makes the implementation of mbedtls_param_failed() for testing purpose available to programs. Thus removing the ad-hoc implementations in programs. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -319,18 +319,6 @@ static void cipher_examples( void )
|
||||
printf( "\tsuccess!\r\n" );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_CHECK_PARAMS)
|
||||
#include "mbedtls/platform_util.h"
|
||||
void mbedtls_param_failed( const char *failure_condition,
|
||||
const char *file,
|
||||
int line )
|
||||
{
|
||||
printf( "%s:%i: Input param failed - %s\n",
|
||||
file, line, failure_condition );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#endif
|
||||
|
||||
int main( void )
|
||||
{
|
||||
ASSERT( psa_crypto_init( ) == PSA_SUCCESS );
|
||||
|
Reference in New Issue
Block a user