summaryrefslogtreecommitdiff
path: root/examples/openssl/hf_ssl_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/openssl/hf_ssl_lib.h')
-rw-r--r--examples/openssl/hf_ssl_lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/openssl/hf_ssl_lib.h b/examples/openssl/hf_ssl_lib.h
index 1ae97995..9d8c7e38 100644
--- a/examples/openssl/hf_ssl_lib.h
+++ b/examples/openssl/hf_ssl_lib.h
@@ -24,6 +24,12 @@ extern "C" {
#define HF_SSL_IS_OPENSSL
#endif
+#define FUZZTIME 1485898104
+time_t __wrap_time(time_t* t) {
+ if (t != NULL) *t = FUZZTIME;
+ return FUZZTIME;
+}
+
#if defined(HF_SSL_IS_BORINGSSL)
static int hf_rnd(unsigned char* buf, size_t num)
#else /* defined(HF_SSL_IS_BORINGSSL) */