From 72fc023d388d6cd470a6bf7355c26ccd0ab373d7 Mon Sep 17 00:00:00 2001 From: tim-weller-wolfssl Date: Wed, 12 Apr 2023 12:30:42 -0500 Subject: [PATCH] Update wolfCrypt porting layer for Mynewt OS to provide declarations needed to remove build warning for time API used for XTIME --- wolfssl/wolfcrypt/wc_port.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index 454088823..c1731a931 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -916,6 +916,8 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void); #elif defined(WOLFSSL_APACHE_MYNEWT) #include "os/os_time.h" + typedef long time_t; + extern time_t mynewt_time(time_t* timer); #define XTIME(t1) mynewt_time((t1)) #define WOLFSSL_GMTIME #define USE_WOLF_TM