2 * Copyright (c) 2002-2012 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
25 @header SecCertificateOIDs
26 These constants are used to access entries in the dictionary returned by
27 SecCertificateCopyValues, which are the parsed field from a certificate.
30 #ifndef _SECURITY_SECCERTIFICATEOIDS_H_
31 #define _SECURITY_SECCERTIFICATEOIDS_H_
33 #include <CoreFoundation/CFBase.h>
34 #include <Availability.h>
35 #include <AvailabilityMacros.h>
37 #if defined(__cplusplus)
41 CF_ASSUME_NONNULL_BEGIN
43 extern const CFStringRef kSecOIDADC_CERT_POLICY
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
44 extern const CFStringRef kSecOIDAPPLE_CERT_POLICY
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
45 extern const CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
46 extern const CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING_DEV
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
47 extern const CFStringRef kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
48 extern const CFStringRef kSecOIDAPPLE_EKU_ICHAT_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
49 extern const CFStringRef kSecOIDAPPLE_EKU_RESOURCE_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
50 extern const CFStringRef kSecOIDAPPLE_EKU_SYSTEM_IDENTITY
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
51 extern const CFStringRef kSecOIDAPPLE_EXTENSION
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
52 extern const CFStringRef kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
53 extern const CFStringRef kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
54 extern const CFStringRef kSecOIDAPPLE_EXTENSION_APPLE_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
55 extern const CFStringRef kSecOIDAPPLE_EXTENSION_CODE_SIGNING
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
56 extern const CFStringRef kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
57 extern const CFStringRef kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
58 extern const CFStringRef kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
59 extern const CFStringRef kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
60 extern const CFStringRef kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
61 extern const CFStringRef kSecOIDAuthorityInfoAccess
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
62 extern const CFStringRef kSecOIDAuthorityKeyIdentifier
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
63 extern const CFStringRef kSecOIDBasicConstraints
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
64 extern const CFStringRef kSecOIDBiometricInfo
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
65 extern const CFStringRef kSecOIDCSSMKeyStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
66 extern const CFStringRef kSecOIDCertIssuer
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
67 extern const CFStringRef kSecOIDCertificatePolicies
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
68 extern const CFStringRef kSecOIDClientAuth
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
69 extern const CFStringRef kSecOIDCollectiveStateProvinceName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
70 extern const CFStringRef kSecOIDCollectiveStreetAddress
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
71 extern const CFStringRef kSecOIDCommonName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
72 extern const CFStringRef kSecOIDCountryName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
73 extern const CFStringRef kSecOIDCrlDistributionPoints
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
74 extern const CFStringRef kSecOIDCrlNumber
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
75 extern const CFStringRef kSecOIDCrlReason
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
76 extern const CFStringRef kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
77 extern const CFStringRef kSecOIDDOTMAC_CERT_EMAIL_SIGN
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
78 extern const CFStringRef kSecOIDDOTMAC_CERT_EXTENSION
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
79 extern const CFStringRef kSecOIDDOTMAC_CERT_IDENTITY
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
80 extern const CFStringRef kSecOIDDOTMAC_CERT_POLICY
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
81 extern const CFStringRef kSecOIDDeltaCrlIndicator
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
82 extern const CFStringRef kSecOIDDescription
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
83 extern const CFStringRef kSecOIDEKU_IPSec
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
84 extern const CFStringRef kSecOIDEmailAddress
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
85 extern const CFStringRef kSecOIDEmailProtection
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
86 extern const CFStringRef kSecOIDExtendedKeyUsage
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
87 extern const CFStringRef kSecOIDExtendedKeyUsageAny
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
88 extern const CFStringRef kSecOIDExtendedUseCodeSigning
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
89 extern const CFStringRef kSecOIDGivenName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
90 extern const CFStringRef kSecOIDHoldInstructionCode
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
91 extern const CFStringRef kSecOIDInvalidityDate
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
92 extern const CFStringRef kSecOIDIssuerAltName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
93 extern const CFStringRef kSecOIDIssuingDistributionPoint
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
94 extern const CFStringRef kSecOIDIssuingDistributionPoints
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
95 extern const CFStringRef kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
96 extern const CFStringRef kSecOIDKERBv5_PKINIT_KP_KDC
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
97 extern const CFStringRef kSecOIDKeyUsage
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
98 extern const CFStringRef kSecOIDLocalityName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
99 extern const CFStringRef kSecOIDMS_NTPrincipalName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
100 extern const CFStringRef kSecOIDMicrosoftSGC
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
101 extern const CFStringRef kSecOIDNameConstraints
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
102 extern const CFStringRef kSecOIDNetscapeCertSequence
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
103 extern const CFStringRef kSecOIDNetscapeCertType
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
104 extern const CFStringRef kSecOIDNetscapeSGC
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
105 extern const CFStringRef kSecOIDOCSPSigning
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
106 extern const CFStringRef kSecOIDOrganizationName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
107 extern const CFStringRef kSecOIDOrganizationalUnitName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
108 extern const CFStringRef kSecOIDPolicyConstraints
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
109 extern const CFStringRef kSecOIDPolicyMappings
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
110 extern const CFStringRef kSecOIDPrivateKeyUsagePeriod
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
111 extern const CFStringRef kSecOIDQC_Statements
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
112 extern const CFStringRef kSecOIDSerialNumber
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
113 extern const CFStringRef kSecOIDServerAuth
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
114 extern const CFStringRef kSecOIDStateProvinceName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
115 extern const CFStringRef kSecOIDStreetAddress
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
116 extern const CFStringRef kSecOIDSubjectAltName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
117 extern const CFStringRef kSecOIDSubjectDirectoryAttributes
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
118 extern const CFStringRef kSecOIDSubjectEmailAddress
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
119 extern const CFStringRef kSecOIDSubjectInfoAccess
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
120 extern const CFStringRef kSecOIDSubjectKeyIdentifier
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
121 extern const CFStringRef kSecOIDSubjectPicture
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
122 extern const CFStringRef kSecOIDSubjectSignatureBitmap
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
123 extern const CFStringRef kSecOIDSurname
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
124 extern const CFStringRef kSecOIDTimeStamping
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
125 extern const CFStringRef kSecOIDTitle
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
126 extern const CFStringRef kSecOIDUseExemptions
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
127 extern const CFStringRef kSecOIDX509V1CertificateIssuerUniqueId
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
128 extern const CFStringRef kSecOIDX509V1CertificateSubjectUniqueId
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
129 extern const CFStringRef kSecOIDX509V1IssuerName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
130 extern const CFStringRef kSecOIDX509V1IssuerNameCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
131 extern const CFStringRef kSecOIDX509V1IssuerNameLDAP
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
132 extern const CFStringRef kSecOIDX509V1IssuerNameStd
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
133 extern const CFStringRef kSecOIDX509V1SerialNumber
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
134 extern const CFStringRef kSecOIDX509V1Signature
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
135 extern const CFStringRef kSecOIDX509V1SignatureAlgorithm
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
136 extern const CFStringRef kSecOIDX509V1SignatureAlgorithmParameters
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
137 extern const CFStringRef kSecOIDX509V1SignatureAlgorithmTBS
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
138 extern const CFStringRef kSecOIDX509V1SignatureCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
139 extern const CFStringRef kSecOIDX509V1SignatureStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
140 extern const CFStringRef kSecOIDX509V1SubjectName
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
141 extern const CFStringRef kSecOIDX509V1SubjectNameCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
142 extern const CFStringRef kSecOIDX509V1SubjectNameLDAP
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
143 extern const CFStringRef kSecOIDX509V1SubjectNameStd
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
144 extern const CFStringRef kSecOIDX509V1SubjectPublicKey
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
145 extern const CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithm
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
146 extern const CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithmParameters
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
147 extern const CFStringRef kSecOIDX509V1SubjectPublicKeyCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
148 extern const CFStringRef kSecOIDX509V1ValidityNotAfter
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
149 extern const CFStringRef kSecOIDX509V1ValidityNotBefore
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
150 extern const CFStringRef kSecOIDX509V1Version
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
151 extern const CFStringRef kSecOIDX509V3Certificate
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
152 extern const CFStringRef kSecOIDX509V3CertificateCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
153 extern const CFStringRef kSecOIDX509V3CertificateExtensionCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
154 extern const CFStringRef kSecOIDX509V3CertificateExtensionCritical
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
155 extern const CFStringRef kSecOIDX509V3CertificateExtensionId
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
156 extern const CFStringRef kSecOIDX509V3CertificateExtensionStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
157 extern const CFStringRef kSecOIDX509V3CertificateExtensionType
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
158 extern const CFStringRef kSecOIDX509V3CertificateExtensionValue
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
159 extern const CFStringRef kSecOIDX509V3CertificateExtensionsCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
160 extern const CFStringRef kSecOIDX509V3CertificateExtensionsStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
161 extern const CFStringRef kSecOIDX509V3CertificateNumberOfExtensions
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
162 extern const CFStringRef kSecOIDX509V3SignedCertificate
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
163 extern const CFStringRef kSecOIDX509V3SignedCertificateCStruct
__OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_NA
);
164 extern const CFStringRef kSecOIDSRVName
__OSX_AVAILABLE_STARTING(__MAC_10_8
, __IPHONE_NA
);
166 CF_ASSUME_NONNULL_END
168 #if defined(__cplusplus)
172 #endif /* !_SECURITY_SECCERTIFICATEOIDS_H_ */