Philippe Antoine | 0863382 | 2019-06-04 14:03:06 +0200 | [diff] [blame^] | 1 | #include "common.h" |
2 | |||||
3 | mbedtls_time_t dummy_constant_time( mbedtls_time_t* time ) { | ||||
4 | (void) time; | ||||
5 | return 0x5af2a056; | ||||
6 | } | ||||
7 | |||||
8 | void dummy_init() { | ||||
9 | #if defined(MBEDTLS_PLATFORM_TIME_ALT) | ||||
10 | mbedtls_platform_set_time( dummy_constant_time ); | ||||
11 | #else | ||||
12 | fprintf(stderr, "Warning: fuzzing without constant time\n"); | ||||
13 | #endif | ||||
14 | } |