]> git.saurik.com Git - apple/security.git/blob - cdsa/cssm/oidscrl.cpp
Security-163.tar.gz
[apple/security.git] / cdsa / cssm / oidscrl.cpp
1 /*
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
3 *
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
8 * using this file.
9 *
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
16 */
17
18
19 /*
20
21 File: oidscert.cpp
22
23 Contains: Object Identifiers for X509 Certificate Library
24
25 Copyright: (c) 1999 Apple Computer, Inc., all rights reserved.
26
27 */
28
29 #include <Security/oidscrl.h>
30
31 static const uint8
32
33 /* CRL OIDs */
34 X509V2CRLSignedCrlStruct[] = {INTEL_X509V2_CRL_R08, 0},
35 X509V2CRLSignedCrlCStruct [] = {INTEL_X509V2_CRL_R08, 0, INTEL_X509_C_DATATYPE},
36 X509V2CRLTbsCertListStruct [] = {INTEL_X509V2_CRL_R08, 1},
37 X509V2CRLTbsCertListCStruct[] = {INTEL_X509V2_CRL_R08, 1, INTEL_X509_C_DATATYPE},
38 X509V2CRLVersion [] = {INTEL_X509V2_CRL_R08, 2},
39 X509V1CRLIssuerStruct[] = {INTEL_X509V2_CRL_R08, 3},
40 X509V1CRLIssuerNameCStruct[] = {INTEL_X509V2_CRL_R08, 3, INTEL_X509_C_DATATYPE},
41 X509V1CRLIssuerNameLDAP[] = {INTEL_X509V2_CRL_R08, 3,
42 INTEL_X509_LDAPSTRING_DATATYPE},
43 X509V1CRLThisUpdate[] = {INTEL_X509V2_CRL_R08, 4},
44 X509V1CRLNextUpdate[] = {INTEL_X509V2_CRL_R08, 5},
45
46 /* CRL Entry (CRL CertList) OIDS */
47 X509V1CRLRevokedCertificatesStruct[] = {INTEL_X509V2_CRL_R08, 7},
48 X509V1CRLRevokedCertificatesCStruct[] = {INTEL_X509V2_CRL_R08, 7, INTEL_X509_C_DATATYPE},
49 X509V1CRLNumberOfRevokedCertEntries[] = {INTEL_X509V2_CRL_R08, 6},
50 X509V1CRLRevokedEntryStruct[] = {INTEL_X509V2_CRL_R08, 15},
51 X509V1CRLRevokedEntryCStruct[] = {INTEL_X509V2_CRL_R08, 15, INTEL_X509_C_DATATYPE},
52 X509V1CRLRevokedEntrySerialNumber[] = {INTEL_X509V2_CRL_R08, 16},
53 X509V1CRLRevokedEntryRevocationDate[] = {INTEL_X509V2_CRL_R08, 17},
54
55 /* CRL Entry (CRL CertList) Extension OIDs */
56 X509V2CRLRevokedEntryAllExtensionsStruct[] = {INTEL_X509V2_CRL_R08, 18},
57 X509V2CRLRevokedEntryAllExtensionsCStruct[] = {INTEL_X509V2_CRL_R08, 18, INTEL_X509_C_DATATYPE},
58 X509V2CRLRevokedEntryNumberOfExtensions[] = {INTEL_X509V2_CRL_R08, 20},
59 X509V2CRLRevokedEntrySingleExtensionStruct[]= {INTEL_X509V2_CRL_R08, 19},
60 X509V2CRLRevokedEntrySingleExtensionCStruct[]= {INTEL_X509V2_CRL_R08, 19, INTEL_X509_C_DATATYPE},
61 X509V2CRLRevokedEntryExtensionId[] = {INTEL_X509V2_CRL_R08, 21},
62 X509V2CRLRevokedEntryExtensionCritical[] = {INTEL_X509V2_CRL_R08, 22},
63 X509V2CRLRevokedEntryExtensionType[] = {INTEL_X509V2_CRL_R08, 23},
64 X509V2CRLRevokedEntryExtensionValue[] = {INTEL_X509V2_CRL_R08, 24},
65
66 /* CRL Extension OIDs */
67 X509V2CRLAllExtensionsStruct[] = {INTEL_X509V2_CRL_R08, 8},
68 X509V2CRLAllExtensionsCStruct[] = {INTEL_X509V2_CRL_R08, 8, INTEL_X509_C_DATATYPE},
69 X509V2CRLNumberOfExtensions[] = {INTEL_X509V2_CRL_R08, 10},
70 X509V2CRLSingleExtensionStruct[] = {INTEL_X509V2_CRL_R08, 9},
71 X509V2CRLSingleExtensionCStruct[] = {INTEL_X509V2_CRL_R08, 9, INTEL_X509_C_DATATYPE},
72 X509V2CRLExtensionId[] = {INTEL_X509V2_CRL_R08, 11},
73 X509V2CRLExtensionCritical[] = {INTEL_X509V2_CRL_R08, 12},
74 X509V2CRLExtensionType[] = {INTEL_X509V2_CRL_R08, 13};
75
76 const CSSM_OID
77
78 /* CRL OIDs */
79 CSSMOID_X509V2CRLSignedCrlStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
80 (uint8 *)X509V2CRLSignedCrlStruct},
81 CSSMOID_X509V2CRLSignedCrlCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
82 (uint8 *)X509V2CRLSignedCrlCStruct},
83 CSSMOID_X509V2CRLTbsCertListStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
84 (uint8 *)X509V2CRLTbsCertListStruct},
85 CSSMOID_X509V2CRLTbsCertListCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
86 (uint8 *)X509V2CRLTbsCertListCStruct},
87 CSSMOID_X509V2CRLVersion = {INTEL_X509V2_CRL_R08_LENGTH+1,
88 (uint8 *)X509V2CRLVersion},
89 CSSMOID_X509V1CRLIssuerStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
90 (uint8 *)X509V1CRLIssuerStruct},
91 CSSMOID_X509V1CRLIssuerNameCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
92 (uint8 *)X509V1CRLIssuerNameCStruct},
93 CSSMOID_X509V1CRLIssuerNameLDAP = {INTEL_X509V2_CRL_R08_LENGTH+2,
94 (uint8 *)X509V1CRLIssuerNameLDAP},
95 CSSMOID_X509V1CRLThisUpdate = {INTEL_X509V2_CRL_R08_LENGTH+1,
96 (uint8 *)X509V1CRLThisUpdate},
97 CSSMOID_X509V1CRLNextUpdate = {INTEL_X509V2_CRL_R08_LENGTH+1,
98 (uint8 *)X509V1CRLNextUpdate},
99
100 /* CRL Entry (CRL CertList) OIDS */
101 CSSMOID_X509V1CRLRevokedCertificatesStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
102 (uint8 *)X509V1CRLRevokedCertificatesStruct},
103 CSSMOID_X509V1CRLRevokedCertificatesCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
104 (uint8 *)X509V1CRLRevokedCertificatesCStruct},
105 CSSMOID_X509V1CRLNumberOfRevokedCertEntries = {INTEL_X509V2_CRL_R08_LENGTH+1,
106 (uint8 *)X509V1CRLNumberOfRevokedCertEntries},
107 CSSMOID_X509V1CRLRevokedEntryStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
108 (uint8 *)X509V1CRLRevokedEntryStruct},
109 CSSMOID_X509V1CRLRevokedEntryCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
110 (uint8 *)X509V1CRLRevokedEntryCStruct},
111 CSSMOID_X509V1CRLRevokedEntrySerialNumber = {INTEL_X509V2_CRL_R08_LENGTH+1,
112 (uint8 *)X509V1CRLRevokedEntrySerialNumber},
113 CSSMOID_X509V1CRLRevokedEntryRevocationDate = {INTEL_X509V2_CRL_R08_LENGTH+1,
114 (uint8 *)X509V1CRLRevokedEntryRevocationDate},
115
116 /* CRL Entry (CRL CertList) Extension OIDs */
117 CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
118 (uint8 *)X509V2CRLRevokedEntryAllExtensionsStruct},
119 CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
120 (uint8 *)X509V2CRLRevokedEntryAllExtensionsCStruct},
121 CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions = {INTEL_X509V2_CRL_R08_LENGTH+1,
122 (uint8 *)X509V2CRLRevokedEntryNumberOfExtensions},
123 CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
124 (uint8 *)X509V2CRLRevokedEntrySingleExtensionStruct},
125 CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
126 (uint8 *)X509V2CRLRevokedEntrySingleExtensionCStruct},
127 CSSMOID_X509V2CRLRevokedEntryExtensionId = {INTEL_X509V2_CRL_R08_LENGTH+1,
128 (uint8 *)X509V2CRLRevokedEntryExtensionId},
129 CSSMOID_X509V2CRLRevokedEntryExtensionCritical = {INTEL_X509V2_CRL_R08_LENGTH+1,
130 (uint8 *)X509V2CRLRevokedEntryExtensionCritical},
131 CSSMOID_X509V2CRLRevokedEntryExtensionType = {INTEL_X509V2_CRL_R08_LENGTH+1,
132 (uint8 *)X509V2CRLRevokedEntryExtensionType},
133 CSSMOID_X509V2CRLRevokedEntryExtensionValue = {INTEL_X509V2_CRL_R08_LENGTH+1,
134 (uint8 *)X509V2CRLRevokedEntryExtensionValue},
135
136 /* CRL Extension OIDs */
137 CSSMOID_X509V2CRLAllExtensionsStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
138 (uint8 *)X509V2CRLAllExtensionsStruct},
139 CSSMOID_X509V2CRLAllExtensionsCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
140 (uint8 *)X509V2CRLAllExtensionsCStruct},
141 CSSMOID_X509V2CRLNumberOfExtensions = {INTEL_X509V2_CRL_R08_LENGTH+1,
142 (uint8 *)X509V2CRLNumberOfExtensions},
143 CSSMOID_X509V2CRLSingleExtensionStruct = {INTEL_X509V2_CRL_R08_LENGTH+1,
144 (uint8 *)X509V2CRLSingleExtensionStruct},
145 CSSMOID_X509V2CRLSingleExtensionCStruct = {INTEL_X509V2_CRL_R08_LENGTH+2,
146 (uint8 *)X509V2CRLSingleExtensionCStruct},
147 CSSMOID_X509V2CRLExtensionId = {INTEL_X509V2_CRL_R08_LENGTH+1,
148 (uint8 *)X509V2CRLExtensionId},
149 CSSMOID_X509V2CRLExtensionCritical = {INTEL_X509V2_CRL_R08_LENGTH+1,
150 (uint8 *)X509V2CRLExtensionCritical},
151 CSSMOID_X509V2CRLExtensionType = {INTEL_X509V2_CRL_R08_LENGTH+1,
152 (uint8 *)X509V2CRLExtensionType};