platform_time.h
mbedtls/build_info.h
time.h
stdint.h
inttypes.h
platform.h
platform_util.h
ssl.h
ssl_ticket.h
mbedtls/build_info.h
mbedtls/check_config.h
mbedtls/config_adjust_legacy_crypto.h
mbedtls/config_adjust_psa_from_legacy.h
mbedtls/config_adjust_psa_superset_legacy.h
mbedtls/config_adjust_ssl.h
mbedtls/config_adjust_x509.h
mbedtls/config_psa.h
mbedtls/mbedtls_config.h
platform_time.h
psa/crypto_adjust_auto_enabled.h
psa/crypto_adjust_config_dependencies.h
psa/crypto_adjust_config_key_pair_types.h
psa/crypto_adjust_config_synonyms.h
psa/crypto_legacy.h
inttypes.h
limits.h
stdint.h
time.h
aes.h
aria.h
asn1.h
asn1write.h
bignum.h
block_cipher.h
camellia.h
ccm.h
cipher.h
cmac.h
ctr_drbg.h
debug.h
des.h
dhm.h
ecdh.h
ecdsa.h
ecjpake.h
ecp.h
entropy.h
gcm.h
hkdf.h
hmac_drbg.h
md.h
net_sockets.h
nist_kw.h
oid.h
pk.h
pkcs12.h
pkcs5.h
pkcs7.h
platform.h
platform_time.h
platform_util.h
psa_util.h
rsa.h
ssl.h
ssl_cache.h
ssl_ciphersuites.h
ssl_cookie.h
ssl_ticket.h
x509.h
x509_crl.h
x509_crt.h
x509_csr.h
crypto.h
crypto_builtin_composites.h
crypto_builtin_primitives.h
crypto_driver_contexts_composites.h
crypto_driver_contexts_primitives.h
crypto_struct.h
mbedtls_time
time
mbedtls_ms_time
time_t typedef time_t mbedtls_time_t mbedtls_time_t
int64_t typedef int64_t mbedtls_ms_time_t mbedtls_ms_time_t
mbedtls_ms_time_t mbedtls_ms_time_t mbedtls_ms_time (void) mbedtls_ms_time void

Get time in milliseconds.

Monotonically-increasing current time in milliseconds.

Define MBEDTLS_PLATFORM_MS_TIME_ALT to be able to provide an alternative implementation

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.

mbedtls_time

Mbed TLS Platform time abstraction.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */
    #ifndefMBEDTLS_PLATFORM_TIME_H
    #defineMBEDTLS_PLATFORM_TIME_H

    #include"mbedtls/build_info.h"

    #ifdef__cplusplus
    extern"C"{
    #endif

    /*
    *Thetime_tdatatype
    */
    #ifdefined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
    typedefMBEDTLS_PLATFORM_TIME_TYPE_MACROmbedtls_time_t;
    #else
    /*Fortime_t*/
    #include<time.h>
    typedeftime_tmbedtls_time_t;
    #endif/*MBEDTLS_PLATFORM_TIME_TYPE_MACRO*/

    #ifdefined(MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO)
    typedefMBEDTLS_PLATFORM_MS_TIME_TYPE_MACROmbedtls_ms_time_t;
    #else
    #include<stdint.h>
    #include<inttypes.h>
    typedefint64_tmbedtls_ms_time_t;
    #endif/*MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO*/

    mbedtls_ms_time_tmbedtls_ms_time(void);

    /*
    *Thefunctionpointersfortime
    */
    #ifdefined(MBEDTLS_PLATFORM_TIME_ALT)
    externmbedtls_time_t(*mbedtls_time)(mbedtls_time_t*time);

    intmbedtls_platform_set_time(mbedtls_time_t(*time_func)(mbedtls_time_t*time));
    #else
    #ifdefined(MBEDTLS_PLATFORM_TIME_MACRO)
    #definembedtls_timeMBEDTLS_PLATFORM_TIME_MACRO
    #else
    #definembedtls_timetime
    #endif/*MBEDTLS_PLATFORM_TIME_MACRO*/
    #endif/*MBEDTLS_PLATFORM_TIME_ALT*/

    #ifdef__cplusplus
    }
    #endif

    #endif/*platform_time.h*/