Function SecTrustSetVerifyDate

Source
pub unsafe extern "C-unwind" fn SecTrustSetVerifyDate(
    trust: &SecTrust,
    verify_date: &CFDate,
) -> i32
Available on crate feature SecTrust only.
Expand description

Set the date for which the trust should be verified.

Parameter trust: A reference to a trust object.

Parameter verifyDate: The date for which to verify trust.

Returns: A result code. See “Security Error Codes” (SecBase.h).

This function lets you evaluate certificate validity for a given date (for example, to determine if a signature was valid on the date it was signed, even if the certificate has since expired.) If this function is not called, the time at which SecTrustEvaluate() is called is used implicitly as the verification time.