Mbed TLS v3.6.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions | Variables
platform_time.h File Reference

Mbed TLS Platform time abstraction. More...

#include "mbedtls/build_info.h"
#include <time.h>
#include <stdint.h>
#include <inttypes.h>
Include dependency graph for platform_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef time_t mbedtls_time_t
 
typedef int64_t mbedtls_ms_time_t
 

Functions

mbedtls_ms_time_t mbedtls_ms_time (void)
 Get time in milliseconds. More...
 
int mbedtls_platform_set_time (mbedtls_time_t(*time_func)(mbedtls_time_t *time))
 Set your own time function pointer. More...
 

Variables

mbedtls_time_t(* mbedtls_time )(mbedtls_time_t *time)
 

Detailed Description

Mbed TLS Platform time abstraction.

Definition in file platform_time.h.

Typedef Documentation

typedef int64_t mbedtls_ms_time_t

Definition at line 35 of file platform_time.h.

typedef time_t mbedtls_time_t

Definition at line 27 of file platform_time.h.

Function Documentation

mbedtls_ms_time_t mbedtls_ms_time ( void  )

Get time in milliseconds.

Returns
Monotonically-increasing current time in milliseconds.
Note
Define MBEDTLS_PLATFORM_MS_TIME_ALT to be able to provide an alternative implementation
Warning
This function returns a monotonically-increasing time value from a start time that will differ from platform to platform, and possibly from run to run of the process.
int mbedtls_platform_set_time ( mbedtls_time_t(*)(mbedtls_time_t *time)  time_func)

Set your own time function pointer.

Parameters
time_functhe time function implementation
Returns
0

Variable Documentation

mbedtls_time_t(* mbedtls_time)(mbedtls_time_t *time)