Returns an opaque cookie containing exceptions to trust policies that will allow future evaluations of the current certificate to succeed.
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The evaluated trust management object whose policies you wish to retrieve.
An opaque cookie. If you pass this cookie to
Sec, that function sets a list of exceptions for future processing of the certificate. Once this list of exceptions are set, a subsequent call to
Sec for that certificate will return
Note: If a new error occurs that did not occur when this function was called originally, the subsequent call to
Sec can still fail. For example, if the certificate expires between calling
Sec, evaluation will fail.
Normally this API should only be called after asking the user how to proceed, and even then, only if the user explicitly tells your application to trust the current certificate chain in spite of the errors presented.