From 5319eb8f38f8da65eb4133ddf3acb090f7d0a155 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 31 Mar 2015 13:41:10 -0700 Subject: [PATCH] fix github issue #56, have tls layer use time_overrides for ticks if available and not using explicit user_ticks --- src/internal.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/internal.c b/src/internal.c index 1b1afe8b4..89dc78db4 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2362,6 +2362,21 @@ ProtocolVersion MakeDTLSv1_2(void) */ } #endif + +#elif defined(TIME_OVERRIDES) + + /* use same asn time overrides unless user wants tick override above */ + + #ifndef HAVE_TIME_T_TYPE + typedef long time_t; + #endif + extern time_t XTIME(time_t * timer); + + word32 LowResTimer(void) + { + return (word32) XTIME(0); + } + #else /* !USE_WINDOWS_API && !HAVE_RTP_SYS && !MICRIUM && !USER_TICKS */ #include