Function esp_idf_svc::hal::sys::mbedtls_x509_time_is_past
source · pub unsafe extern "C" fn mbedtls_x509_time_is_past(
to: *const mbedtls_x509_time,
) -> i32
Expand description
\brief Check a given mbedtls_x509_time against the system time and tell if it’s in the past.
\note Intended usage is “if( is_past( valid_to ) ) ERROR”. Hence the return value of 1 if on internal errors.
\param to mbedtls_x509_time to check
\return 1 if the given time is in the past or an error occurred, 0 otherwise.