Contents

SecTrustSettingsCopyCertificates(_:_:)

Obtains an array of all certificates that have trust settings in a specific trust settings domain.

Declaration

func SecTrustSettingsCopyCertificates(_ domain: SecTrustSettingsDomain, _ certArray: UnsafeMutablePointer<CFArray?>?) -> OSStatus

Parameters

  • domain:

    The trust settings domain for which you want a list of certificates. For possible values, see Sectrustsettingsdomain.

  • certArray:

    On return, an array of SecCertificateRef objects representing the certificates that have trust settings in the specified domain. 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. Returns errSecNoTrustSettings if no trust settings exist for the specified domain.