mbedtls_x509_time_is_future() function
Check a given mbedtls_x509_time against the system time and tell if it's in the future.
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.