Retrieves the anchor (root) certificates stored by macOS.
- macOS 10.3+
A result code. See Security Framework Result Codes.
This function retrieves the certificates in the system’s store of anchor certificates (see
Sec). You can use the
Sec objects retrieved by this function as input to other functions of this API, such as
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.