kSecPolicyOid

Static kSecPolicyOid 

Source
pub unsafe static kSecPolicyOid: &'static CFString
Available on crate feature SecPolicy only.
Expand description

Predefined property key constants used to get or set values in a dictionary for a policy instance.

All policies will have the following read-only value: kSecPolicyOid (the policy object identifier)

Additional policy values which your code can optionally set: kSecPolicyName (name which must be matched) kSecPolicyClient (evaluate for client, rather than server) kSecPolicyRevocationFlags (only valid for a revocation policy) kSecPolicyTeamIdentifier (only valid for a Passbook signing policy)

containing a name which must be matched in the certificate to satisfy this policy. For SSL/TLS, EAP, and IPSec policies, this specifies the server name which must match the common name of the certificate. For S/MIME, this specifies the RFC822 email address. For Passbook signing, this specifies the pass signer.

this evaluation should be for a client certificate. If not set (or false), the policy evaluates the certificate as a server certificate.

kCFNumberCFIndexType bitmask value. See “Revocation Policy Constants” for a description of individual bits in this value.

team identifier which must be matched in the certificate to satisfy this policy. For the Passbook signing policy, this string must match the Organizational Unit field of the certificate subject.

See also Apple’s documentation