Remove the mbedtls_printf and FAIL macros

Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
TRodziewicz 2021-06-11 14:02:06 +02:00
parent 9a9609ee06
commit 5bbbb5ed28

View File

@ -19,13 +19,6 @@
#include "common.h"
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
#endif
#if defined(MBEDTLS_TIMING_C)
#include "mbedtls/timing.h"
@ -149,22 +142,4 @@ int mbedtls_timing_get_delay( void *data )
}
#endif /* !MBEDTLS_TIMING_ALT */
#if defined(MBEDTLS_SELF_TEST)
#define FAIL do \
{ \
if( verbose != 0 ) \
{ \
mbedtls_printf( "failed at line %d\n", __LINE__ ); \
mbedtls_printf( " cycles=%lu ratio=%lu millisecs=%lu secs=%lu hardfail=%d a=%lu b=%lu\n", \
cycles, ratio, millisecs, secs, hardfail, \
(unsigned long) a, (unsigned long) b ); \
print_timers( &hires, &ctx ); \
} \
return( 1 ); \
} while( 0 )
#endif /* MBEDTLS_SELF_TEST */
#endif /* MBEDTLS_TIMING_C */