Skip to content

Commit 5ffdb9f

Browse files
authored
Merge pull request wolfSSL#10295 from lealem47/hal_xtime
Allow custom time functions on STM32
2 parents 7b53303 + d7942f8 commit 5ffdb9f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,8 +2289,10 @@ extern void uITRON4_free(void *p) ;
22892289
#ifndef STM32_HAL_TIMEOUT
22902290
#define STM32_HAL_TIMEOUT 0xFF
22912291
#endif
2292-
/* bypass certificate date checking, due to lack of properly configured RTC source */
2293-
#ifndef HAL_RTC_MODULE_ENABLED
2292+
/* bypass certificate date checking, due to lack of properly
2293+
* configured RTC source */
2294+
#if !defined(HAL_RTC_MODULE_ENABLED) && !defined(XTIME) && \
2295+
!defined(USER_TIME)
22942296
#define NO_ASN_TIME
22952297
#endif
22962298

0 commit comments

Comments
 (0)