mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 03:32:39 +00:00
15 lines
318 B
C
15 lines
318 B
C
#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
|
|
}
|