programs/fuzz: Remove superfluous MBEDTLS_HAVE_TIME

MBEDTLS_HAVE_TIME_ALT implies MBEDTLS_HAVE_TIME, so an extra
check for MBEDTLS_HAVE_TIME is not needed.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2021-11-29 18:57:10 +00:00 committed by Andrzej Kurek
parent 4e0cc40d0f
commit ca53459bed

View file

@ -15,7 +15,7 @@ mbedtls_time_t dummy_constant_time( mbedtls_time_t* time )
void dummy_init() void dummy_init()
{ {
#if (defined(MBEDTLS_HAVE_TIME) && defined(MBEDTLS_PLATFORM_TIME_ALT)) #if defined(MBEDTLS_PLATFORM_TIME_ALT)
mbedtls_platform_set_time( dummy_constant_time ); mbedtls_platform_set_time( dummy_constant_time );
#else #else
fprintf(stderr, "Warning: fuzzing without constant time\n"); fprintf(stderr, "Warning: fuzzing without constant time\n");