commit | 08633825c0c4924aff342d5ce07373cfbc8f7426 | [log] [tgz] |
---|---|---|
author | Philippe Antoine <contact@catenacyber.fr> | Tue Jun 04 14:03:06 2019 +0200 |
committer | Philippe Antoine <contact@catenacyber.fr> | Fri Jun 21 19:47:27 2019 +0200 |
tree | 08c41c74b3ea9cf4e457d6995bc2885192c2e59e | |
parent | dbc0db9449de1661917ce68d1debe73314131757 [diff] [blame] |
Using custom time
diff --git a/tests/fuzz/common.c b/tests/fuzz/common.c new file mode 100644 index 0000000..450f74b --- /dev/null +++ b/tests/fuzz/common.c
@@ -0,0 +1,14 @@ +#include "common.h" + +mbedtls_time_t dummy_constant_time( mbedtls_time_t* time ) { + (void) time; + return 0x5af2a056; +} + +void dummy_init() { +#if defined(MBEDTLS_PLATFORM_TIME_ALT) + mbedtls_platform_set_time( dummy_constant_time ); +#else + fprintf(stderr, "Warning: fuzzing without constant time\n"); +#endif +}