Contents

SecTrustCopyPolicies(_:_:)

Retrieves the policies used by a given trust management object.

Declaration

func SecTrustCopyPolicies(_ trust: SecTrust, _ policies: UnsafeMutablePointer<CFArray?>) -> OSStatus

Parameters

  • trust:

    The trust management object whose policies you wish to retrieve.

  • policies:

    On return, an array of Secpolicy objects for the policies used by this trust management object. In Objective-C, call the Cfrelease function to release this object when you are finished with it.

Return Value

A result code. See Security Framework Result Codes.

Discussion

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 SecTrustSetPolicies(_:_:) function for the same trust management object on another thread.

See Also

Related Documentation