This commit was generated by cvs2svn to track changes on a CVS vendor
[openssl.git] / crypto / objects / obj_dat.h
1 /* lib/obj/obj_dat.h */
2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3  * All rights reserved.
4  *
5  * This package is an SSL implementation written
6  * by Eric Young (eay@cryptsoft.com).
7  * The implementation was written so as to conform with Netscapes SSL.
8  * 
9  * This library is free for commercial and non-commercial use as long as
10  * the following conditions are aheared to.  The following conditions
11  * apply to all code found in this distribution, be it the RC4, RSA,
12  * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13  * included with this distribution is covered by the same copyright terms
14  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15  * 
16  * Copyright remains Eric Young's, and as such any Copyright notices in
17  * the code are not to be removed.
18  * If this package is used in a product, Eric Young should be given attribution
19  * as the author of the parts of the library used.
20  * This can be in the form of a textual message at program startup or
21  * in documentation (online or textual) provided with the package.
22  * 
23  * Redistribution and use in source and binary forms, with or without
24  * modification, are permitted provided that the following conditions
25  * are met:
26  * 1. Redistributions of source code must retain the copyright
27  *    notice, this list of conditions and the following disclaimer.
28  * 2. Redistributions in binary form must reproduce the above copyright
29  *    notice, this list of conditions and the following disclaimer in the
30  *    documentation and/or other materials provided with the distribution.
31  * 3. All advertising materials mentioning features or use of this software
32  *    must display the following acknowledgement:
33  *    "This product includes cryptographic software written by
34  *     Eric Young (eay@cryptsoft.com)"
35  *    The word 'cryptographic' can be left out if the rouines from the library
36  *    being used are not cryptographic related :-).
37  * 4. If you include any Windows specific code (or a derivative thereof) from 
38  *    the apps directory (application code) you must include an acknowledgement:
39  *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40  * 
41  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51  * SUCH DAMAGE.
52  * 
53  * The licence and distribution terms for any publically available version or
54  * derivative of this code cannot be changed.  i.e. this code cannot simply be
55  * copied and put under another distribution licence
56  * [including the GNU Public Licence.]
57  */
58
59 /* THIS FILE IS GENERATED FROM Objects.h by obj_dat.pl via the
60  * following command:
61  * perl obj_dat.pl < objects.h > obj_dat.h
62  */
63
64 #define NUM_NID 97
65 #define NUM_SN 70
66 #define NUM_LN 96
67 #define NUM_OBJ 78
68
69 static unsigned char lvalues[515]={
70 0x2A,0x86,0x48,0x86,0xF7,0x0D,               /* [  0] OBJ_rsadsi */
71 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,          /* [  6] OBJ_pkcs */
72 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x02,     /* [ 13] OBJ_md2 */
73 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x05,     /* [ 21] OBJ_md5 */
74 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x04,     /* [ 29] OBJ_rc4 */
75 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x01,/* [ 37] OBJ_rsaEncryption */
76 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x02,/* [ 46] OBJ_md2WithRSAEncryption */
77 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x04,/* [ 55] OBJ_md5WithRSAEncryption */
78 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x01,/* [ 64] OBJ_pbeWithMD2AndDES_CBC */
79 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x03,/* [ 73] OBJ_pbeWithMD5AndDES_CBC */
80 0x55,                                        /* [ 82] OBJ_X500 */
81 0x55,0x04,                                   /* [ 83] OBJ_X509 */
82 0x55,0x04,0x03,                              /* [ 85] OBJ_commonName */
83 0x55,0x04,0x06,                              /* [ 88] OBJ_countryName */
84 0x55,0x04,0x07,                              /* [ 91] OBJ_localityName */
85 0x55,0x04,0x08,                              /* [ 94] OBJ_stateOrProvinceName */
86 0x55,0x04,0x0A,                              /* [ 97] OBJ_organizationName */
87 0x55,0x04,0x0B,                              /* [100] OBJ_organizationalUnitName */
88 0x55,0x08,0x01,0x01,                         /* [103] OBJ_rsa */
89 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,     /* [107] OBJ_pkcs7 */
90 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x01,/* [115] OBJ_pkcs7_data */
91 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x02,/* [124] OBJ_pkcs7_signed */
92 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x03,/* [133] OBJ_pkcs7_enveloped */
93 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x04,/* [142] OBJ_pkcs7_signedAndEnveloped */
94 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x05,/* [151] OBJ_pkcs7_digest */
95 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x06,/* [160] OBJ_pkcs7_encrypted */
96 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x03,     /* [169] OBJ_pkcs3 */
97 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x03,0x01,/* [177] OBJ_dhKeyAgreement */
98 0x2B,0x0E,0x03,0x02,0x06,                    /* [186] OBJ_des_ecb */
99 0x2B,0x0E,0x03,0x02,0x09,                    /* [191] OBJ_des_cfb64 */
100 0x2B,0x0E,0x03,0x02,0x07,                    /* [196] OBJ_des_cbc */
101 0x2B,0x0E,0x03,0x02,0x11,                    /* [201] OBJ_des_ede */
102 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x02,     /* [206] OBJ_rc2_cbc */
103 0x2B,0x0E,0x03,0x02,0x12,                    /* [214] OBJ_sha */
104 0x2B,0x0E,0x03,0x02,0x0F,                    /* [219] OBJ_shaWithRSAEncryption */
105 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x07,     /* [224] OBJ_des_ede3_cbc */
106 0x2B,0x0E,0x03,0x02,0x08,                    /* [232] OBJ_des_ofb64 */
107 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,     /* [237] OBJ_pkcs9 */
108 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x01,/* [245] OBJ_pkcs9_emailAddress */
109 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x02,/* [254] OBJ_pkcs9_unstructuredName */
110 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x03,/* [263] OBJ_pkcs9_contentType */
111 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x04,/* [272] OBJ_pkcs9_messageDigest */
112 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x05,/* [281] OBJ_pkcs9_signingTime */
113 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x06,/* [290] OBJ_pkcs9_countersignature */
114 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x07,/* [299] OBJ_pkcs9_challengePassword */
115 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x08,/* [308] OBJ_pkcs9_unstructuredAddress */
116 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x09,/* [317] OBJ_pkcs9_extCertAttributes */
117 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,          /* [326] OBJ_netscape */
118 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,     /* [333] OBJ_netscape_cert_extension */
119 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x02,     /* [341] OBJ_netscape_data_type */
120 0x2B,0x0E,0x03,0x02,0x1A,                    /* [349] OBJ_sha1 */
121 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,/* [354] OBJ_sha1WithRSAEncryption */
122 0x2B,0x0E,0x03,0x02,0x0D,                    /* [363] OBJ_dsaWithSHA */
123 0x2B,0x0E,0x03,0x02,0x0C,                    /* [368] OBJ_dsa */
124 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x0B,/* [373] OBJ_pbeWithSHA1AndRC2_CBC */
125 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x0C,/* [382] OBJ_pbeWithSHA1AndRC4 */
126 0x2B,0x0E,0x03,0x02,0x1B,                    /* [391] OBJ_dsaWithSHA1 */
127 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x01,/* [396] OBJ_netscape_cert_type */
128 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x02,/* [405] OBJ_netscape_base_url */
129 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x03,/* [414] OBJ_netscape_revocation_url */
130 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x04,/* [423] OBJ_netscape_ca_revocation_url */
131 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x07,/* [432] OBJ_netscape_renewal_url */
132 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x08,/* [441] OBJ_netscape_ca_policy_url */
133 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x0C,/* [450] OBJ_netscape_ssl_server_name */
134 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x0D,/* [459] OBJ_netscape_comment */
135 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x02,0x05,/* [468] OBJ_netscape_cert_sequence */
136 0x55,0x1D,                                   /* [477] OBJ_ld_ce */
137 0x55,0x1D,0x0E,                              /* [479] OBJ_subject_key_identifier */
138 0x55,0x1D,0x0F,                              /* [482] OBJ_key_usage */
139 0x55,0x1D,0x10,                              /* [485] OBJ_private_key_usage_period */
140 0x55,0x1D,0x11,                              /* [488] OBJ_subject_alt_name */
141 0x55,0x1D,0x12,                              /* [491] OBJ_issuer_alt_name */
142 0x55,0x1D,0x13,                              /* [494] OBJ_basic_constraints */
143 0x55,0x1D,0x14,                              /* [497] OBJ_crl_number */
144 0x55,0x1D,0x20,                              /* [500] OBJ_certificate_policies */
145 0x55,0x1D,0x23,                              /* [503] OBJ_authority_key_identifier */
146 0x55,0x08,0x03,0x65,                         /* [506] OBJ_mdc2 */
147 0x55,0x08,0x03,0x64,                         /* [510] OBJ_mdc2WithRSA */
148 };
149
150 static ASN1_OBJECT nid_objs[NUM_NID]={
151 {"UNDEF","undefined",NID_undef,0,NULL},
152 {"rsadsi","rsadsi",NID_rsadsi,6,&(lvalues[0]),0},
153 {"pkcs","pkcs",NID_pkcs,7,&(lvalues[6]),0},
154 {"MD2","md2",NID_md2,8,&(lvalues[13]),0},
155 {"MD5","md5",NID_md5,8,&(lvalues[21]),0},
156 {"RC4","rc4",NID_rc4,8,&(lvalues[29]),0},
157 {"rsaEncryption","rsaEncryption",NID_rsaEncryption,9,&(lvalues[37]),0},
158 {"RSA-MD2","md2WithRSAEncryption",NID_md2WithRSAEncryption,9,
159         &(lvalues[46]),0},
160 {"RSA-MD5","md5WithRSAEncryption",NID_md5WithRSAEncryption,9,
161         &(lvalues[55]),0},
162 {"pbeWithMD2AndDES-CBC","pbeWithMD2AndDES-CBC",
163         NID_pbeWithMD2AndDES_CBC,9,&(lvalues[64]),0},
164 {"pbeWithMD5AndDES-CBC","pbeWithMD5AndDES-CBC",
165         NID_pbeWithMD5AndDES_CBC,9,&(lvalues[73]),0},
166 {"X500","X500",NID_X500,1,&(lvalues[82]),0},
167 {"X509","X509",NID_X509,2,&(lvalues[83]),0},
168 {"CN","commonName",NID_commonName,3,&(lvalues[85]),0},
169 {"C","countryName",NID_countryName,3,&(lvalues[88]),0},
170 {"L","localityName",NID_localityName,3,&(lvalues[91]),0},
171 {"ST","stateOrProvinceName",NID_stateOrProvinceName,3,&(lvalues[94]),0},
172 {"O","organizationName",NID_organizationName,3,&(lvalues[97]),0},
173 {"OU","organizationalUnitName",NID_organizationalUnitName,3,
174         &(lvalues[100]),0},
175 {"RSA","rsa",NID_rsa,4,&(lvalues[103]),0},
176 {"pkcs7","pkcs7",NID_pkcs7,8,&(lvalues[107]),0},
177 {"pkcs7-data","pkcs7-data",NID_pkcs7_data,9,&(lvalues[115]),0},
178 {"pkcs7-signedData","pkcs7-signedData",NID_pkcs7_signed,9,
179         &(lvalues[124]),0},
180 {"pkcs7-envelopedData","pkcs7-envelopedData",NID_pkcs7_enveloped,9,
181         &(lvalues[133]),0},
182 {"pkcs7-signedAndEnvelopedData","pkcs7-signedAndEnvelopedData",
183         NID_pkcs7_signedAndEnveloped,9,&(lvalues[142]),0},
184 {"pkcs7-digestData","pkcs7-digestData",NID_pkcs7_digest,9,
185         &(lvalues[151]),0},
186 {"pkcs7-encryptedData","pkcs7-encryptedData",NID_pkcs7_encrypted,9,
187         &(lvalues[160]),0},
188 {"pkcs3","pkcs3",NID_pkcs3,8,&(lvalues[169]),0},
189 {"dhKeyAgreement","dhKeyAgreement",NID_dhKeyAgreement,9,
190         &(lvalues[177]),0},
191 {"DES-ECB","des-ecb",NID_des_ecb,5,&(lvalues[186]),0},
192 {"DES-CFB","des-cfb",NID_des_cfb64,5,&(lvalues[191]),0},
193 {"DES-CBC","des-cbc",NID_des_cbc,5,&(lvalues[196]),0},
194 {"DES-EDE","des-ede",NID_des_ede,5,&(lvalues[201]),0},
195 {"DES-EDE3","des-ede3",NID_des_ede3,0,NULL},
196 {"IDEA-CBC","idea-cbc",NID_idea_cbc,0,NULL},
197 {"IDEA-CFB","idea-cfb",NID_idea_cfb64,0,NULL},
198 {"IDEA-ECB","idea-ecb",NID_idea_ecb,0,NULL},
199 {"RC2-CBC","rc2-cbc",NID_rc2_cbc,8,&(lvalues[206]),0},
200 {"RC2-ECB","rc2-ecb",NID_rc2_ecb,0,NULL},
201 {"RC2-CFB","rc2-cfb",NID_rc2_cfb64,0,NULL},
202 {"RC2-OFB","rc2-ofb",NID_rc2_ofb64,0,NULL},
203 {"SHA","sha",NID_sha,5,&(lvalues[214]),0},
204 {"RSA-SHA","shaWithRSAEncryption",NID_shaWithRSAEncryption,5,
205         &(lvalues[219]),0},
206 {"DES-EDE-CBC","des-ede-cbc",NID_des_ede_cbc,0,NULL},
207 {"DES-EDE3-CBC","des-ede3-cbc",NID_des_ede3_cbc,8,&(lvalues[224]),0},
208 {"DES-OFB","des-ofb",NID_des_ofb64,5,&(lvalues[232]),0},
209 {"IDEA-OFB","idea-ofb",NID_idea_ofb64,0,NULL},
210 {"pkcs9","pkcs9",NID_pkcs9,8,&(lvalues[237]),0},
211 {"Email","emailAddress",NID_pkcs9_emailAddress,9,&(lvalues[245]),0},
212 {"unstructuredName","unstructuredName",NID_pkcs9_unstructuredName,9,
213         &(lvalues[254]),0},
214 {"contentType","contentType",NID_pkcs9_contentType,9,&(lvalues[263]),0},
215 {"messageDigest","messageDigest",NID_pkcs9_messageDigest,9,
216         &(lvalues[272]),0},
217 {"signingTime","signingTime",NID_pkcs9_signingTime,9,&(lvalues[281]),0},
218 {"countersignature","countersignature",NID_pkcs9_countersignature,9,
219         &(lvalues[290]),0},
220 {"challengePassword","challengePassword",NID_pkcs9_challengePassword,
221         9,&(lvalues[299]),0},
222 {"unstructuredAddress","unstructuredAddress",
223         NID_pkcs9_unstructuredAddress,9,&(lvalues[308]),0},
224 {"extendedCertificateAttributes","extendedCertificateAttributes",
225         NID_pkcs9_extCertAttributes,9,&(lvalues[317]),0},
226 {"Netscape","Netscape Communications Corp.",NID_netscape,7,
227         &(lvalues[326]),0},
228 {"nsCertExt","Netscape Certificate Extension",
229         NID_netscape_cert_extension,8,&(lvalues[333]),0},
230 {"nsDataType","Netscape Data Type",NID_netscape_data_type,8,
231         &(lvalues[341]),0},
232 {"DES-EDE-CFB","des-ede-cfb",NID_des_ede_cfb64,0,NULL},
233 {"DES-EDE3-CFB","des-ede3-cfb",NID_des_ede3_cfb64,0,NULL},
234 {"DES-EDE-OFB","des-ede-ofb",NID_des_ede_ofb64,0,NULL},
235 {"DES-EDE3-OFB","des-ede3-ofb",NID_des_ede3_ofb64,0,NULL},
236 {"SHA1","sha1",NID_sha1,5,&(lvalues[349]),0},
237 {"RSA-SHA1","sha1WithRSAEncryption",NID_sha1WithRSAEncryption,9,
238         &(lvalues[354]),0},
239 {"DSA-SHA","dsaWithSHA",NID_dsaWithSHA,5,&(lvalues[363]),0},
240 {"DSA","dsaEncryption",NID_dsa,5,&(lvalues[368]),0},
241 {"pbeWithSHA1AndRC2-CBC","pbeWithSHA1AndRC2-CBC",
242         NID_pbeWithSHA1AndRC2_CBC,9,&(lvalues[373]),0},
243 {"pbeWithSHA1AndRC4","pbeWithSHA1AndRC4",NID_pbeWithSHA1AndRC4,9,
244         &(lvalues[382]),0},
245 {"DSA-SHA1","dsaWithSHA1",NID_dsaWithSHA1,5,&(lvalues[391]),0},
246 {"nsCertType","Netscape Cert Type",NID_netscape_cert_type,9,
247         &(lvalues[396]),0},
248 {"nsBaseUrl","Netscape Base Url",NID_netscape_base_url,9,
249         &(lvalues[405]),0},
250 {"nsRevocationUrl","Netscape Revocation Url",
251         NID_netscape_revocation_url,9,&(lvalues[414]),0},
252 {"nsCaRevocationUrl","Netscape CA Revocation Url",
253         NID_netscape_ca_revocation_url,9,&(lvalues[423]),0},
254 {"nsRenewalUrl","Netscape Renewal Url",NID_netscape_renewal_url,9,
255         &(lvalues[432]),0},
256 {"nsCaPolicyUrl","Netscape CA Policy Url",NID_netscape_ca_policy_url,
257         9,&(lvalues[441]),0},
258 {"nsSslServerName","Netscape SSL Server Name",
259         NID_netscape_ssl_server_name,9,&(lvalues[450]),0},
260 {"nsComment","Netscape Comment",NID_netscape_comment,9,&(lvalues[459]),0},
261 {"nsCertSequence","Netscape Certificate Sequence",
262         NID_netscape_cert_sequence,9,&(lvalues[468]),0},
263 {"DESX-CBC","desx-cbc",NID_desx_cbc,0,NULL},
264 {"ld-ce","ld-ce",NID_ld_ce,2,&(lvalues[477]),0},
265 {"subjectKeyIdentifier","X509v3 Subject Key Identifier",
266         NID_subject_key_identifier,3,&(lvalues[479]),0},
267 {"keyUsage","X509v3 Key Usage",NID_key_usage,3,&(lvalues[482]),0},
268 {"privateKeyUsagePeriod","X509v3 Private Key Usage Period",
269         NID_private_key_usage_period,3,&(lvalues[485]),0},
270 {"subjectAltName","X509v3 Subject Alternative Name",
271         NID_subject_alt_name,3,&(lvalues[488]),0},
272 {"issuerAltName","X509v3 Issuer Alternative Name",NID_issuer_alt_name,
273         3,&(lvalues[491]),0},
274 {"basicConstraints","X509v3 Basic Constraints",NID_basic_constraints,
275         3,&(lvalues[494]),0},
276 {"crlNumber","X509v3 CRL Number",NID_crl_number,3,&(lvalues[497]),0},
277 {"certificatePolicies","X509v3 Certificate Policies",
278         NID_certificate_policies,3,&(lvalues[500]),0},
279 {"authorityKeyIdentifier","X509v3 Authority Key Identifier",
280         NID_authority_key_identifier,3,&(lvalues[503]),0},
281 {"BF-CBC","bf-cbc",NID_bf_cbc,0,NULL},
282 {"BF-ECB","bf-ecb",NID_bf_ecb,0,NULL},
283 {"BF-CFB","bf-cfb",NID_bf_cfb64,0,NULL},
284 {"BF-OFB","bf-ofb",NID_bf_ofb64,0,NULL},
285 {"MDC2","mdc2",NID_mdc2,4,&(lvalues[506]),0},
286 {"RSA-MDC2","mdc2withRSA",NID_mdc2WithRSA,4,&(lvalues[510]),0},
287 };
288
289 static ASN1_OBJECT *sn_objs[NUM_SN]={
290 &(nid_objs[91]),/* "BF-CBC" */
291 &(nid_objs[93]),/* "BF-CFB" */
292 &(nid_objs[92]),/* "BF-ECB" */
293 &(nid_objs[94]),/* "BF-OFB" */
294 &(nid_objs[14]),/* "C" */
295 &(nid_objs[13]),/* "CN" */
296 &(nid_objs[31]),/* "DES-CBC" */
297 &(nid_objs[30]),/* "DES-CFB" */
298 &(nid_objs[29]),/* "DES-ECB" */
299 &(nid_objs[32]),/* "DES-EDE" */
300 &(nid_objs[43]),/* "DES-EDE-CBC" */
301 &(nid_objs[60]),/* "DES-EDE-CFB" */
302 &(nid_objs[62]),/* "DES-EDE-OFB" */
303 &(nid_objs[33]),/* "DES-EDE3" */
304 &(nid_objs[44]),/* "DES-EDE3-CBC" */
305 &(nid_objs[61]),/* "DES-EDE3-CFB" */
306 &(nid_objs[63]),/* "DES-EDE3-OFB" */
307 &(nid_objs[45]),/* "DES-OFB" */
308 &(nid_objs[80]),/* "DESX-CBC" */
309 &(nid_objs[67]),/* "DSA" */
310 &(nid_objs[66]),/* "DSA-SHA" */
311 &(nid_objs[70]),/* "DSA-SHA1" */
312 &(nid_objs[48]),/* "Email" */
313 &(nid_objs[34]),/* "IDEA-CBC" */
314 &(nid_objs[35]),/* "IDEA-CFB" */
315 &(nid_objs[36]),/* "IDEA-ECB" */
316 &(nid_objs[46]),/* "IDEA-OFB" */
317 &(nid_objs[15]),/* "L" */
318 &(nid_objs[ 3]),/* "MD2" */
319 &(nid_objs[ 4]),/* "MD5" */
320 &(nid_objs[95]),/* "MDC2" */
321 &(nid_objs[57]),/* "Netscape" */
322 &(nid_objs[17]),/* "O" */
323 &(nid_objs[18]),/* "OU" */
324 &(nid_objs[37]),/* "RC2-CBC" */
325 &(nid_objs[39]),/* "RC2-CFB" */
326 &(nid_objs[38]),/* "RC2-ECB" */
327 &(nid_objs[40]),/* "RC2-OFB" */
328 &(nid_objs[ 5]),/* "RC4" */
329 &(nid_objs[19]),/* "RSA" */
330 &(nid_objs[ 7]),/* "RSA-MD2" */
331 &(nid_objs[ 8]),/* "RSA-MD5" */
332 &(nid_objs[96]),/* "RSA-MDC2" */
333 &(nid_objs[42]),/* "RSA-SHA" */
334 &(nid_objs[65]),/* "RSA-SHA1" */
335 &(nid_objs[41]),/* "SHA" */
336 &(nid_objs[64]),/* "SHA1" */
337 &(nid_objs[16]),/* "ST" */
338 &(nid_objs[ 0]),/* "UNDEF" */
339 &(nid_objs[90]),/* "authorityKeyIdentifier" */
340 &(nid_objs[87]),/* "basicConstraints" */
341 &(nid_objs[89]),/* "certificatePolicies" */
342 &(nid_objs[88]),/* "crlNumber" */
343 &(nid_objs[86]),/* "issuerAltName" */
344 &(nid_objs[83]),/* "keyUsage" */
345 &(nid_objs[81]),/* "ld-ce" */
346 &(nid_objs[72]),/* "nsBaseUrl" */
347 &(nid_objs[76]),/* "nsCaPolicyUrl" */
348 &(nid_objs[74]),/* "nsCaRevocationUrl" */
349 &(nid_objs[58]),/* "nsCertExt" */
350 &(nid_objs[79]),/* "nsCertSequence" */
351 &(nid_objs[71]),/* "nsCertType" */
352 &(nid_objs[78]),/* "nsComment" */
353 &(nid_objs[59]),/* "nsDataType" */
354 &(nid_objs[75]),/* "nsRenewalUrl" */
355 &(nid_objs[73]),/* "nsRevocationUrl" */
356 &(nid_objs[77]),/* "nsSslServerName" */
357 &(nid_objs[84]),/* "privateKeyUsagePeriod" */
358 &(nid_objs[85]),/* "subjectAltName" */
359 &(nid_objs[82]),/* "subjectKeyIdentifier" */
360 };
361
362 static ASN1_OBJECT *ln_objs[NUM_LN]={
363 &(nid_objs[72]),/* "Netscape Base Url" */
364 &(nid_objs[76]),/* "Netscape CA Policy Url" */
365 &(nid_objs[74]),/* "Netscape CA Revocation Url" */
366 &(nid_objs[71]),/* "Netscape Cert Type" */
367 &(nid_objs[58]),/* "Netscape Certificate Extension" */
368 &(nid_objs[79]),/* "Netscape Certificate Sequence" */
369 &(nid_objs[78]),/* "Netscape Comment" */
370 &(nid_objs[57]),/* "Netscape Communications Corp." */
371 &(nid_objs[59]),/* "Netscape Data Type" */
372 &(nid_objs[75]),/* "Netscape Renewal Url" */
373 &(nid_objs[73]),/* "Netscape Revocation Url" */
374 &(nid_objs[77]),/* "Netscape SSL Server Name" */
375 &(nid_objs[11]),/* "X500" */
376 &(nid_objs[12]),/* "X509" */
377 &(nid_objs[90]),/* "X509v3 Authority Key Identifier" */
378 &(nid_objs[87]),/* "X509v3 Basic Constraints" */
379 &(nid_objs[88]),/* "X509v3 CRL Number" */
380 &(nid_objs[89]),/* "X509v3 Certificate Policies" */
381 &(nid_objs[86]),/* "X509v3 Issuer Alternative Name" */
382 &(nid_objs[83]),/* "X509v3 Key Usage" */
383 &(nid_objs[84]),/* "X509v3 Private Key Usage Period" */
384 &(nid_objs[85]),/* "X509v3 Subject Alternative Name" */
385 &(nid_objs[82]),/* "X509v3 Subject Key Identifier" */
386 &(nid_objs[91]),/* "bf-cbc" */
387 &(nid_objs[93]),/* "bf-cfb" */
388 &(nid_objs[92]),/* "bf-ecb" */
389 &(nid_objs[94]),/* "bf-ofb" */
390 &(nid_objs[54]),/* "challengePassword" */
391 &(nid_objs[13]),/* "commonName" */
392 &(nid_objs[50]),/* "contentType" */
393 &(nid_objs[53]),/* "countersignature" */
394 &(nid_objs[14]),/* "countryName" */
395 &(nid_objs[31]),/* "des-cbc" */
396 &(nid_objs[30]),/* "des-cfb" */
397 &(nid_objs[29]),/* "des-ecb" */
398 &(nid_objs[32]),/* "des-ede" */
399 &(nid_objs[43]),/* "des-ede-cbc" */
400 &(nid_objs[60]),/* "des-ede-cfb" */
401 &(nid_objs[62]),/* "des-ede-ofb" */
402 &(nid_objs[33]),/* "des-ede3" */
403 &(nid_objs[44]),/* "des-ede3-cbc" */
404 &(nid_objs[61]),/* "des-ede3-cfb" */
405 &(nid_objs[63]),/* "des-ede3-ofb" */
406 &(nid_objs[45]),/* "des-ofb" */
407 &(nid_objs[80]),/* "desx-cbc" */
408 &(nid_objs[28]),/* "dhKeyAgreement" */
409 &(nid_objs[67]),/* "dsaEncryption" */
410 &(nid_objs[66]),/* "dsaWithSHA" */
411 &(nid_objs[70]),/* "dsaWithSHA1" */
412 &(nid_objs[48]),/* "emailAddress" */
413 &(nid_objs[56]),/* "extendedCertificateAttributes" */
414 &(nid_objs[34]),/* "idea-cbc" */
415 &(nid_objs[35]),/* "idea-cfb" */
416 &(nid_objs[36]),/* "idea-ecb" */
417 &(nid_objs[46]),/* "idea-ofb" */
418 &(nid_objs[15]),/* "localityName" */
419 &(nid_objs[ 3]),/* "md2" */
420 &(nid_objs[ 7]),/* "md2WithRSAEncryption" */
421 &(nid_objs[ 4]),/* "md5" */
422 &(nid_objs[ 8]),/* "md5WithRSAEncryption" */
423 &(nid_objs[95]),/* "mdc2" */
424 &(nid_objs[96]),/* "mdc2withRSA" */
425 &(nid_objs[51]),/* "messageDigest" */
426 &(nid_objs[17]),/* "organizationName" */
427 &(nid_objs[18]),/* "organizationalUnitName" */
428 &(nid_objs[ 9]),/* "pbeWithMD2AndDES-CBC" */
429 &(nid_objs[10]),/* "pbeWithMD5AndDES-CBC" */
430 &(nid_objs[68]),/* "pbeWithSHA1AndRC2-CBC" */
431 &(nid_objs[69]),/* "pbeWithSHA1AndRC4" */
432 &(nid_objs[ 2]),/* "pkcs" */
433 &(nid_objs[27]),/* "pkcs3" */
434 &(nid_objs[20]),/* "pkcs7" */
435 &(nid_objs[21]),/* "pkcs7-data" */
436 &(nid_objs[25]),/* "pkcs7-digestData" */
437 &(nid_objs[26]),/* "pkcs7-encryptedData" */
438 &(nid_objs[23]),/* "pkcs7-envelopedData" */
439 &(nid_objs[24]),/* "pkcs7-signedAndEnvelopedData" */
440 &(nid_objs[22]),/* "pkcs7-signedData" */
441 &(nid_objs[47]),/* "pkcs9" */
442 &(nid_objs[37]),/* "rc2-cbc" */
443 &(nid_objs[39]),/* "rc2-cfb" */
444 &(nid_objs[38]),/* "rc2-ecb" */
445 &(nid_objs[40]),/* "rc2-ofb" */
446 &(nid_objs[ 5]),/* "rc4" */
447 &(nid_objs[19]),/* "rsa" */
448 &(nid_objs[ 6]),/* "rsaEncryption" */
449 &(nid_objs[ 1]),/* "rsadsi" */
450 &(nid_objs[41]),/* "sha" */
451 &(nid_objs[64]),/* "sha1" */
452 &(nid_objs[65]),/* "sha1WithRSAEncryption" */
453 &(nid_objs[42]),/* "shaWithRSAEncryption" */
454 &(nid_objs[52]),/* "signingTime" */
455 &(nid_objs[16]),/* "stateOrProvinceName" */
456 &(nid_objs[ 0]),/* "undefined" */
457 &(nid_objs[55]),/* "unstructuredAddress" */
458 &(nid_objs[49]),/* "unstructuredName" */
459 };
460
461 static ASN1_OBJECT *obj_objs[NUM_OBJ]={
462 &(nid_objs[11]),/* OBJ_X500                         2 5 */
463 &(nid_objs[12]),/* OBJ_X509                         2 5 4 */
464 &(nid_objs[81]),/* OBJ_ld_ce                        2 5 29 */
465 &(nid_objs[13]),/* OBJ_commonName                   2 5 4 3 */
466 &(nid_objs[14]),/* OBJ_countryName                  2 5 4 6 */
467 &(nid_objs[15]),/* OBJ_localityName                 2 5 4 7 */
468 &(nid_objs[16]),/* OBJ_stateOrProvinceName          2 5 4 8 */
469 &(nid_objs[17]),/* OBJ_organizationName             2 5 4 10 */
470 &(nid_objs[18]),/* OBJ_organizationalUnitName       2 5 4 11 */
471 &(nid_objs[82]),/* OBJ_subject_key_identifier       2 5 29 14 */
472 &(nid_objs[83]),/* OBJ_key_usage                    2 5 29 15 */
473 &(nid_objs[84]),/* OBJ_private_key_usage_period     2 5 29 16 */
474 &(nid_objs[85]),/* OBJ_subject_alt_name             2 5 29 17 */
475 &(nid_objs[86]),/* OBJ_issuer_alt_name              2 5 29 18 */
476 &(nid_objs[87]),/* OBJ_basic_constraints            2 5 29 19 */
477 &(nid_objs[88]),/* OBJ_crl_number                   2 5 29 20 */
478 &(nid_objs[89]),/* OBJ_certificate_policies         2 5 29 32 */
479 &(nid_objs[90]),/* OBJ_authority_key_identifier     2 5 29 35 */
480 &(nid_objs[19]),/* OBJ_rsa                          2 5 8 1 1 */
481 &(nid_objs[96]),/* OBJ_mdc2WithRSA                  2 5 8 3 100 */
482 &(nid_objs[95]),/* OBJ_mdc2                         2 5 8 3 101 */
483 &(nid_objs[29]),/* OBJ_des_ecb                      1 3 14 3 2 6 */
484 &(nid_objs[31]),/* OBJ_des_cbc                      1 3 14 3 2 7 */
485 &(nid_objs[45]),/* OBJ_des_ofb64                    1 3 14 3 2 8 */
486 &(nid_objs[30]),/* OBJ_des_cfb64                    1 3 14 3 2 9 */
487 &(nid_objs[67]),/* OBJ_dsa                          1 3 14 3 2 12 */
488 &(nid_objs[66]),/* OBJ_dsaWithSHA                   1 3 14 3 2 13 */
489 &(nid_objs[42]),/* OBJ_shaWithRSAEncryption         1 3 14 3 2 15 */
490 &(nid_objs[32]),/* OBJ_des_ede                      1 3 14 3 2 17 */
491 &(nid_objs[41]),/* OBJ_sha                          1 3 14 3 2 18 */
492 &(nid_objs[64]),/* OBJ_sha1                         1 3 14 3 2 26 */
493 &(nid_objs[70]),/* OBJ_dsaWithSHA1                  1 3 14 3 2 27 */
494 &(nid_objs[ 1]),/* OBJ_rsadsi                       1 2 840 113549 */
495 &(nid_objs[ 2]),/* OBJ_pkcs                         1 2 840 113549 1 */
496 &(nid_objs[57]),/* OBJ_netscape                     2 16 840 1 113730 */
497 &(nid_objs[27]),/* OBJ_pkcs3                        1 2 840 113549 1 3 */
498 &(nid_objs[20]),/* OBJ_pkcs7                        1 2 840 113549 1 7 */
499 &(nid_objs[47]),/* OBJ_pkcs9                        1 2 840 113549 1 9 */
500 &(nid_objs[ 3]),/* OBJ_md2                          1 2 840 113549 2 2 */
501 &(nid_objs[ 4]),/* OBJ_md5                          1 2 840 113549 2 5 */
502 &(nid_objs[37]),/* OBJ_rc2_cbc                      1 2 840 113549 3 2 */
503 &(nid_objs[ 5]),/* OBJ_rc4                          1 2 840 113549 3 4 */
504 &(nid_objs[44]),/* OBJ_des_ede3_cbc                 1 2 840 113549 3 7 */
505 &(nid_objs[58]),/* OBJ_netscape_cert_extension      2 16 840 1 113730 1 */
506 &(nid_objs[59]),/* OBJ_netscape_data_type           2 16 840 1 113730 2 */
507 &(nid_objs[ 6]),/* OBJ_rsaEncryption                1 2 840 113549 1 1 1 */
508 &(nid_objs[ 7]),/* OBJ_md2WithRSAEncryption         1 2 840 113549 1 1 2 */
509 &(nid_objs[ 8]),/* OBJ_md5WithRSAEncryption         1 2 840 113549 1 1 4 */
510 &(nid_objs[65]),/* OBJ_sha1WithRSAEncryption        1 2 840 113549 1 1 5 */
511 &(nid_objs[28]),/* OBJ_dhKeyAgreement               1 2 840 113549 1 3 1 */
512 &(nid_objs[ 9]),/* OBJ_pbeWithMD2AndDES_CBC         1 2 840 113549 1 5 1 */
513 &(nid_objs[10]),/* OBJ_pbeWithMD5AndDES_CBC         1 2 840 113549 1 5 3 */
514 &(nid_objs[68]),/* OBJ_pbeWithSHA1AndRC2_CBC        1 2 840 113549 1 5 11  */
515 &(nid_objs[69]),/* OBJ_pbeWithSHA1AndRC4            1 2 840 113549 1 5 12  */
516 &(nid_objs[21]),/* OBJ_pkcs7_data                   1 2 840 113549 1 7 1 */
517 &(nid_objs[22]),/* OBJ_pkcs7_signed                 1 2 840 113549 1 7 2 */
518 &(nid_objs[23]),/* OBJ_pkcs7_enveloped              1 2 840 113549 1 7 3 */
519 &(nid_objs[24]),/* OBJ_pkcs7_signedAndEnveloped     1 2 840 113549 1 7 4 */
520 &(nid_objs[25]),/* OBJ_pkcs7_digest                 1 2 840 113549 1 7 5 */
521 &(nid_objs[26]),/* OBJ_pkcs7_encrypted              1 2 840 113549 1 7 6 */
522 &(nid_objs[48]),/* OBJ_pkcs9_emailAddress           1 2 840 113549 1 9 1 */
523 &(nid_objs[49]),/* OBJ_pkcs9_unstructuredName       1 2 840 113549 1 9 2 */
524 &(nid_objs[50]),/* OBJ_pkcs9_contentType            1 2 840 113549 1 9 3 */
525 &(nid_objs[51]),/* OBJ_pkcs9_messageDigest          1 2 840 113549 1 9 4 */
526 &(nid_objs[52]),/* OBJ_pkcs9_signingTime            1 2 840 113549 1 9 5 */
527 &(nid_objs[53]),/* OBJ_pkcs9_countersignature       1 2 840 113549 1 9 6 */
528 &(nid_objs[54]),/* OBJ_pkcs9_challengePassword      1 2 840 113549 1 9 7 */
529 &(nid_objs[55]),/* OBJ_pkcs9_unstructuredAddress    1 2 840 113549 1 9 8 */
530 &(nid_objs[56]),/* OBJ_pkcs9_extCertAttributes      1 2 840 113549 1 9 9 */
531 &(nid_objs[71]),/* OBJ_netscape_cert_type           2 16 840 1 113730 1 1 */
532 &(nid_objs[72]),/* OBJ_netscape_base_url            2 16 840 1 113730 1 2 */
533 &(nid_objs[73]),/* OBJ_netscape_revocation_url      2 16 840 1 113730 1 3 */
534 &(nid_objs[74]),/* OBJ_netscape_ca_revocation_url   2 16 840 1 113730 1 4 */
535 &(nid_objs[75]),/* OBJ_netscape_renewal_url         2 16 840 1 113730 1 7 */
536 &(nid_objs[76]),/* OBJ_netscape_ca_policy_url       2 16 840 1 113730 1 8 */
537 &(nid_objs[77]),/* OBJ_netscape_ssl_server_name     2 16 840 1 113730 1 12 */
538 &(nid_objs[78]),/* OBJ_netscape_comment             2 16 840 1 113730 1 13 */
539 &(nid_objs[79]),/* OBJ_netscape_cert_sequence       2 16 840 1 113730 2 5 */
540 };
541