Function

SecPolicyCreateBasicX509()

Returns a policy object for the default X.509 policy.

Declaration

func SecPolicyCreateBasicX509() -> SecPolicy

Return Value

The policy object.

See Also

Standard Policies

func SecPolicyCreateSSL(Bool, CFString?) -> SecPolicy

Returns a policy object for evaluating SSL certificate chains.

func SecPolicyCreateRevocation(CFOptionFlags) -> SecPolicy?

Returns a policy object for checking revocation of certificates.

Revocation Policy Constants

Use these flags to create a revocation policy object.

class SecPolicy

An object that represents a trust policy.

func SecPolicyGetTypeID() -> CFTypeID

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