mbedtls_platform_gmtime_r() function
Platform-specific implementation of gmtime_r() The function is a thread-safe abstraction that behaves similarly to the gmtime_r() function from Unix/POSIX. Mbed TLS will try to identify the underlying platform and make use of an appropriate underlying implementation (e.g. gmtime_r() for POSIX and gmtime_s() for Windows). If this is not possible, then gmtime() will be used. In this case, calls from the library to gmtime() will be guarded by the mutex mbedtls_threading_gmtime_mutex if MBEDTLS_THREADING_C is enabled. It is recommended that calls from outside the library are also guarded by this mutex. If MBEDTLS_PLATFORM_GMTIME_R_ALT is defined, then Mbed TLS will unconditionally use the alternative implementation for mbedtls_platform_gmtime_r() supplied by the user at compile time.
Arguments
tt
Pointer to an object containing time (in seconds) since the epoch to be converted
tm_buf
Pointer to an object where the results will be stored
Return value
Pointer to an object of type struct tm on success, otherwise NULL
mbedtls_platform_gmtime_r() is called by 1 function:
![]()
mbedtls_platform_gmtime_r()
mbedtls_platform_gmtime_r():
![]()
mbedtls_platform_gmtime_r()