Sets the keychains searched for intermediate certificates when evaluating a trust management object.
- macOS 10.3–10.13Deprecated
The trust management object containing the certificate you want to evaluate. A trust management object includes the certificate to be verified plus the policy or policies to be used in evaluating trust. It can optionally also include other certificates to be used in verifying the first certificate. Use the
Secfunction to create a trust management object.
Trust Create With Certificates(_: _: _:)
A keychain object for a single keychain to search, an array of keychain objects for a set of keychains to search, or
NULLto search the user’s default keychain search list. To prevent the
Secfunction from searching any keychains at all, pass a
Trust Evaluate(_: _:)
CFArrayarray with no elements.
A result code. See Security Framework Result Codes.
Sec uses the user’s keychain search list to look for intermediate certificates in the certificate chain. Use the
Sec function to change the set of keychains to be searched. If you want to modify the default set of keychains, first call the
Sec function (see Keychain Services) to obtain the current keychain search list, modify that set as you wish, and create a new search list. Then you can call
Sec with the modified list.
Sec function to set the array of anchor certificates searched.
It is safe to call this function concurrently on two or more threads as long as it is not used to change the value of a trust management object that is simultaneously being used by another function. For example, you cannot call this function on one thread at the same time as you are calling the evaluation function for the same trust management object on another thread, but you can call this function and simultaneously evaluate a different trust management object on another thread. Similarly, calls to functions that return information about a trust management object (such as the
Sec function) may fail or return an unexpected result if this function is simultaneously changing the same trust management object on another thread.