mbedtls_x509_time_is_future() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_x509_time_is_future()

mbedtls_x509_time_is_future() function

Check a given mbedtls_x509_time against the system time and tell if it's in the future.

Syntax

int mbedtls_x509_time_is_future( const mbedtls_x509_time *from );
Implemented in x509.c:997

Arguments

from

mbedtls_x509_time to check

Return value

1 if the given time is in the future or an error occured, 0 otherwise.

Notes

Intended usage is "if( is_future( valid_from ) ) ERROR". Hence the return value of 1 if on internal errors.

References

LocationReferrerText
x509.c:997
int mbedtls_x509_time_is_future( const mbedtls_x509_time *from )
x509.h:270
int mbedtls_x509_time_is_future( const mbedtls_x509_time *from );
x509_crt.c:2079x509_crt_find_parent_in()
mbedtls_x509_time_is_future( &parent->valid_from ) )
x509_crt.c:2314x509_crt_verify_chain()
if( mbedtls_x509_time_is_future( &child->valid_from ) )

Call Tree

Functions calling mbedtls_x509_time_is_future()
mbedtls_x509_time_is_future()
Data read by mbedtls_x509_time_is_future()
mbedtls_x509_time_is_future()