diff --git a/src/internal.c b/src/internal.c index c46235b42..c27b072f5 100755 --- a/src/internal.c +++ b/src/internal.c @@ -3355,7 +3355,7 @@ ProtocolVersion MakeDTLSv1_2(void) word32 LowResTimer(void) { - return (word32)(uTaskerSystemTick / TICK_RESOLUTION); + return (word32)(uTaskerSystemTick / TICK_RESOLUTION); } #elif defined(USER_TICKS) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 527b829cd..5664792a7 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -382,6 +382,13 @@ #define CUSTOM_RAND_GENERATE fnRandom #define CUSTOM_RAND_TYPE unsigned short + /* user needs to define XTIME to function that provides + * seconds since Unix epoch */ + #ifndef XTIME + #error XTIME must be defined in wolfSSL settings.h + /* #define XTIME fnSecondsSinceEpoch */ + #endif + /* use uTasker std library replacements where available */ #define STRING_USER #define XMEMCPY(d,s,l) uMemcpy((d),(s),(l))