mbedtls_x509_time_is_past() function
Check a given mbedtls_x509_time against the system time and tell if it's in the past.
Arguments
to
mbedtls_x509_time to check
Return value
1 if the given time is in the past or an error occurred, 0 otherwise.
Notes
Intended usage is "if( is_past( valid_to ) ) ERROR". Hence the return value of 1 if on internal errors.
![]()
int mbedtls_x509_time_is_past(const mbedtls_x509_time *to)
mbedtls_x509_time_is_past() is called by 1 function and calls 2 functions:
![]()
mbedtls_x509_time_is_past()
mbedtls_x509_time_is_past():
![]()
mbedtls_x509_time_is_past()