Removed incorrect test on IPAddresses (was relying on IPaddresses encoded as text)
[gnutls.git] / lib / pkix_asn1_tab.c
blobd5d5cc405e09567afdb426e34e2ccf334f3a4871
1 #if HAVE_CONFIG_H
2 # include "config.h"
3 #endif
5 #include <libtasn1.h>
7 const ASN1_ARRAY_TYPE pkix_asn1_tab[] = {
8 { "PKIX1", 536875024, NULL },
9 { NULL, 1073741836, NULL },
10 { "id-pkix", 1879048204, NULL },
11 { "iso", 1073741825, "1"},
12 { "identified-organization", 1073741825, "3"},
13 { "dod", 1073741825, "6"},
14 { "internet", 1073741825, "1"},
15 { "security", 1073741825, "5"},
16 { "mechanisms", 1073741825, "5"},
17 { "pkix", 1, "7"},
18 { "AuthorityKeyIdentifier", 1610612741, NULL },
19 { "keyIdentifier", 1610637314, "KeyIdentifier"},
20 { NULL, 4104, "0"},
21 { "authorityCertIssuer", 1610637314, "GeneralNames"},
22 { NULL, 4104, "1"},
23 { "authorityCertSerialNumber", 536895490, "CertificateSerialNumber"},
24 { NULL, 4104, "2"},
25 { "KeyIdentifier", 1073741831, NULL },
26 { "SubjectKeyIdentifier", 1073741826, "KeyIdentifier"},
27 { "KeyUsage", 1073741830, NULL },
28 { "DirectoryString", 1610612754, NULL },
29 { "teletexString", 1612709890, "TeletexString"},
30 { "MAX", 524298, "1"},
31 { "printableString", 1612709890, "PrintableString"},
32 { "MAX", 524298, "1"},
33 { "universalString", 1612709890, "UniversalString"},
34 { "MAX", 524298, "1"},
35 { "utf8String", 1612709890, "UTF8String"},
36 { "MAX", 524298, "1"},
37 { "bmpString", 1612709890, "BMPString"},
38 { "MAX", 524298, "1"},
39 { "ia5String", 538968066, "IA5String"},
40 { "MAX", 524298, "1"},
41 { "SubjectAltName", 1073741826, "GeneralNames"},
42 { "GeneralNames", 1612709899, NULL },
43 { "MAX", 1074266122, "1"},
44 { NULL, 2, "GeneralName"},
45 { "GeneralName", 1610612754, NULL },
46 { "otherName", 1610620930, "AnotherName"},
47 { NULL, 4104, "0"},
48 { "rfc822Name", 1610620930, "IA5String"},
49 { NULL, 4104, "1"},
50 { "dNSName", 1610620930, "IA5String"},
51 { NULL, 4104, "2"},
52 { "x400Address", 1610620941, NULL },
53 { NULL, 4104, "3"},
54 { "directoryName", 1610620930, "RDNSequence"},
55 { NULL, 2056, "4"},
56 { "ediPartyName", 1610620941, NULL },
57 { NULL, 4104, "5"},
58 { "uniformResourceIdentifier", 1610620930, "IA5String"},
59 { NULL, 4104, "6"},
60 { "iPAddress", 1610620935, NULL },
61 { NULL, 4104, "7"},
62 { "registeredID", 536879116, NULL },
63 { NULL, 4104, "8"},
64 { "AnotherName", 1610612741, NULL },
65 { "type-id", 1073741836, NULL },
66 { "value", 541073421, NULL },
67 { NULL, 1073743880, "0"},
68 { "type-id", 1, NULL },
69 { "IssuerAltName", 1073741826, "GeneralNames"},
70 { "BasicConstraints", 1610612741, NULL },
71 { "cA", 1610645508, NULL },
72 { NULL, 131081, NULL },
73 { "pathLenConstraint", 537411587, NULL },
74 { "0", 10, "MAX"},
75 { "CRLDistributionPoints", 1612709899, NULL },
76 { "MAX", 1074266122, "1"},
77 { NULL, 2, "DistributionPoint"},
78 { "DistributionPoint", 1610612741, NULL },
79 { "distributionPoint", 1610637314, "DistributionPointName"},
80 { NULL, 2056, "0"},
81 { "reasons", 1610637314, "ReasonFlags"},
82 { NULL, 4104, "1"},
83 { "cRLIssuer", 536895490, "GeneralNames"},
84 { NULL, 4104, "2"},
85 { "DistributionPointName", 1610612754, NULL },
86 { "fullName", 1610620930, "GeneralNames"},
87 { NULL, 4104, "0"},
88 { "nameRelativeToCRLIssuer", 536879106, "RelativeDistinguishedName"},
89 { NULL, 4104, "1"},
90 { "ReasonFlags", 1073741830, NULL },
91 { "ExtKeyUsageSyntax", 1612709899, NULL },
92 { "MAX", 1074266122, "1"},
93 { NULL, 2, "KeyPurposeId"},
94 { "KeyPurposeId", 1073741836, NULL },
95 { "CRLNumber", 1611137027, NULL },
96 { "0", 10, "MAX"},
97 { "CertificateIssuer", 1073741826, "GeneralNames"},
98 { "NumericString", 1610620935, NULL },
99 { NULL, 4360, "18"},
100 { "IA5String", 1610620935, NULL },
101 { NULL, 4360, "22"},
102 { "TeletexString", 1610620935, NULL },
103 { NULL, 4360, "20"},
104 { "PrintableString", 1610620935, NULL },
105 { NULL, 4360, "19"},
106 { "UniversalString", 1610620935, NULL },
107 { NULL, 4360, "28"},
108 { "BMPString", 1610620935, NULL },
109 { NULL, 4360, "30"},
110 { "UTF8String", 1610620935, NULL },
111 { NULL, 4360, "12"},
112 { "Attribute", 1610612741, NULL },
113 { "type", 1073741826, "AttributeType"},
114 { "values", 536870927, NULL },
115 { NULL, 2, "AttributeValue"},
116 { "AttributeType", 1073741836, NULL },
117 { "AttributeValue", 1614807053, NULL },
118 { "type", 1, NULL },
119 { "AttributeTypeAndValue", 1610612741, NULL },
120 { "type", 1073741826, "AttributeType"},
121 { "value", 2, "AttributeValue"},
122 { "id-at", 1879048204, NULL },
123 { "joint-iso-ccitt", 1073741825, "2"},
124 { "ds", 1073741825, "5"},
125 { NULL, 1, "4"},
126 { "PostalAddress", 1610612747, NULL },
127 { NULL, 2, "DirectoryString"},
128 { "emailAddress", 1880096780, "AttributeType"},
129 { "iso", 1073741825, "1"},
130 { "member-body", 1073741825, "2"},
131 { "us", 1073741825, "840"},
132 { "rsadsi", 1073741825, "113549"},
133 { "pkcs", 1073741825, "1"},
134 { NULL, 1073741825, "9"},
135 { NULL, 1, "1"},
136 { "Pkcs9email", 1612709890, "IA5String"},
137 { "ub-emailaddress-length", 524298, "1"},
138 { "Name", 1610612754, NULL },
139 { "rdnSequence", 2, "RDNSequence"},
140 { "RDNSequence", 1610612747, NULL },
141 { NULL, 2, "RelativeDistinguishedName"},
142 { "DistinguishedName", 1073741826, "RDNSequence"},
143 { "RelativeDistinguishedName", 1612709903, NULL },
144 { "MAX", 1074266122, "1"},
145 { NULL, 2, "AttributeTypeAndValue"},
146 { "Certificate", 1610612741, NULL },
147 { "tbsCertificate", 1073741826, "TBSCertificate"},
148 { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
149 { "signature", 6, NULL },
150 { "TBSCertificate", 1610612741, NULL },
151 { "version", 1610653698, "Version"},
152 { NULL, 1073741833, "v1"},
153 { NULL, 2056, "0"},
154 { "serialNumber", 1073741826, "CertificateSerialNumber"},
155 { "signature", 1073741826, "AlgorithmIdentifier"},
156 { "issuer", 1073741826, "Name"},
157 { "validity", 1073741826, "Validity"},
158 { "subject", 1073741826, "Name"},
159 { "subjectPublicKeyInfo", 1073741826, "SubjectPublicKeyInfo"},
160 { "issuerUniqueID", 1610637314, "UniqueIdentifier"},
161 { NULL, 4104, "1"},
162 { "subjectUniqueID", 1610637314, "UniqueIdentifier"},
163 { NULL, 4104, "2"},
164 { "extensions", 536895490, "Extensions"},
165 { NULL, 2056, "3"},
166 { "Version", 1610874883, NULL },
167 { "v1", 1073741825, "0"},
168 { "v2", 1073741825, "1"},
169 { "v3", 1, "2"},
170 { "CertificateSerialNumber", 1073741827, NULL },
171 { "Validity", 1610612741, NULL },
172 { "notBefore", 1073741826, "Time"},
173 { "notAfter", 2, "Time"},
174 { "Time", 1610612754, NULL },
175 { "utcTime", 1090519057, NULL },
176 { "generalTime", 8388625, NULL },
177 { "UniqueIdentifier", 1073741830, NULL },
178 { "SubjectPublicKeyInfo", 1610612741, NULL },
179 { "algorithm", 1073741826, "AlgorithmIdentifier"},
180 { "subjectPublicKey", 6, NULL },
181 { "Extensions", 1612709899, NULL },
182 { "MAX", 1074266122, "1"},
183 { NULL, 2, "Extension"},
184 { "Extension", 1610612741, NULL },
185 { "extnID", 1073741836, NULL },
186 { "critical", 1610645508, NULL },
187 { NULL, 131081, NULL },
188 { "extnValue", 7, NULL },
189 { "CertificateList", 1610612741, NULL },
190 { "tbsCertList", 1073741826, "TBSCertList"},
191 { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
192 { "signature", 6, NULL },
193 { "TBSCertList", 1610612741, NULL },
194 { "version", 1073758210, "Version"},
195 { "signature", 1073741826, "AlgorithmIdentifier"},
196 { "issuer", 1073741826, "Name"},
197 { "thisUpdate", 1073741826, "Time"},
198 { "nextUpdate", 1073758210, "Time"},
199 { "revokedCertificates", 1610629131, NULL },
200 { NULL, 536870917, NULL },
201 { "userCertificate", 1073741826, "CertificateSerialNumber"},
202 { "revocationDate", 1073741826, "Time"},
203 { "crlEntryExtensions", 16386, "Extensions"},
204 { "crlExtensions", 536895490, "Extensions"},
205 { NULL, 2056, "0"},
206 { "AlgorithmIdentifier", 1610612741, NULL },
207 { "algorithm", 1073741836, NULL },
208 { "parameters", 541081613, NULL },
209 { "algorithm", 1, NULL },
210 { "Dss-Sig-Value", 1610612741, NULL },
211 { "r", 1073741827, NULL },
212 { "s", 3, NULL },
213 { "DomainParameters", 1610612741, NULL },
214 { "p", 1073741827, NULL },
215 { "g", 1073741827, NULL },
216 { "q", 1073741827, NULL },
217 { "j", 1073758211, NULL },
218 { "validationParms", 16386, "ValidationParms"},
219 { "ValidationParms", 1610612741, NULL },
220 { "seed", 1073741830, NULL },
221 { "pgenCounter", 3, NULL },
222 { "Dss-Parms", 1610612741, NULL },
223 { "p", 1073741827, NULL },
224 { "q", 1073741827, NULL },
225 { "g", 3, NULL },
226 { "CountryName", 1610620946, NULL },
227 { NULL, 1073746952, "1"},
228 { "x121-dcc-code", 1612709890, "NumericString"},
229 { NULL, 1048586, "ub-country-name-numeric-length"},
230 { "iso-3166-alpha2-code", 538968066, "PrintableString"},
231 { NULL, 1048586, "ub-country-name-alpha-length"},
232 { "OrganizationName", 1612709890, "PrintableString"},
233 { "ub-organization-name-length", 524298, "1"},
234 { "NumericUserIdentifier", 1612709890, "NumericString"},
235 { "ub-numeric-user-id-length", 524298, "1"},
236 { "OrganizationalUnitNames", 1612709899, NULL },
237 { "ub-organizational-units", 1074266122, "1"},
238 { NULL, 2, "OrganizationalUnitName"},
239 { "OrganizationalUnitName", 1612709890, "PrintableString"},
240 { "ub-organizational-unit-name-length", 524298, "1"},
241 { "CommonName", 1073741826, "PrintableString"},
242 { "pkcs-7-ContentInfo", 1610612741, NULL },
243 { "contentType", 1073741826, "pkcs-7-ContentType"},
244 { "content", 541073421, NULL },
245 { NULL, 1073743880, "0"},
246 { "contentType", 1, NULL },
247 { "pkcs-7-DigestInfo", 1610612741, NULL },
248 { "digestAlgorithm", 1073741826, "pkcs-7-DigestAlgorithmIdentifier"},
249 { "digest", 2, "pkcs-7-Digest"},
250 { "pkcs-7-Digest", 1073741831, NULL },
251 { "pkcs-7-ContentType", 1073741836, NULL },
252 { "pkcs-7-SignedData", 1610612741, NULL },
253 { "version", 1073741826, "pkcs-7-CMSVersion"},
254 { "digestAlgorithms", 1073741826, "pkcs-7-DigestAlgorithmIdentifiers"},
255 { "encapContentInfo", 1073741826, "pkcs-7-EncapsulatedContentInfo"},
256 { "certificates", 1610637314, "pkcs-7-CertificateSet"},
257 { NULL, 4104, "0"},
258 { "crls", 1610637314, "pkcs-7-CertificateRevocationLists"},
259 { NULL, 4104, "1"},
260 { "signerInfos", 2, "pkcs-7-SignerInfos"},
261 { "pkcs-7-CMSVersion", 1610874883, NULL },
262 { "v0", 1073741825, "0"},
263 { "v1", 1073741825, "1"},
264 { "v2", 1073741825, "2"},
265 { "v3", 1073741825, "3"},
266 { "v4", 1, "4"},
267 { "pkcs-7-DigestAlgorithmIdentifiers", 1610612751, NULL },
268 { NULL, 2, "pkcs-7-DigestAlgorithmIdentifier"},
269 { "pkcs-7-DigestAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"},
270 { "pkcs-7-EncapsulatedContentInfo", 1610612741, NULL },
271 { "eContentType", 1073741826, "pkcs-7-ContentType"},
272 { "eContent", 536895495, NULL },
273 { NULL, 2056, "0"},
274 { "pkcs-7-CertificateRevocationLists", 1610612751, NULL },
275 { NULL, 13, NULL },
276 { "pkcs-7-CertificateChoices", 1610612754, NULL },
277 { "certificate", 13, NULL },
278 { "pkcs-7-CertificateSet", 1610612751, NULL },
279 { NULL, 2, "pkcs-7-CertificateChoices"},
280 { "pkcs-7-SignerInfos", 1610612751, NULL },
281 { NULL, 13, NULL },
282 { "pkcs-10-CertificationRequestInfo", 1610612741, NULL },
283 { "version", 1610874883, NULL },
284 { "v1", 1, "0"},
285 { "subject", 1073741826, "Name"},
286 { "subjectPKInfo", 1073741826, "SubjectPublicKeyInfo"},
287 { "attributes", 536879106, "Attributes"},
288 { NULL, 4104, "0"},
289 { "Attributes", 1610612751, NULL },
290 { NULL, 2, "Attribute"},
291 { "pkcs-10-CertificationRequest", 1610612741, NULL },
292 { "certificationRequestInfo", 1073741826, "pkcs-10-CertificationRequestInfo"},
293 { "signatureAlgorithm", 1073741826, "AlgorithmIdentifier"},
294 { "signature", 6, NULL },
295 { "pkcs-9-at-challengePassword", 1879048204, NULL },
296 { "iso", 1073741825, "1"},
297 { "member-body", 1073741825, "2"},
298 { "us", 1073741825, "840"},
299 { "rsadsi", 1073741825, "113549"},
300 { "pkcs", 1073741825, "1"},
301 { NULL, 1073741825, "9"},
302 { NULL, 1, "7"},
303 { "pkcs-9-challengePassword", 1610612754, NULL },
304 { "printableString", 1073741826, "PrintableString"},
305 { "utf8String", 2, "UTF8String"},
306 { "pkcs-9-localKeyId", 1073741831, NULL },
307 { "pkcs-8-PrivateKeyInfo", 1610612741, NULL },
308 { "version", 1073741826, "pkcs-8-Version"},
309 { "privateKeyAlgorithm", 1073741826, "AlgorithmIdentifier"},
310 { "privateKey", 1073741826, "pkcs-8-PrivateKey"},
311 { "attributes", 536895490, "Attributes"},
312 { NULL, 4104, "0"},
313 { "pkcs-8-Version", 1610874883, NULL },
314 { "v1", 1, "0"},
315 { "pkcs-8-PrivateKey", 1073741831, NULL },
316 { "pkcs-8-Attributes", 1610612751, NULL },
317 { NULL, 2, "Attribute"},
318 { "pkcs-8-EncryptedPrivateKeyInfo", 1610612741, NULL },
319 { "encryptionAlgorithm", 1073741826, "AlgorithmIdentifier"},
320 { "encryptedData", 2, "pkcs-8-EncryptedData"},
321 { "pkcs-8-EncryptedData", 1073741831, NULL },
322 { "pkcs-5-des-EDE3-CBC-params", 1612709895, NULL },
323 { NULL, 1048586, "8"},
324 { "pkcs-5-aes128-CBC-params", 1612709895, NULL },
325 { NULL, 1048586, "16"},
326 { "pkcs-5-aes192-CBC-params", 1612709895, NULL },
327 { NULL, 1048586, "16"},
328 { "pkcs-5-aes256-CBC-params", 1612709895, NULL },
329 { NULL, 1048586, "16"},
330 { "pkcs-5-PBES2-params", 1610612741, NULL },
331 { "keyDerivationFunc", 1073741826, "AlgorithmIdentifier"},
332 { "encryptionScheme", 2, "AlgorithmIdentifier"},
333 { "pkcs-5-PBKDF2-params", 1610612741, NULL },
334 { "salt", 1610612754, NULL },
335 { "specified", 1073741831, NULL },
336 { "otherSource", 2, "AlgorithmIdentifier"},
337 { "iterationCount", 1611137027, NULL },
338 { "1", 10, "MAX"},
339 { "keyLength", 1611153411, NULL },
340 { "1", 10, "MAX"},
341 { "prf", 16386, "AlgorithmIdentifier"},
342 { "pkcs-12-PFX", 1610612741, NULL },
343 { "version", 1610874883, NULL },
344 { "v3", 1, "3"},
345 { "authSafe", 1073741826, "pkcs-7-ContentInfo"},
346 { "macData", 16386, "pkcs-12-MacData"},
347 { "pkcs-12-PbeParams", 1610612741, NULL },
348 { "salt", 1073741831, NULL },
349 { "iterations", 3, NULL },
350 { "pkcs-12-MacData", 1610612741, NULL },
351 { "mac", 1073741826, "pkcs-7-DigestInfo"},
352 { "macSalt", 1073741831, NULL },
353 { "iterations", 536903683, NULL },
354 { NULL, 9, "1"},
355 { "pkcs-12-AuthenticatedSafe", 1610612747, NULL },
356 { NULL, 2, "pkcs-7-ContentInfo"},
357 { "pkcs-12-SafeContents", 1610612747, NULL },
358 { NULL, 2, "pkcs-12-SafeBag"},
359 { "pkcs-12-SafeBag", 1610612741, NULL },
360 { "bagId", 1073741836, NULL },
361 { "bagValue", 1614815245, NULL },
362 { NULL, 1073743880, "0"},
363 { "badId", 1, NULL },
364 { "bagAttributes", 536887311, NULL },
365 { NULL, 2, "pkcs-12-PKCS12Attribute"},
366 { "pkcs-12-KeyBag", 1073741826, "pkcs-8-PrivateKeyInfo"},
367 { "pkcs-12-PKCS8ShroudedKeyBag", 1073741826, "pkcs-8-EncryptedPrivateKeyInfo"},
368 { "pkcs-12-CertBag", 1610612741, NULL },
369 { "certId", 1073741836, NULL },
370 { "certValue", 541073421, NULL },
371 { NULL, 1073743880, "0"},
372 { "certId", 1, NULL },
373 { "pkcs-12-CRLBag", 1610612741, NULL },
374 { "crlId", 1073741836, NULL },
375 { "crlValue", 541073421, NULL },
376 { NULL, 1073743880, "0"},
377 { "crlId", 1, NULL },
378 { "pkcs-12-SecretBag", 1610612741, NULL },
379 { "secretTypeId", 1073741836, NULL },
380 { "secretValue", 541073421, NULL },
381 { NULL, 1073743880, "0"},
382 { "secretTypeId", 1, NULL },
383 { "pkcs-12-PKCS12Attribute", 1073741826, "Attribute"},
384 { "pkcs-7-Data", 1073741831, NULL },
385 { "pkcs-7-EncryptedData", 1610612741, NULL },
386 { "version", 1073741826, "pkcs-7-CMSVersion"},
387 { "encryptedContentInfo", 1073741826, "pkcs-7-EncryptedContentInfo"},
388 { "unprotectedAttrs", 536895490, "pkcs-7-UnprotectedAttributes"},
389 { NULL, 4104, "1"},
390 { "pkcs-7-EncryptedContentInfo", 1610612741, NULL },
391 { "contentType", 1073741826, "pkcs-7-ContentType"},
392 { "contentEncryptionAlgorithm", 1073741826, "pkcs-7-ContentEncryptionAlgorithmIdentifier"},
393 { "encryptedContent", 536895490, "pkcs-7-EncryptedContent"},
394 { NULL, 4104, "0"},
395 { "pkcs-7-ContentEncryptionAlgorithmIdentifier", 1073741826, "AlgorithmIdentifier"},
396 { "pkcs-7-EncryptedContent", 1073741831, NULL },
397 { "pkcs-7-UnprotectedAttributes", 1612709903, NULL },
398 { "MAX", 1074266122, "1"},
399 { NULL, 2, "Attribute"},
400 { "ProxyCertInfo", 1610612741, NULL },
401 { "pCPathLenConstraint", 1611153411, NULL },
402 { "0", 10, "MAX"},
403 { "proxyPolicy", 2, "ProxyPolicy"},
404 { "ProxyPolicy", 536870917, NULL },
405 { "policyLanguage", 1073741836, NULL },
406 { "policy", 16391, NULL },
407 { NULL, 0, NULL }