You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a compiler or platform (such as the Arm C Compiler) doesn't provide gmtime() or gmtime_r(), we now allow users integrating the library to provide their own implementation of either by implementing the function mbedtls_platform_gmtime_r() which is an abstraction of gmtime_r(). This feature was introduced in PR #1927.
Therefore it doesn't matter if gmtime() isn't supported on any given platform - but it is however the responsibility of those integrating Mbed TLS with the platform to provide their own implementation.
And to be clear - the Mbed TLS project has no plans to provide it's own implementation of gmtime() or gmtime_r().
Description
Bug
OS
Mbed OS
The Arm C Compiler does not support
gmtime()
as stated in the documentation. Yet, Mbed TLS will build with it, but calls togmtime()
will return aNULL
- thereforeMBEDTLS_HAVE_TIME
can't work with ARM C Compiler.We probably need a check in
check_config.h
to detect the ARM C Compiler and to issue an error ifMBEDTLS_HAVE_TIME
is enabled.The text was updated successfully, but these errors were encountered: