Function esp_idf_svc::hal::sys::mbedtls_x509write_crt_set_validity
source · pub unsafe extern "C" fn mbedtls_x509write_crt_set_validity(
ctx: *mut mbedtls_x509write_cert,
not_before: *const i8,
not_after: *const i8,
) -> i32
Expand description
\brief Set the validity period for a Certificate Timestamps should be in string format for UTC timezone i.e. “YYYYMMDDhhmmss” e.g. “20131231235959” for December 31st 2013 at 23:59:59
\param ctx CRT context to use \param not_before not_before timestamp \param not_after not_after timestamp
\return 0 if timestamp was parsed successfully, or a specific error code