Returns the unique identifier of the opaque type to which a trust object belongs.


func SecTrustGetTypeID() -> CFTypeID

Return Value

A value that identifies the opaque type of a SecTrust object.


This function returns a value that uniquely identifies the opaque type of a SecTrust object. You can compare this value to the CFTypeID identifier obtained by calling the CFGetTypeID(_:) function on a specific object. These values might change from release to release or platform to platform.

See Also


Creating a Trust Object

Construct a trust object from a certificate and a policy.

func SecTrustCreateWithCertificates(CFTypeRef, CFTypeRef?, UnsafeMutablePointer<SecTrust?>) -> OSStatus

Creates a trust management object based on certificates and policies.

class SecTrust

An object used to evaluate trust.