Retrieves the custom anchor certificates, if any, used by a given trust.
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The trust management object from which you wish to retrieve the custom anchor certificates.
On return, a reference to an array of
Secobjects representing the set of anchor certificates that are considered valid (trusted) anchors by the
Secfunction when verifying a certificate using the trust management object in the
Trust Evaluate With Error
NULLif no custom anchors have been specified. Call the
CFReleasefunction to release this object when you are finished with it.
A result code. See Security Framework Result Codes.
You can use the
Sec function to set custom anchor certificates.
It is safe to call this function concurrently on two or more threads as long as it is not used to get values 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
Sec function for the same trust management object on another thread.