SecTrustGetVerifyTime(_:)
Gets the absolute time against which the certificates in a trust management object are verified.
Declaration
func SecTrustGetVerifyTime(_ trust: SecTrust) -> CFAbsoluteTimeParameters
- trust:
The trust management object whose verification time you want to get. A trust management object includes one or more certificates plus the policy or policies to be used in evaluating trust. Use the Sectrustcreatewithcertificates(_:_:_:) function to create a trust management object.
Return Value
The absolute time at which the certificates should be checked for validity.
Discussion
This function returns the absolute time returned by:
the CFDateGetAbsoluteTime(_:) function for the date passed in to the SecTrustSetVerifyDate(_:_:) function, if that was called, or
the last value returned by the SecTrustGetVerifyTime(_:) function, if it was called before, or
the value returned by the CFAbsoluteTimeGetCurrent() function if neither SecTrustSetVerifyDate(_:_:) nor SecTrustGetVerifyTime(_:) were ever called.
It is safe to call this function concurrently on two or more threads as long as it is not used to get a value from a trust management object that is simultaneously being changed by another function. For example, you can call this function on two threads at the same time, but not if you are simultaneously calling the SecTrustSetVerifyDate(_:_:) function for the same trust management object on another thread.