mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
fix github issue #56, have tls layer use time_overrides for ticks if available and not using explicit user_ticks
This commit is contained in:
@@ -2362,6 +2362,21 @@ ProtocolVersion MakeDTLSv1_2(void)
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
#endif
|
#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 */
|
#else /* !USE_WINDOWS_API && !HAVE_RTP_SYS && !MICRIUM && !USER_TICKS */
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
Reference in New Issue
Block a user