2 * Copyright (c) 2005-2009,2011-2015 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@
30 #include <libDER/libDER.h>
31 #include <libDER/oidsPriv.h>
33 #define OID_ISO_CCITT_DIR_SERVICE 85
34 #define OID_DS OID_ISO_CCITT_DIR_SERVICE
35 #define OID_ATTR_TYPE OID_DS, 4
36 #define OID_EXTENSION OID_DS, 29
37 #define OID_ISO_STANDARD 40
38 #define OID_ISO_MEMBER 42
39 #define OID_US OID_ISO_MEMBER, 134, 72
41 #define OID_ISO_IDENTIFIED_ORG 43
42 #define OID_OSINET OID_ISO_IDENTIFIED_ORG, 4
43 #define OID_GOSIP OID_ISO_IDENTIFIED_ORG, 5
44 #define OID_DOD OID_ISO_IDENTIFIED_ORG, 6
45 #define OID_OIW OID_ISO_IDENTIFIED_ORG, 14
47 /* From the PKCS Standards */
48 #define OID_RSA OID_US, 134, 247, 13
49 #define OID_RSA_HASH OID_RSA, 2
50 #define OID_RSA_ENCRYPT OID_RSA, 3
51 #define OID_PKCS OID_RSA, 1
52 #define OID_PKCS_1 OID_PKCS, 1
53 #define OID_PKCS_2 OID_PKCS, 2
54 #define OID_PKCS_3 OID_PKCS, 3
55 #define OID_PKCS_4 OID_PKCS, 4
56 #define OID_PKCS_5 OID_PKCS, 5
57 #define OID_PKCS_6 OID_PKCS, 6
58 #define OID_PKCS_7 OID_PKCS, 7
59 #define OID_PKCS_8 OID_PKCS, 8
60 #define OID_PKCS_9 OID_PKCS, 9
61 #define OID_PKCS_10 OID_PKCS, 10
62 #define OID_PKCS_11 OID_PKCS, 11
63 #define OID_PKCS_12 OID_PKCS, 12
66 #define OID_ANSI_X9_62 OID_US, 206, 61
67 #define OID_PUBLIC_KEY_TYPE OID_ANSI_X9_62, 2
68 #define OID_EC_SIG_TYPE OID_ANSI_X9_62, 4
69 #define OID_ECDSA_WITH_SHA2 OID_EC_SIG_TYPE, 3
72 #define OID_ANSI_X9_42 OID_US, 206, 62, 2
73 #define OID_ANSI_X9_42_SCHEME OID_ANSI_X9_42, 3
74 #define OID_ANSI_X9_42_NAMED_SCHEME OID_ANSI_X9_42, 4
77 #define OID_ANSI_X9_57 OID_US, 206, 56
78 #define OID_ANSI_X9_57_ALGORITHM OID_ANSI_X9_57, 4
80 /* DOD IANA Security related objects. */
81 #define OID_IANA OID_DOD, 1, 5
84 #define OID_KERBv5 OID_IANA, 2
85 #define OID_KERBv5_PKINIT OID_KERBv5, 3
87 /* DOD IANA Mechanisms. */
88 #define OID_MECHANISMS OID_IANA, 5
91 #define OID_PKIX OID_MECHANISMS, 7
92 #define OID_PE OID_PKIX, 1
93 #define OID_QT OID_PKIX, 2
94 #define OID_KP OID_PKIX, 3
95 #define OID_OTHER_NAME OID_PKIX, 8
96 #define OID_PDA OID_PKIX, 9
97 #define OID_QCS OID_PKIX, 11
98 #define OID_AD OID_PKIX, 48
99 #define OID_AD_OCSP OID_AD, 1
100 #define OID_AD_CAISSUERS OID_AD, 2
103 #define OID_ISAKMP OID_MECHANISMS, 8
106 #define OID_ETSI 0x04, 0x00
107 #define OID_ETSI_QCS 0x04, 0x00, 0x8E, 0x46, 0x01
109 #define OID_OIW_SECSIG OID_OIW, 3
111 #define OID_OIW_ALGORITHM OID_OIW_SECSIG, 2
113 /* NIST defined digest algorithm arc (2, 16, 840, 1, 101, 3, 4, 2) */
114 #define OID_NIST_HASHALG 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02
117 * Apple-specific OID bases
121 * apple OBJECT IDENTIFIER ::=
122 * { iso(1) member-body(2) US(840) 113635 }
124 * BER = 06 06 2A 86 48 86 F7 63
126 #define APPLE_OID OID_US, 0x86, 0xf7, 0x63
128 /* appleDataSecurity OBJECT IDENTIFIER ::=
130 * { 1 2 840 113635 100 }
132 * BER = 06 07 2A 86 48 86 F7 63 64
134 #define APPLE_ADS_OID APPLE_OID, 0x64
137 * appleTrustPolicy OBJECT IDENTIFIER ::=
138 * { appleDataSecurity 1 }
139 * { 1 2 840 113635 100 1 }
141 * BER = 06 08 2A 86 48 86 F7 63 64 01
143 #define APPLE_TP_OID APPLE_ADS_OID, 1
146 * appleSecurityAlgorithm OBJECT IDENTIFIER ::=
147 * { appleDataSecurity 2 }
148 * { 1 2 840 113635 100 2 }
150 * BER = 06 08 2A 86 48 86 F7 63 64 02
152 #define APPLE_ALG_OID APPLE_ADS_OID, 2
155 * appleDotMacCertificate OBJECT IDENTIFIER ::=
156 * { appleDataSecurity 3 }
157 * { 1 2 840 113635 100 3 }
159 #define APPLE_DOTMAC_CERT_OID APPLE_ADS_OID, 3
162 * Basis of Policy OIDs for .mac TP requests
164 * dotMacCertificateRequest OBJECT IDENTIFIER ::=
165 * { appleDotMacCertificate 1 }
166 * { 1 2 840 113635 100 3 1 }
168 #define APPLE_DOTMAC_CERT_REQ_OID APPLE_DOTMAC_CERT_OID, 1
171 * Basis of .mac Certificate Extensions
173 * dotMacCertificateExtension OBJECT IDENTIFIER ::=
174 * { appleDotMacCertificate 2 }
175 * { 1 2 840 113635 100 3 2 }
177 #define APPLE_DOTMAC_CERT_EXTEN_OID APPLE_DOTMAC_CERT_OID, 2
180 * Basis of .mac Certificate request OID/value identitifiers
182 * dotMacCertificateRequestValues OBJECT IDENTIFIER ::=
183 * { appleDotMacCertificate 3 }
184 * { 1 2 840 113635 100 3 3 }
186 #define APPLE_DOTMAC_CERT_REQ_VALUE_OID APPLE_DOTMAC_CERT_OID, 3
189 * Basis of Apple-specific extended key usages
191 * appleExtendedKeyUsage OBJECT IDENTIFIER ::=
192 * { appleDataSecurity 4 }
193 * { 1 2 840 113635 100 4 }
195 #define APPLE_EKU_OID APPLE_ADS_OID, 4
198 * Basis of Apple Code Signing extended key usages
199 * appleCodeSigning OBJECT IDENTIFIER ::=
200 * { appleExtendedKeyUsage 1 }
201 * { 1 2 840 113635 100 4 1}
203 #define APPLE_EKU_CODE_SIGNING APPLE_EKU_OID, 1
204 #define APPLE_EKU_APPLE_ID APPLE_EKU_OID, 7
205 #define APPLE_EKU_PASSBOOK APPLE_EKU_OID, 14
206 #define APPLE_EKU_PROFILE_SIGNING APPLE_EKU_OID, 16
207 #define APPLE_EKU_QA_PROFILE_SIGNING APPLE_EKU_OID, 17
211 * Basis of Apple-specific Certificate Policy IDs.
212 * appleCertificatePolicies OBJECT IDENTIFIER ::=
213 * { appleDataSecurity 5 }
214 * { 1 2 840 113635 100 5 }
216 #define APPLE_CERT_POLICIES APPLE_ADS_OID, 5
218 #define APPLE_CERT_POLICY_MOBILE_STORE APPLE_CERT_POLICIES, 12
220 #define APPLE_CERT_POLICY_TEST_MOBILE_STORE APPLE_CERT_POLICY_MOBILE_STORE, 1
223 * Basis of Apple-specific Signing extensions
224 * { appleDataSecurity 6 }
226 #define APPLE_CERT_EXT APPLE_ADS_OID, 6
228 /* Apple Intermediate Marker OIDs */
229 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER APPLE_CERT_EXT, 2
231 /* Apple Worldwide Developer Relations Certification Authority */
232 /* 1.2.840.113635.100.6.2.1 */
233 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_WWDR APPLE_CERT_EXT_INTERMEDIATE_MARKER, 1
235 /* Apple Apple ID Intermediate Marker */
236 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID APPLE_CERT_EXT_INTERMEDIATE_MARKER, 3
239 * Apple Apple ID Intermediate Marker (New subCA, no longer shared with push notification server cert issuer
241 * appleCertificateExtensionAppleIDIntermediate ::=
242 * { appleCertificateExtensionIntermediateMarker 7 }
243 * { 1 2 840 113635 100 6 2 7 }
245 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_2 APPLE_CERT_EXT_INTERMEDIATE_MARKER, 7
247 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_SYSTEM_INTEGRATION_2 APPLE_CERT_EXT_INTERMEDIATE_MARKER, 10
249 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_SYSTEM_INTEGRATION_G3 APPLE_CERT_EXT_INTERMEDIATE_MARKER, 13
251 #define APPLE_CERT_EXT_APPLE_PUSH_MARKER APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID, 2
254 #define APPLE_CERT_EXTENSION_CODESIGNING APPLE_CERT_EXT, 1
256 /* Secure Boot Embedded Image3 value,
257 co-opted by desktop for "Apple Released Code Signature", without value */
258 #define APPLE_SBOOT_CERT_EXTEN_SBOOT_SPEC_OID APPLE_CERT_EXTENSION_CODESIGNING, 1
259 /* iPhone Provisioning Profile Signing leaf - on the intermediate marker arc? */
260 #define APPLE_PROVISIONING_PROFILE_OID APPLE_CERT_EXT_INTERMEDIATE_MARKER, 1
261 /* iPhone Application Signing leaf */
262 #define APPLE_APP_SIGNING_OID APPLE_CERT_EXTENSION_CODESIGNING, 3
264 #define APPLE_INSTALLER_PACKAGE_SIGNING_EXTERNAL_OID APPLE_CERT_EXTENSION_CODESIGNING, 16
266 /* Apple TVOS Application Signing leaf, production */
267 /* 1.2.840.113635.100.6.1.24 */
268 #define APPLE_TVOS_APP_SIGNING_PROD_OID APPLE_CERT_EXTENSION_CODESIGNING, 24
270 /* Apple TVOS Application Signing leaf, test */
271 /* 1.2.840.113635.100.6.1.24.1 */
273 #define APPLE_TVOS_APP_SIGNING_TEST_OID APPLE_CERT_EXTENSION_CODESIGNING, 24, 1
275 #define APPLE_ESCROW_ARC APPLE_CERT_EXT, 23
277 #define APPLE_ESCROW_POLICY_OID APPLE_ESCROW_ARC, 1
279 #define APPLE_CERT_EXT_APPLE_ID_VALIDATION_RECORD_SIGNING APPLE_CERT_EXT, 25
281 #define APPLE_SERVER_AUTHENTICATION APPLE_CERT_EXT, 27
282 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION APPLE_SERVER_AUTHENTICATION, 1
283 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_PPQ_TEST APPLE_SERVER_AUTHENTICATION, 3, 1
284 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_PPQ_PROD APPLE_SERVER_AUTHENTICATION, 3, 2
285 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_IDS_TEST APPLE_SERVER_AUTHENTICATION, 4, 1
286 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_IDS_PROD APPLE_SERVER_AUTHENTICATION, 4, 2
287 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_APN_TEST APPLE_SERVER_AUTHENTICATION, 5, 1
288 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_APN_PROD APPLE_SERVER_AUTHENTICATION, 5, 2
290 #define APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_GS APPLE_SERVER_AUTHENTICATION, 2
293 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLE_SERVER_AUTHENTICATION APPLE_CERT_EXT_INTERMEDIATE_MARKER, 12
295 #define APPLE_CERT_EXT_APPLE_SMP_ENCRYPTION APPLE_CERT_EXT, 30
297 /* UPP fraud detection (Provisioning Profile Query) CMS signing */
299 #define APPLE_CERT_EXT_APPLE_PPQ_SIGNING_TEST APPLE_CERT_EXT, 38, 1
300 #define APPLE_CERT_EXT_APPLE_PPQ_SIGNING_PROD APPLE_CERT_EXT, 38, 2
302 /* AppleTVOS Application Signing */
303 #define APPLE_ATV_APP_SIGNING_OID APPLE_CERT_EXTENSION_CODESIGNING, 24
304 #define APPLE_ATV_APP_SIGNING_OID_TEST APPLE_ATV_APP_SIGNING_OID, 1
306 /* Apple Pay Issuer Encryption */
307 #define APPLE_CERT_EXT_CRYPTO_SERVICES_EXT_ENCRYPTION APPLE_CERT_EXT, 39
309 /* Apple OS X Provisioning Profile Signing */
310 /* (note this OID is unfortunately used as a cert extension even though it's under the EKU arc) */
311 #define APPLE_CERT_EXT_OSX_PROVISIONING_PROFILE_SIGNING APPLE_EKU_OID, 11
313 /* AppleTV VPN Profile Signing 1.2.840.113635.100.6.43 */
314 #define APPLE_CERT_EXT_APPLE_ATV_VPN_PROFILE_SIGNING APPLE_CERT_EXT, 43
316 /* AST2 Diagnostics Server Authentication
317 * Test Marker OID 1.2.840.113635.100.6.27.8.1
318 * Prod Marker OID 1.2.840.113635.100.6.27.8.2
320 #define APPLE_CERT_EXT_AST2_DIAGNOSTICS_SERVER_AUTH_TEST APPLE_SERVER_AUTHENTICATION, 8, 1
321 #define APPLE_CERT_EXT_AST2_DIAGNOSTICS_SERVER_AUTH_PROD APPLE_SERVER_AUTHENTICATION, 8, 2
323 /* HomeKit Server Authentication
324 * Intermediate Marker OID: 1.2.840.113635.100.6.2.16
325 * Leaf Marker OID: 1.2.840.113635.100.6.27.9
327 #define APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLE_HOME_KIT_SERVER_AUTH APPLE_CERT_EXT_INTERMEDIATE_MARKER, 16
328 #define APPLE_CERT_EXT_HOME_KIT_SERVER_AUTH APPLE_SERVER_AUTHENTICATION, 9
333 #define NETSCAPE_BASE_OID 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42
336 * Netscape cert extension.
338 * netscape-cert-extension OBJECT IDENTIFIER ::=
339 * { 2 16 840 1 113730 1 }
341 * BER = 06 08 60 86 48 01 86 F8 42 01
343 #define NETSCAPE_CERT_EXTEN NETSCAPE_BASE_OID, 0x01
345 #define NETSCAPE_CERT_POLICY NETSCAPE_BASE_OID, 0x04
348 #define ENTRUST_BASE_OID OID_US, 0x86, 0xf6, 0x7d
351 * Entrust cert extension.
353 * entrust-cert-extension OBJECT IDENTIFIER ::=
354 * { 1 2 840 113533 7 65 }
356 * BER = 06 08 2A 86 48 86 F6 7D 07 41
358 #define ENTRUST_CERT_EXTEN ENTRUST_BASE_OID, 0x07, 0x41
360 /* Microsoft OIDs. */
361 #define MICROSOFT_BASE_OID OID_DOD, 0x01, 0x04, 0x01, 0x82, 0x37
362 #define MICROSOFT_ENROLLMENT_OID MICROSOFT_BASE_OID, 0x14
364 /* Google OIDs: 1.3.6.1.4.1.11129.
366 #define GOOGLE_BASE_OID OID_DOD, 0x01, 0x04, 0x01, 0xD6, 0x79
367 #define GOOGLE_EMBEDDED_SCT_OID GOOGLE_BASE_OID, 0x02, 0x04, 0x02
368 #define GOOGLE_OCSP_SCT_OID GOOGLE_BASE_OID, 0x02, 0x04, 0x05
371 /* Algorithm OIDs. */
373 _oidRsa
[] = { OID_PKCS_1
, 1 },
374 _oidMd2Rsa
[] = { OID_PKCS_1
, 2 },
375 _oidMd4Rsa
[] = { OID_PKCS_1
, 3 },
376 _oidMd5Rsa
[] = { OID_PKCS_1
, 4 },
377 _oidSha1Rsa
[] = { OID_PKCS_1
, 5 },
378 _oidSha256Rsa
[] = { OID_PKCS_1
, 11 },
379 _oidSha384Rsa
[] = { OID_PKCS_1
, 12 },
380 _oidSha512Rsa
[] = { OID_PKCS_1
, 13 },
381 _oidSha224Rsa
[] = { OID_PKCS_1
, 14 },
382 _oidEcPubKey
[] = { OID_PUBLIC_KEY_TYPE
, 1 },
383 _oidSha1Ecdsa
[] = { OID_EC_SIG_TYPE
, 1 }, /* rfc3279 */
384 _oidSha224Ecdsa
[] = { OID_ECDSA_WITH_SHA2
, 1 }, /* rfc5758 */
385 _oidSha256Ecdsa
[] = { OID_ECDSA_WITH_SHA2
, 2 }, /* rfc5758 */
386 _oidSha384Ecdsa
[] = { OID_ECDSA_WITH_SHA2
, 3 }, /* rfc5758 */
387 _oidSha512Ecdsa
[] = { OID_ECDSA_WITH_SHA2
, 4 }, /* rfc5758 */
388 _oidSha1Dsa
[] = { OID_ANSI_X9_57_ALGORITHM
, 3 },
389 _oidMd2
[] = { OID_RSA_HASH
, 2 },
390 _oidMd4
[] = { OID_RSA_HASH
, 4 },
391 _oidMd5
[] = { OID_RSA_HASH
, 5 },
392 _oidSha1
[] = { OID_OIW_ALGORITHM
, 26 },
393 _oidSha1DsaOIW
[] = { OID_OIW_ALGORITHM
, 27 },
394 _oidSha1DsaCommonOIW
[] = { OID_OIW_ALGORITHM
, 28 },
395 _oidSha1RsaOIW
[] = { OID_OIW_ALGORITHM
, 29 },
396 _oidSha256
[] = { OID_NIST_HASHALG
, 1 },
397 _oidSha384
[] = { OID_NIST_HASHALG
, 2 },
398 _oidSha512
[] = { OID_NIST_HASHALG
, 3 },
399 _oidSha224
[] = { OID_NIST_HASHALG
, 4 },
400 _oidFee
[] = { APPLE_ALG_OID
, 1 },
401 _oidMd5Fee
[] = { APPLE_ALG_OID
, 3 },
402 _oidSha1Fee
[] = { APPLE_ALG_OID
, 4 };
405 oidRsa
= { (DERByte
*)_oidRsa
,
407 oidMd2Rsa
= { (DERByte
*)_oidMd2Rsa
,
408 sizeof(_oidMd2Rsa
) },
409 oidMd4Rsa
= { (DERByte
*)_oidMd4Rsa
,
410 sizeof(_oidMd4Rsa
) },
411 oidMd5Rsa
= { (DERByte
*)_oidMd5Rsa
,
412 sizeof(_oidMd5Rsa
) },
413 oidSha1Rsa
= { (DERByte
*)_oidSha1Rsa
,
414 sizeof(_oidSha1Rsa
) },
415 oidSha256Rsa
= { (DERByte
*)_oidSha256Rsa
,
416 sizeof(_oidSha256Rsa
) },
417 oidSha384Rsa
= { (DERByte
*)_oidSha384Rsa
,
418 sizeof(_oidSha384Rsa
) },
419 oidSha512Rsa
= { (DERByte
*)_oidSha512Rsa
,
420 sizeof(_oidSha512Rsa
) },
421 oidSha224Rsa
= { (DERByte
*)_oidSha224Rsa
,
422 sizeof(_oidSha224Rsa
) },
423 oidEcPubKey
= { (DERByte
*)_oidEcPubKey
,
424 sizeof(_oidEcPubKey
) },
425 oidSha1Ecdsa
= { (DERByte
*)_oidSha1Ecdsa
,
426 sizeof(_oidSha1Ecdsa
) },
427 oidSha224Ecdsa
= { (DERByte
*)_oidSha224Ecdsa
,
428 sizeof(_oidSha224Ecdsa
) },
429 oidSha256Ecdsa
= { (DERByte
*)_oidSha256Ecdsa
,
430 sizeof(_oidSha256Ecdsa
) },
431 oidSha384Ecdsa
= { (DERByte
*)_oidSha384Ecdsa
,
432 sizeof(_oidSha384Ecdsa
) },
433 oidSha512Ecdsa
= { (DERByte
*)_oidSha512Ecdsa
,
434 sizeof(_oidSha512Ecdsa
) },
435 oidSha1Dsa
= { (DERByte
*)_oidSha1Dsa
,
436 sizeof(_oidSha1Dsa
) },
437 oidMd2
= { (DERByte
*)_oidMd2
,
439 oidMd4
= { (DERByte
*)_oidMd4
,
441 oidMd5
= { (DERByte
*)_oidMd5
,
443 oidSha1
= { (DERByte
*)_oidSha1
,
445 oidSha1RsaOIW
= { (DERByte
*)_oidSha1RsaOIW
,
446 sizeof(_oidSha1RsaOIW
) },
447 oidSha1DsaOIW
= { (DERByte
*)_oidSha1DsaOIW
,
448 sizeof(_oidSha1DsaOIW
) },
449 oidSha1DsaCommonOIW
= { (DERByte
*)_oidSha1DsaCommonOIW
,
450 sizeof(_oidSha1DsaCommonOIW
) },
451 oidSha256
= { (DERByte
*)_oidSha256
,
452 sizeof(_oidSha256
) },
453 oidSha384
= { (DERByte
*)_oidSha384
,
454 sizeof(_oidSha384
) },
455 oidSha512
= { (DERByte
*)_oidSha512
,
456 sizeof(_oidSha512
) },
457 oidSha224
= { (DERByte
*)_oidSha224
,
458 sizeof(_oidSha224
) },
459 oidFee
= { (DERByte
*)_oidFee
,
461 oidMd5Fee
= { (DERByte
*)_oidMd5Fee
,
462 sizeof(_oidMd5Fee
) },
463 oidSha1Fee
= { (DERByte
*)_oidSha1Fee
,
464 sizeof(_oidSha1Fee
) };
467 /* Extension OIDs. */
468 __unused
static const DERByte
469 _oidSubjectKeyIdentifier
[] = { OID_EXTENSION
, 14 },
470 _oidKeyUsage
[] = { OID_EXTENSION
, 15 },
471 _oidPrivateKeyUsagePeriod
[] = { OID_EXTENSION
, 16 },
472 _oidSubjectAltName
[] = { OID_EXTENSION
, 17 },
473 _oidIssuerAltName
[] = { OID_EXTENSION
, 18 },
474 _oidBasicConstraints
[] = { OID_EXTENSION
, 19 },
475 _oidNameConstraints
[] = { OID_EXTENSION
, 30 },
476 _oidCrlDistributionPoints
[] = { OID_EXTENSION
, 31 },
477 _oidCertificatePolicies
[] = { OID_EXTENSION
, 32 },
478 _oidAnyPolicy
[] = { OID_EXTENSION
, 32, 0 },
479 _oidPolicyMappings
[] = { OID_EXTENSION
, 33 },
480 _oidAuthorityKeyIdentifier
[] = { OID_EXTENSION
, 35 },
481 _oidPolicyConstraints
[] = { OID_EXTENSION
, 36 },
482 _oidExtendedKeyUsage
[] = { OID_EXTENSION
, 37 },
483 _oidAnyExtendedKeyUsage
[] = { OID_EXTENSION
, 37, 0 },
484 _oidInhibitAnyPolicy
[] = { OID_EXTENSION
, 54 },
485 _oidAuthorityInfoAccess
[] = { OID_PE
, 1 },
486 _oidSubjectInfoAccess
[] = { OID_PE
, 11 },
487 _oidAdOCSP
[] = { OID_AD_OCSP
},
488 _oidAdCAIssuer
[] = { OID_AD_CAISSUERS
},
489 _oidNetscapeCertType
[] = { NETSCAPE_CERT_EXTEN
, 1 },
490 _oidEntrustVersInfo
[] = { ENTRUST_CERT_EXTEN
, 0 },
491 _oidMSNTPrincipalName
[] = { MICROSOFT_ENROLLMENT_OID
, 2, 3 },
492 /* Policy Qualifier IDs for Internet policy qualifiers. */
493 _oidQtCps
[] = { OID_QT
, 1 },
494 _oidQtUNotice
[] = { OID_QT
, 2 },
495 /* X.501 Name IDs. */
496 _oidCommonName
[] = { OID_ATTR_TYPE
, 3 },
497 _oidCountryName
[] = { OID_ATTR_TYPE
, 6 },
498 _oidLocalityName
[] = { OID_ATTR_TYPE
, 7 },
499 _oidStateOrProvinceName
[] = { OID_ATTR_TYPE
, 8 },
500 _oidOrganizationName
[] = { OID_ATTR_TYPE
, 10 },
501 _oidOrganizationalUnitName
[] = { OID_ATTR_TYPE
, 11 },
502 _oidDescription
[] = { OID_ATTR_TYPE
, 13 },
503 _oidEmailAddress
[] = { OID_PKCS_9
, 1 },
504 _oidFriendlyName
[] = { OID_PKCS_9
, 20 },
505 _oidLocalKeyId
[] = { OID_PKCS_9
, 21 },
506 _oidExtendedKeyUsageServerAuth
[] = { OID_KP
, 1 },
507 _oidExtendedKeyUsageClientAuth
[] = { OID_KP
, 2 },
508 _oidExtendedKeyUsageCodeSigning
[] = { OID_KP
, 3 },
509 _oidExtendedKeyUsageEmailProtection
[] = { OID_KP
, 4 },
510 _oidExtendedKeyUsageTimeStamping
[] = { OID_KP
, 8 },
511 _oidExtendedKeyUsageOCSPSigning
[] = { OID_KP
, 9 },
512 _oidExtendedKeyUsageIPSec
[] = { OID_ISAKMP
, 2, 2 },
513 _oidExtendedKeyUsageMicrosoftSGC
[] = { MICROSOFT_BASE_OID
, 10, 3, 3 },
514 _oidExtendedKeyUsageNetscapeSGC
[] = { NETSCAPE_CERT_POLICY
, 1 },
515 _oidAppleSecureBootCertSpec
[] = { APPLE_SBOOT_CERT_EXTEN_SBOOT_SPEC_OID
},
516 _oidAppleProvisioningProfile
[] = {APPLE_PROVISIONING_PROFILE_OID
},
517 _oidAppleApplicationSigning
[] = { APPLE_APP_SIGNING_OID
},
518 _oidAppleInstallerPackagingSigningExternal
[] = { APPLE_INSTALLER_PACKAGE_SIGNING_EXTERNAL_OID
},
519 _oidAppleTVOSApplicationSigningProd
[] = { APPLE_TVOS_APP_SIGNING_PROD_OID
},
520 _oidAppleTVOSApplicationSigningTest
[] = { APPLE_TVOS_APP_SIGNING_TEST_OID
},
521 _oidAppleExtendedKeyUsageCodeSigning
[] = { APPLE_EKU_CODE_SIGNING
},
522 _oidAppleExtendedKeyUsageCodeSigningDev
[] = { APPLE_EKU_CODE_SIGNING
, 1 },
523 _oidAppleExtendedKeyUsageAppleID
[] = { APPLE_EKU_APPLE_ID
},
524 _oidAppleExtendedKeyUsagePassbook
[] = { APPLE_EKU_PASSBOOK
},
525 _oidAppleExtendedKeyUsageProfileSigning
[] = { APPLE_EKU_PROFILE_SIGNING
},
526 _oidAppleExtendedKeyUsageQAProfileSigning
[] = { APPLE_EKU_QA_PROFILE_SIGNING
},
527 _oidAppleIntmMarkerAppleWWDR
[] = { APPLE_CERT_EXT_INTERMEDIATE_MARKER_WWDR
},
528 _oidAppleIntmMarkerAppleID
[] = { APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID
},
529 _oidAppleIntmMarkerAppleID2
[] = {APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_2
},
530 _oidApplePushServiceClient
[] = { APPLE_CERT_EXT_APPLE_PUSH_MARKER
, 2 },
531 _oidApplePolicyMobileStore
[] = { APPLE_CERT_POLICY_MOBILE_STORE
},
532 _oidApplePolicyTestMobileStore
[] = { APPLE_CERT_POLICY_TEST_MOBILE_STORE
},
533 _oidApplePolicyEscrowService
[] = { APPLE_ESCROW_POLICY_OID
},
534 _oidAppleCertExtensionAppleIDRecordValidationSigning
[] = { APPLE_CERT_EXT_APPLE_ID_VALIDATION_RECORD_SIGNING
},
535 _oidAppleCertExtOSXProvisioningProfileSigning
[] = { APPLE_CERT_EXT_OSX_PROVISIONING_PROFILE_SIGNING
},
536 _oidAppleIntmMarkerAppleSystemIntg2
[] = {APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_SYSTEM_INTEGRATION_2
},
537 _oidAppleIntmMarkerAppleSystemIntgG3
[] = {APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLEID_SYSTEM_INTEGRATION_G3
},
538 _oidAppleCertExtAppleSMPEncryption
[] = {APPLE_CERT_EXT_APPLE_SMP_ENCRYPTION
},
539 _oidAppleCertExtAppleServerAuthentication
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION
},
540 _oidAppleCertExtAppleServerAuthenticationPPQTest
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_PPQ_TEST
},
541 _oidAppleCertExtAppleServerAuthenticationPPQProd
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_PPQ_PROD
},
542 _oidAppleCertExtAppleServerAuthenticationIDSTest
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_IDS_TEST
},
543 _oidAppleCertExtAppleServerAuthenticationIDSProd
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_IDS_PROD
},
544 _oidAppleCertExtAppleServerAuthenticationAPNTest
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_APN_TEST
},
545 _oidAppleCertExtAppleServerAuthenticationAPNProd
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_APN_PROD
},
546 _oidAppleCertExtAppleServerAuthenticationGS
[] = {APPLE_CERT_EXT_APPLE_SERVER_AUTHENTICATION_GS
},
547 _oidAppleIntmMarkerAppleServerAuthentication
[] = {APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLE_SERVER_AUTHENTICATION
},
548 _oidAppleCertExtApplePPQSigningTest
[] = {APPLE_CERT_EXT_APPLE_PPQ_SIGNING_TEST
},
549 _oidAppleCertExtApplePPQSigningProd
[] = {APPLE_CERT_EXT_APPLE_PPQ_SIGNING_PROD
},
550 _oidGoogleEmbeddedSignedCertificateTimestamp
[] = {GOOGLE_EMBEDDED_SCT_OID
},
551 _oidGoogleOCSPSignedCertificateTimestamp
[] = {GOOGLE_OCSP_SCT_OID
},
552 _oidAppleCertExtATVAppSigningTest
[] = {APPLE_ATV_APP_SIGNING_OID_TEST
},
553 _oidAppleCertExtATVAppSigningProd
[] = {APPLE_ATV_APP_SIGNING_OID
},
554 _oidAppleCertExtATVVPNProfileSigning
[] = {APPLE_CERT_EXT_APPLE_ATV_VPN_PROFILE_SIGNING
},
555 _oidAppleCertExtCryptoServicesExtEncryption
[] = {APPLE_CERT_EXT_CRYPTO_SERVICES_EXT_ENCRYPTION
},
556 _oidAppleCertExtAST2DiagnosticsServerAuthTest
[] = {APPLE_CERT_EXT_AST2_DIAGNOSTICS_SERVER_AUTH_TEST
},
557 _oidAppleCertExtAST2DiagnosticsServerAuthProd
[] = {APPLE_CERT_EXT_AST2_DIAGNOSTICS_SERVER_AUTH_PROD
},
558 _oidAppleCertExtHomeKitServerAuth
[] = {APPLE_CERT_EXT_HOME_KIT_SERVER_AUTH
},
559 _oidAppleIntmMarkerAppleHomeKitServerCA
[] = {APPLE_CERT_EXT_INTERMEDIATE_MARKER_APPLE_HOME_KIT_SERVER_AUTH
};
561 __unused
const DERItem
562 oidSubjectKeyIdentifier
= { (DERByte
*)_oidSubjectKeyIdentifier
,
563 sizeof(_oidSubjectKeyIdentifier
) },
564 oidKeyUsage
= { (DERByte
*)_oidKeyUsage
,
565 sizeof(_oidKeyUsage
) },
566 oidPrivateKeyUsagePeriod
= { (DERByte
*)_oidPrivateKeyUsagePeriod
,
567 sizeof(_oidPrivateKeyUsagePeriod
) },
568 oidSubjectAltName
= { (DERByte
*)_oidSubjectAltName
,
569 sizeof(_oidSubjectAltName
) },
570 oidIssuerAltName
= { (DERByte
*)_oidIssuerAltName
,
571 sizeof(_oidIssuerAltName
) },
572 oidBasicConstraints
= { (DERByte
*)_oidBasicConstraints
,
573 sizeof(_oidBasicConstraints
) },
574 oidNameConstraints
= { (DERByte
*)_oidNameConstraints
,
575 sizeof(_oidNameConstraints
) },
576 oidCrlDistributionPoints
= { (DERByte
*)_oidCrlDistributionPoints
,
577 sizeof(_oidCrlDistributionPoints
) },
578 oidCertificatePolicies
= { (DERByte
*)_oidCertificatePolicies
,
579 sizeof(_oidCertificatePolicies
) },
580 oidAnyPolicy
= { (DERByte
*)_oidAnyPolicy
,
581 sizeof(_oidAnyPolicy
) },
582 oidPolicyMappings
= { (DERByte
*)_oidPolicyMappings
,
583 sizeof(_oidPolicyMappings
) },
584 oidAuthorityKeyIdentifier
= { (DERByte
*)_oidAuthorityKeyIdentifier
,
585 sizeof(_oidAuthorityKeyIdentifier
) },
586 oidPolicyConstraints
= { (DERByte
*)_oidPolicyConstraints
,
587 sizeof(_oidPolicyConstraints
) },
588 oidExtendedKeyUsage
= { (DERByte
*)_oidExtendedKeyUsage
,
589 sizeof(_oidExtendedKeyUsage
) },
590 oidAnyExtendedKeyUsage
= { (DERByte
*)_oidAnyExtendedKeyUsage
,
591 sizeof(_oidAnyExtendedKeyUsage
) },
592 oidInhibitAnyPolicy
= { (DERByte
*)_oidInhibitAnyPolicy
,
593 sizeof(_oidInhibitAnyPolicy
) },
594 oidAuthorityInfoAccess
= { (DERByte
*)_oidAuthorityInfoAccess
,
595 sizeof(_oidAuthorityInfoAccess
) },
596 oidSubjectInfoAccess
= { (DERByte
*)_oidSubjectInfoAccess
,
597 sizeof(_oidSubjectInfoAccess
) },
598 oidAdOCSP
= { (DERByte
*)_oidAdOCSP
,
599 sizeof(_oidAdOCSP
) },
600 oidAdCAIssuer
= { (DERByte
*)_oidAdCAIssuer
,
601 sizeof(_oidAdCAIssuer
) },
602 oidNetscapeCertType
= { (DERByte
*)_oidNetscapeCertType
,
603 sizeof(_oidNetscapeCertType
) },
604 oidEntrustVersInfo
= { (DERByte
*)_oidEntrustVersInfo
,
605 sizeof(_oidEntrustVersInfo
) },
606 oidMSNTPrincipalName
= { (DERByte
*)_oidMSNTPrincipalName
,
607 sizeof(_oidMSNTPrincipalName
) },
608 /* Policy Qualifier IDs for Internet policy qualifiers. */
609 oidQtCps
= { (DERByte
*)_oidQtCps
,
611 oidQtUNotice
= { (DERByte
*)_oidQtUNotice
,
612 sizeof(_oidQtUNotice
) },
613 /* X.501 Name IDs. */
614 oidCommonName
= { (DERByte
*)_oidCommonName
,
615 sizeof(_oidCommonName
) },
616 oidCountryName
= { (DERByte
*)_oidCountryName
,
617 sizeof(_oidCountryName
) },
618 oidLocalityName
= { (DERByte
*)_oidLocalityName
,
619 sizeof(_oidLocalityName
) },
620 oidStateOrProvinceName
= { (DERByte
*)_oidStateOrProvinceName
,
621 sizeof(_oidStateOrProvinceName
) },
622 oidOrganizationName
= { (DERByte
*)_oidOrganizationName
,
623 sizeof(_oidOrganizationName
) },
624 oidOrganizationalUnitName
= { (DERByte
*)_oidOrganizationalUnitName
,
625 sizeof(_oidOrganizationalUnitName
) },
626 oidDescription
= { (DERByte
*)_oidDescription
,
627 sizeof(_oidDescription
) },
628 oidEmailAddress
= { (DERByte
*)_oidEmailAddress
,
629 sizeof(_oidEmailAddress
) },
630 oidFriendlyName
= { (DERByte
*)_oidFriendlyName
,
631 sizeof(_oidFriendlyName
) },
632 oidLocalKeyId
= { (DERByte
*)_oidLocalKeyId
,
633 sizeof(_oidLocalKeyId
) },
634 oidExtendedKeyUsageServerAuth
= { (DERByte
*)_oidExtendedKeyUsageServerAuth
,
635 sizeof(_oidExtendedKeyUsageServerAuth
) },
636 oidExtendedKeyUsageClientAuth
= { (DERByte
*)_oidExtendedKeyUsageClientAuth
,
637 sizeof(_oidExtendedKeyUsageClientAuth
) },
638 oidExtendedKeyUsageCodeSigning
= { (DERByte
*)_oidExtendedKeyUsageCodeSigning
,
639 sizeof(_oidExtendedKeyUsageCodeSigning
) },
640 oidExtendedKeyUsageEmailProtection
= { (DERByte
*)_oidExtendedKeyUsageEmailProtection
,
641 sizeof(_oidExtendedKeyUsageEmailProtection
) },
642 oidExtendedKeyUsageTimeStamping
= { (DERByte
*)_oidExtendedKeyUsageTimeStamping
,
643 sizeof(_oidExtendedKeyUsageTimeStamping
) },
644 oidExtendedKeyUsageOCSPSigning
= { (DERByte
*)_oidExtendedKeyUsageOCSPSigning
,
645 sizeof(_oidExtendedKeyUsageOCSPSigning
) },
646 oidExtendedKeyUsageIPSec
= { (DERByte
*)_oidExtendedKeyUsageIPSec
,
647 sizeof(_oidExtendedKeyUsageIPSec
) },
648 oidExtendedKeyUsageMicrosoftSGC
= { (DERByte
*)_oidExtendedKeyUsageMicrosoftSGC
,
649 sizeof(_oidExtendedKeyUsageMicrosoftSGC
) },
650 oidExtendedKeyUsageNetscapeSGC
= { (DERByte
*)_oidExtendedKeyUsageNetscapeSGC
,
651 sizeof(_oidExtendedKeyUsageNetscapeSGC
) },
652 oidAppleSecureBootCertSpec
= { (DERByte
*)_oidAppleSecureBootCertSpec
,
653 sizeof(_oidAppleSecureBootCertSpec
) },
654 oidAppleProvisioningProfile
= { (DERByte
*)_oidAppleProvisioningProfile
,
655 sizeof(_oidAppleProvisioningProfile
) },
656 oidAppleApplicationSigning
= { (DERByte
*)_oidAppleApplicationSigning
,
657 sizeof(_oidAppleApplicationSigning
) },
658 oidAppleInstallerPackagingSigningExternal
= { (DERByte
*)_oidAppleInstallerPackagingSigningExternal
,
659 sizeof(_oidAppleInstallerPackagingSigningExternal
) },
660 oidAppleTVOSApplicationSigningProd
= { (DERByte
*)_oidAppleTVOSApplicationSigningProd
,
661 sizeof(_oidAppleTVOSApplicationSigningProd
) },
662 oidAppleTVOSApplicationSigningTest
= { (DERByte
*)_oidAppleTVOSApplicationSigningTest
,
663 sizeof(_oidAppleTVOSApplicationSigningTest
) },
664 oidAppleExtendedKeyUsageCodeSigning
= { (DERByte
*)_oidAppleExtendedKeyUsageCodeSigning
,
665 sizeof(_oidAppleExtendedKeyUsageCodeSigning
) },
666 oidAppleExtendedKeyUsageCodeSigningDev
= { (DERByte
*)_oidAppleExtendedKeyUsageCodeSigningDev
,
667 sizeof(_oidAppleExtendedKeyUsageCodeSigningDev
) },
668 oidAppleExtendedKeyUsageAppleID
= { (DERByte
*)_oidAppleExtendedKeyUsageAppleID
,
669 sizeof(_oidAppleExtendedKeyUsageAppleID
) },
670 oidAppleExtendedKeyUsagePassbook
= { (DERByte
*)_oidAppleExtendedKeyUsagePassbook
,
671 sizeof(_oidAppleExtendedKeyUsagePassbook
) },
672 oidAppleExtendedKeyUsageProfileSigning
673 = { (DERByte
*)_oidAppleExtendedKeyUsageProfileSigning
,
674 sizeof(_oidAppleExtendedKeyUsageProfileSigning
) },
675 oidAppleExtendedKeyUsageQAProfileSigning
676 = { (DERByte
*)_oidAppleExtendedKeyUsageQAProfileSigning
,
677 sizeof(_oidAppleExtendedKeyUsageQAProfileSigning
) },
678 oidAppleIntmMarkerAppleWWDR
= { (DERByte
*)_oidAppleIntmMarkerAppleWWDR
,
679 sizeof(_oidAppleIntmMarkerAppleWWDR
) },
680 oidAppleIntmMarkerAppleID
= { (DERByte
*)_oidAppleIntmMarkerAppleID
,
681 sizeof(_oidAppleIntmMarkerAppleID
) },
682 oidAppleIntmMarkerAppleID2
= { (DERByte
*)_oidAppleIntmMarkerAppleID2
,
683 sizeof(_oidAppleIntmMarkerAppleID2
) },
684 oidApplePushServiceClient
= { (DERByte
*)_oidAppleIntmMarkerAppleID2
,
685 sizeof(_oidAppleIntmMarkerAppleID2
) },
686 oidApplePolicyMobileStore
= { (DERByte
*)_oidApplePolicyMobileStore
,
687 sizeof(_oidApplePolicyMobileStore
)},
688 oidApplePolicyTestMobileStore
= { (DERByte
*)_oidApplePolicyTestMobileStore
,
689 sizeof(_oidApplePolicyTestMobileStore
)},
690 oidApplePolicyEscrowService
= { (DERByte
*)_oidApplePolicyEscrowService
,
691 sizeof(_oidApplePolicyEscrowService
)},
692 oidAppleCertExtensionAppleIDRecordValidationSigning
= { (DERByte
*)_oidAppleCertExtensionAppleIDRecordValidationSigning
,
693 sizeof(_oidAppleCertExtensionAppleIDRecordValidationSigning
)},
694 oidAppleCertExtOSXProvisioningProfileSigning
= { (DERByte
*)_oidAppleCertExtOSXProvisioningProfileSigning
,
695 sizeof(_oidAppleCertExtOSXProvisioningProfileSigning
) },
696 oidAppleIntmMarkerAppleSystemIntg2
= { (DERByte
*) _oidAppleIntmMarkerAppleSystemIntg2
,
697 sizeof(_oidAppleIntmMarkerAppleSystemIntg2
)},
698 oidAppleIntmMarkerAppleSystemIntgG3
= { (DERByte
*) _oidAppleIntmMarkerAppleSystemIntgG3
,
699 sizeof(_oidAppleIntmMarkerAppleSystemIntgG3
)},
700 oidAppleCertExtAppleSMPEncryption
= { (DERByte
*)_oidAppleCertExtAppleSMPEncryption
,
701 sizeof(_oidAppleCertExtAppleSMPEncryption
)},
702 oidAppleCertExtAppleServerAuthentication
703 = { (DERByte
*)_oidAppleCertExtAppleServerAuthentication
,
704 sizeof(_oidAppleCertExtAppleServerAuthentication
) },
705 oidAppleCertExtAppleServerAuthenticationIDSTest
706 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationIDSTest
,
707 sizeof(_oidAppleCertExtAppleServerAuthenticationIDSTest
) },
708 oidAppleCertExtAppleServerAuthenticationIDSProd
709 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationIDSProd
,
710 sizeof(_oidAppleCertExtAppleServerAuthenticationIDSProd
) },
711 oidAppleCertExtAppleServerAuthenticationAPNTest
712 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationAPNTest
,
713 sizeof(_oidAppleCertExtAppleServerAuthenticationAPNTest
) },
714 oidAppleCertExtAppleServerAuthenticationAPNProd
715 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationAPNProd
,
716 sizeof(_oidAppleCertExtAppleServerAuthenticationAPNProd
) },
717 oidAppleCertExtAppleServerAuthenticationGS
718 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationGS
,
719 sizeof(_oidAppleCertExtAppleServerAuthenticationGS
) },
720 oidAppleCertExtAppleServerAuthenticationPPQTest
721 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationPPQTest
,
722 sizeof(_oidAppleCertExtAppleServerAuthenticationPPQTest
) },
723 oidAppleCertExtAppleServerAuthenticationPPQProd
724 = { (DERByte
*)_oidAppleCertExtAppleServerAuthenticationPPQProd
,
725 sizeof(_oidAppleCertExtAppleServerAuthenticationPPQProd
) },
726 oidAppleIntmMarkerAppleServerAuthentication
727 = { (DERByte
*)_oidAppleIntmMarkerAppleServerAuthentication
,
728 sizeof(_oidAppleIntmMarkerAppleServerAuthentication
) },
729 oidAppleCertExtApplePPQSigningProd
= { (DERByte
*)_oidAppleCertExtApplePPQSigningProd
,
730 sizeof(_oidAppleCertExtApplePPQSigningProd
)},
731 oidAppleCertExtApplePPQSigningTest
= { (DERByte
*)_oidAppleCertExtApplePPQSigningTest
,
732 sizeof(_oidAppleCertExtApplePPQSigningTest
)},
733 oidGoogleEmbeddedSignedCertificateTimestamp
734 = { (DERByte
*)_oidGoogleEmbeddedSignedCertificateTimestamp
,
735 sizeof(_oidGoogleEmbeddedSignedCertificateTimestamp
) },
736 oidGoogleOCSPSignedCertificateTimestamp
737 = { (DERByte
*)_oidGoogleOCSPSignedCertificateTimestamp
,
738 sizeof(_oidGoogleOCSPSignedCertificateTimestamp
) },
739 oidAppleCertExtATVAppSigningProd
= { (DERByte
*)_oidAppleCertExtATVAppSigningProd
,
740 sizeof(_oidAppleCertExtATVAppSigningProd
)},
741 oidAppleCertExtATVAppSigningTest
= { (DERByte
*)_oidAppleCertExtATVAppSigningTest
,
742 sizeof(_oidAppleCertExtATVAppSigningTest
)},
743 oidAppleCertExtATVVPNProfileSigning
= { (DERByte
*) _oidAppleCertExtATVVPNProfileSigning
,
744 sizeof(_oidAppleCertExtATVVPNProfileSigning
)},
745 oidAppleCertExtCryptoServicesExtEncryption
= { (DERByte
*)_oidAppleCertExtCryptoServicesExtEncryption
,
746 sizeof(_oidAppleCertExtCryptoServicesExtEncryption
)},
747 oidAppleCertExtAST2DiagnosticsServerAuthTest
= { (DERByte
*)_oidAppleCertExtAST2DiagnosticsServerAuthTest
,
748 sizeof(_oidAppleCertExtAST2DiagnosticsServerAuthTest
)},
749 oidAppleCertExtAST2DiagnosticsServerAuthProd
= { (DERByte
*)_oidAppleCertExtAST2DiagnosticsServerAuthProd
,
750 sizeof(_oidAppleCertExtAST2DiagnosticsServerAuthProd
)},
751 oidAppleCertExtHomeKitServerAuth
= { (DERByte
*)_oidAppleCertExtHomeKitServerAuth
,
752 sizeof(_oidAppleCertExtHomeKitServerAuth
)},
753 oidAppleIntmMarkerAppleHomeKitServerCA
= { (DERByte
*)_oidAppleIntmMarkerAppleHomeKitServerCA
,
754 sizeof(_oidAppleIntmMarkerAppleHomeKitServerCA
) };
759 bool DEROidCompare(const DERItem
*oid1
, const DERItem
*oid2
) {
760 if ((oid1
== NULL
) || (oid2
== NULL
)) {
763 if (oid1
->length
!= oid2
->length
) {
766 if (!DERMemcmp(oid1
->data
, oid2
->data
, oid1
->length
)) {