]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
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 | ||
06d5b162 RE |
64 | #define NUM_NID 127 |
65 | #define NUM_SN 98 | |
66 | #define NUM_LN 125 | |
67 | #define NUM_OBJ 99 | |
d02b48c6 | 68 | |
06d5b162 | 69 | static unsigned char lvalues[614]={ |
dfeab068 RE |
70 | 0x00, /* [ 0] OBJ_undef */ |
71 | 0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */ | |
72 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */ | |
73 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x02, /* [ 14] OBJ_md2 */ | |
74 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x05, /* [ 22] OBJ_md5 */ | |
75 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x04, /* [ 30] OBJ_rc4 */ | |
76 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x01,/* [ 38] OBJ_rsaEncryption */ | |
77 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x02,/* [ 47] OBJ_md2WithRSAEncryption */ | |
78 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x04,/* [ 56] OBJ_md5WithRSAEncryption */ | |
79 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x01,/* [ 65] OBJ_pbeWithMD2AndDES_CBC */ | |
80 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x03,/* [ 74] OBJ_pbeWithMD5AndDES_CBC */ | |
81 | 0x55, /* [ 83] OBJ_X500 */ | |
82 | 0x55,0x04, /* [ 84] OBJ_X509 */ | |
83 | 0x55,0x04,0x03, /* [ 86] OBJ_commonName */ | |
84 | 0x55,0x04,0x06, /* [ 89] OBJ_countryName */ | |
85 | 0x55,0x04,0x07, /* [ 92] OBJ_localityName */ | |
86 | 0x55,0x04,0x08, /* [ 95] OBJ_stateOrProvinceName */ | |
87 | 0x55,0x04,0x0A, /* [ 98] OBJ_organizationName */ | |
88 | 0x55,0x04,0x0B, /* [101] OBJ_organizationalUnitName */ | |
89 | 0x55,0x08,0x01,0x01, /* [104] OBJ_rsa */ | |
90 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07, /* [108] OBJ_pkcs7 */ | |
91 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x01,/* [116] OBJ_pkcs7_data */ | |
92 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x02,/* [125] OBJ_pkcs7_signed */ | |
93 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x03,/* [134] OBJ_pkcs7_enveloped */ | |
94 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x04,/* [143] OBJ_pkcs7_signedAndEnveloped */ | |
95 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x05,/* [152] OBJ_pkcs7_digest */ | |
96 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x07,0x06,/* [161] OBJ_pkcs7_encrypted */ | |
97 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x03, /* [170] OBJ_pkcs3 */ | |
98 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x03,0x01,/* [178] OBJ_dhKeyAgreement */ | |
99 | 0x2B,0x0E,0x03,0x02,0x06, /* [187] OBJ_des_ecb */ | |
100 | 0x2B,0x0E,0x03,0x02,0x09, /* [192] OBJ_des_cfb64 */ | |
101 | 0x2B,0x0E,0x03,0x02,0x07, /* [197] OBJ_des_cbc */ | |
102 | 0x2B,0x0E,0x03,0x02,0x11, /* [202] OBJ_des_ede */ | |
103 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x02, /* [207] OBJ_rc2_cbc */ | |
104 | 0x2B,0x0E,0x03,0x02,0x12, /* [215] OBJ_sha */ | |
105 | 0x2B,0x0E,0x03,0x02,0x0F, /* [220] OBJ_shaWithRSAEncryption */ | |
106 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x07, /* [225] OBJ_des_ede3_cbc */ | |
107 | 0x2B,0x0E,0x03,0x02,0x08, /* [233] OBJ_des_ofb64 */ | |
108 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09, /* [238] OBJ_pkcs9 */ | |
109 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x01,/* [246] OBJ_pkcs9_emailAddress */ | |
110 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x02,/* [255] OBJ_pkcs9_unstructuredName */ | |
111 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x03,/* [264] OBJ_pkcs9_contentType */ | |
112 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x04,/* [273] OBJ_pkcs9_messageDigest */ | |
113 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x05,/* [282] OBJ_pkcs9_signingTime */ | |
114 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x06,/* [291] OBJ_pkcs9_countersignature */ | |
115 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x07,/* [300] OBJ_pkcs9_challengePassword */ | |
116 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x08,/* [309] OBJ_pkcs9_unstructuredAddress */ | |
117 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x09,/* [318] OBJ_pkcs9_extCertAttributes */ | |
118 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42, /* [327] OBJ_netscape */ | |
119 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01, /* [334] OBJ_netscape_cert_extension */ | |
120 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x02, /* [342] OBJ_netscape_data_type */ | |
121 | 0x2B,0x0E,0x03,0x02,0x1A, /* [350] OBJ_sha1 */ | |
122 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,/* [355] OBJ_sha1WithRSAEncryption */ | |
123 | 0x2B,0x0E,0x03,0x02,0x0D, /* [364] OBJ_dsaWithSHA */ | |
124 | 0x2B,0x0E,0x03,0x02,0x0C, /* [369] OBJ_dsa_2 */ | |
125 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x0B,/* [374] OBJ_pbeWithSHA1AndRC2_CBC */ | |
126 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x05,0x0C,/* [383] OBJ_pbeWithSHA1AndRC4 */ | |
127 | 0x2B,0x0E,0x03,0x02,0x1B, /* [392] OBJ_dsaWithSHA1_2 */ | |
128 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x01,/* [397] OBJ_netscape_cert_type */ | |
129 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x02,/* [406] OBJ_netscape_base_url */ | |
130 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x03,/* [415] OBJ_netscape_revocation_url */ | |
131 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x04,/* [424] OBJ_netscape_ca_revocation_url */ | |
132 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x07,/* [433] OBJ_netscape_renewal_url */ | |
133 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x08,/* [442] OBJ_netscape_ca_policy_url */ | |
134 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x0C,/* [451] OBJ_netscape_ssl_server_name */ | |
135 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x01,0x0D,/* [460] OBJ_netscape_comment */ | |
136 | 0x60,0x86,0x48,0x01,0x86,0xF8,0x42,0x02,0x05,/* [469] OBJ_netscape_cert_sequence */ | |
137 | 0x55,0x1D, /* [478] OBJ_ld_ce */ | |
138 | 0x55,0x1D,0x0E, /* [480] OBJ_subject_key_identifier */ | |
139 | 0x55,0x1D,0x0F, /* [483] OBJ_key_usage */ | |
140 | 0x55,0x1D,0x10, /* [486] OBJ_private_key_usage_period */ | |
141 | 0x55,0x1D,0x11, /* [489] OBJ_subject_alt_name */ | |
142 | 0x55,0x1D,0x12, /* [492] OBJ_issuer_alt_name */ | |
143 | 0x55,0x1D,0x13, /* [495] OBJ_basic_constraints */ | |
144 | 0x55,0x1D,0x14, /* [498] OBJ_crl_number */ | |
145 | 0x55,0x1D,0x20, /* [501] OBJ_certificate_policies */ | |
146 | 0x55,0x1D,0x23, /* [504] OBJ_authority_key_identifier */ | |
147 | 0x55,0x08,0x03,0x65, /* [507] OBJ_mdc2 */ | |
148 | 0x55,0x08,0x03,0x64, /* [511] OBJ_mdc2WithRSA */ | |
149 | 0x55,0x04,0x2A, /* [515] OBJ_givenName */ | |
150 | 0x55,0x04,0x04, /* [518] OBJ_surname */ | |
151 | 0x55,0x04,0x2B, /* [521] OBJ_initials */ | |
152 | 0x55,0x04,0x2D, /* [524] OBJ_uniqueIdentifier */ | |
153 | 0x55,0x1D,0x1F, /* [527] OBJ_crl_distribution_points */ | |
154 | 0x2B,0x0E,0x03,0x02,0x03, /* [530] OBJ_md5WithRSA */ | |
155 | 0x55,0x04,0x05, /* [535] OBJ_serialNumber */ | |
156 | 0x55,0x04,0x0C, /* [538] OBJ_title */ | |
157 | 0x55,0x04,0x0D, /* [541] OBJ_description */ | |
158 | 0x2A,0x86,0x48,0x86,0xF6,0x7D,0x07,0x42,0x0A,/* [544] OBJ_cast5_cbc */ | |
159 | 0x2A,0x86,0x48,0x86,0xF6,0x7D,0x07,0x42,0x0C,/* [553] OBJ_pbeWithMD5AndCast5_CBC */ | |
160 | 0x2A,0x86,0x48,0xCE,0x38,0x04,0x03, /* [562] OBJ_dsaWithSHA1 */ | |
161 | 0x2B,0x0E,0x03,0x02,0x1D, /* [569] OBJ_sha1WithRSA */ | |
162 | 0x2A,0x86,0x48,0xCE,0x38,0x04,0x01, /* [574] OBJ_dsa */ | |
163 | 0x2B,0x24,0x03,0x02,0x01, /* [581] OBJ_ripemd160 */ | |
164 | 0x2B,0x24,0x03,0x03,0x01,0x02, /* [586] OBJ_ripemd160WithRSA */ | |
165 | 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x08, /* [592] OBJ_rc5_cbc */ | |
166 | 0x29,0x01,0x01,0x85,0x1A, /* [600] OBJ_rle_compression */ | |
167 | 0x29,0x01,0x01,0x85,0x1A, /* [605] OBJ_zlib_compression */ | |
06d5b162 | 168 | 0x55,0x1D,0x25, /* [610] OBJ_ext_key_usage */ |
d02b48c6 RE |
169 | }; |
170 | ||
171 | static ASN1_OBJECT nid_objs[NUM_NID]={ | |
dfeab068 RE |
172 | {"UNDEF","undefined",NID_undef,1,&(lvalues[0]),0}, |
173 | {"rsadsi","rsadsi",NID_rsadsi,6,&(lvalues[1]),0}, | |
174 | {"pkcs","pkcs",NID_pkcs,7,&(lvalues[7]),0}, | |
175 | {"MD2","md2",NID_md2,8,&(lvalues[14]),0}, | |
176 | {"MD5","md5",NID_md5,8,&(lvalues[22]),0}, | |
177 | {"RC4","rc4",NID_rc4,8,&(lvalues[30]),0}, | |
178 | {"rsaEncryption","rsaEncryption",NID_rsaEncryption,9,&(lvalues[38]),0}, | |
d02b48c6 | 179 | {"RSA-MD2","md2WithRSAEncryption",NID_md2WithRSAEncryption,9, |
dfeab068 | 180 | &(lvalues[47]),0}, |
d02b48c6 | 181 | {"RSA-MD5","md5WithRSAEncryption",NID_md5WithRSAEncryption,9, |
dfeab068 | 182 | &(lvalues[56]),0}, |
d02b48c6 | 183 | {"pbeWithMD2AndDES-CBC","pbeWithMD2AndDES-CBC", |
dfeab068 | 184 | NID_pbeWithMD2AndDES_CBC,9,&(lvalues[65]),0}, |
d02b48c6 | 185 | {"pbeWithMD5AndDES-CBC","pbeWithMD5AndDES-CBC", |
dfeab068 RE |
186 | NID_pbeWithMD5AndDES_CBC,9,&(lvalues[74]),0}, |
187 | {"X500","X500",NID_X500,1,&(lvalues[83]),0}, | |
188 | {"X509","X509",NID_X509,2,&(lvalues[84]),0}, | |
189 | {"CN","commonName",NID_commonName,3,&(lvalues[86]),0}, | |
190 | {"C","countryName",NID_countryName,3,&(lvalues[89]),0}, | |
191 | {"L","localityName",NID_localityName,3,&(lvalues[92]),0}, | |
192 | {"ST","stateOrProvinceName",NID_stateOrProvinceName,3,&(lvalues[95]),0}, | |
193 | {"O","organizationName",NID_organizationName,3,&(lvalues[98]),0}, | |
d02b48c6 | 194 | {"OU","organizationalUnitName",NID_organizationalUnitName,3, |
dfeab068 RE |
195 | &(lvalues[101]),0}, |
196 | {"RSA","rsa",NID_rsa,4,&(lvalues[104]),0}, | |
197 | {"pkcs7","pkcs7",NID_pkcs7,8,&(lvalues[108]),0}, | |
198 | {"pkcs7-data","pkcs7-data",NID_pkcs7_data,9,&(lvalues[116]),0}, | |
d02b48c6 | 199 | {"pkcs7-signedData","pkcs7-signedData",NID_pkcs7_signed,9, |
dfeab068 | 200 | &(lvalues[125]),0}, |
d02b48c6 | 201 | {"pkcs7-envelopedData","pkcs7-envelopedData",NID_pkcs7_enveloped,9, |
dfeab068 | 202 | &(lvalues[134]),0}, |
d02b48c6 | 203 | {"pkcs7-signedAndEnvelopedData","pkcs7-signedAndEnvelopedData", |
dfeab068 | 204 | NID_pkcs7_signedAndEnveloped,9,&(lvalues[143]),0}, |
d02b48c6 | 205 | {"pkcs7-digestData","pkcs7-digestData",NID_pkcs7_digest,9, |
dfeab068 | 206 | &(lvalues[152]),0}, |
d02b48c6 | 207 | {"pkcs7-encryptedData","pkcs7-encryptedData",NID_pkcs7_encrypted,9, |
dfeab068 RE |
208 | &(lvalues[161]),0}, |
209 | {"pkcs3","pkcs3",NID_pkcs3,8,&(lvalues[170]),0}, | |
d02b48c6 | 210 | {"dhKeyAgreement","dhKeyAgreement",NID_dhKeyAgreement,9, |
dfeab068 RE |
211 | &(lvalues[178]),0}, |
212 | {"DES-ECB","des-ecb",NID_des_ecb,5,&(lvalues[187]),0}, | |
213 | {"DES-CFB","des-cfb",NID_des_cfb64,5,&(lvalues[192]),0}, | |
214 | {"DES-CBC","des-cbc",NID_des_cbc,5,&(lvalues[197]),0}, | |
215 | {"DES-EDE","des-ede",NID_des_ede,5,&(lvalues[202]),0}, | |
d02b48c6 RE |
216 | {"DES-EDE3","des-ede3",NID_des_ede3,0,NULL}, |
217 | {"IDEA-CBC","idea-cbc",NID_idea_cbc,0,NULL}, | |
218 | {"IDEA-CFB","idea-cfb",NID_idea_cfb64,0,NULL}, | |
219 | {"IDEA-ECB","idea-ecb",NID_idea_ecb,0,NULL}, | |
dfeab068 | 220 | {"RC2-CBC","rc2-cbc",NID_rc2_cbc,8,&(lvalues[207]),0}, |
d02b48c6 RE |
221 | {"RC2-ECB","rc2-ecb",NID_rc2_ecb,0,NULL}, |
222 | {"RC2-CFB","rc2-cfb",NID_rc2_cfb64,0,NULL}, | |
223 | {"RC2-OFB","rc2-ofb",NID_rc2_ofb64,0,NULL}, | |
dfeab068 | 224 | {"SHA","sha",NID_sha,5,&(lvalues[215]),0}, |
d02b48c6 | 225 | {"RSA-SHA","shaWithRSAEncryption",NID_shaWithRSAEncryption,5, |
dfeab068 | 226 | &(lvalues[220]),0}, |
d02b48c6 | 227 | {"DES-EDE-CBC","des-ede-cbc",NID_des_ede_cbc,0,NULL}, |
dfeab068 RE |
228 | {"DES-EDE3-CBC","des-ede3-cbc",NID_des_ede3_cbc,8,&(lvalues[225]),0}, |
229 | {"DES-OFB","des-ofb",NID_des_ofb64,5,&(lvalues[233]),0}, | |
d02b48c6 | 230 | {"IDEA-OFB","idea-ofb",NID_idea_ofb64,0,NULL}, |
dfeab068 RE |
231 | {"pkcs9","pkcs9",NID_pkcs9,8,&(lvalues[238]),0}, |
232 | {"Email","emailAddress",NID_pkcs9_emailAddress,9,&(lvalues[246]),0}, | |
d02b48c6 | 233 | {"unstructuredName","unstructuredName",NID_pkcs9_unstructuredName,9, |
dfeab068 RE |
234 | &(lvalues[255]),0}, |
235 | {"contentType","contentType",NID_pkcs9_contentType,9,&(lvalues[264]),0}, | |
d02b48c6 | 236 | {"messageDigest","messageDigest",NID_pkcs9_messageDigest,9, |
dfeab068 RE |
237 | &(lvalues[273]),0}, |
238 | {"signingTime","signingTime",NID_pkcs9_signingTime,9,&(lvalues[282]),0}, | |
d02b48c6 | 239 | {"countersignature","countersignature",NID_pkcs9_countersignature,9, |
dfeab068 | 240 | &(lvalues[291]),0}, |
d02b48c6 | 241 | {"challengePassword","challengePassword",NID_pkcs9_challengePassword, |
dfeab068 | 242 | 9,&(lvalues[300]),0}, |
d02b48c6 | 243 | {"unstructuredAddress","unstructuredAddress", |
dfeab068 | 244 | NID_pkcs9_unstructuredAddress,9,&(lvalues[309]),0}, |
d02b48c6 | 245 | {"extendedCertificateAttributes","extendedCertificateAttributes", |
dfeab068 | 246 | NID_pkcs9_extCertAttributes,9,&(lvalues[318]),0}, |
d02b48c6 | 247 | {"Netscape","Netscape Communications Corp.",NID_netscape,7, |
dfeab068 | 248 | &(lvalues[327]),0}, |
d02b48c6 | 249 | {"nsCertExt","Netscape Certificate Extension", |
dfeab068 | 250 | NID_netscape_cert_extension,8,&(lvalues[334]),0}, |
d02b48c6 | 251 | {"nsDataType","Netscape Data Type",NID_netscape_data_type,8, |
dfeab068 | 252 | &(lvalues[342]),0}, |
d02b48c6 RE |
253 | {"DES-EDE-CFB","des-ede-cfb",NID_des_ede_cfb64,0,NULL}, |
254 | {"DES-EDE3-CFB","des-ede3-cfb",NID_des_ede3_cfb64,0,NULL}, | |
255 | {"DES-EDE-OFB","des-ede-ofb",NID_des_ede_ofb64,0,NULL}, | |
256 | {"DES-EDE3-OFB","des-ede3-ofb",NID_des_ede3_ofb64,0,NULL}, | |
dfeab068 | 257 | {"SHA1","sha1",NID_sha1,5,&(lvalues[350]),0}, |
d02b48c6 | 258 | {"RSA-SHA1","sha1WithRSAEncryption",NID_sha1WithRSAEncryption,9, |
dfeab068 RE |
259 | &(lvalues[355]),0}, |
260 | {"DSA-SHA","dsaWithSHA",NID_dsaWithSHA,5,&(lvalues[364]),0}, | |
261 | {"DSA-old","dsaEncryption-old",NID_dsa_2,5,&(lvalues[369]),0}, | |
d02b48c6 | 262 | {"pbeWithSHA1AndRC2-CBC","pbeWithSHA1AndRC2-CBC", |
dfeab068 | 263 | NID_pbeWithSHA1AndRC2_CBC,9,&(lvalues[374]),0}, |
d02b48c6 | 264 | {"pbeWithSHA1AndRC4","pbeWithSHA1AndRC4",NID_pbeWithSHA1AndRC4,9, |
dfeab068 RE |
265 | &(lvalues[383]),0}, |
266 | {"DSA-SHA1-old","dsaWithSHA1-old",NID_dsaWithSHA1_2,5,&(lvalues[392]),0}, | |
d02b48c6 | 267 | {"nsCertType","Netscape Cert Type",NID_netscape_cert_type,9, |
dfeab068 | 268 | &(lvalues[397]),0}, |
d02b48c6 | 269 | {"nsBaseUrl","Netscape Base Url",NID_netscape_base_url,9, |
dfeab068 | 270 | &(lvalues[406]),0}, |
d02b48c6 | 271 | {"nsRevocationUrl","Netscape Revocation Url", |
dfeab068 | 272 | NID_netscape_revocation_url,9,&(lvalues[415]),0}, |
d02b48c6 | 273 | {"nsCaRevocationUrl","Netscape CA Revocation Url", |
dfeab068 | 274 | NID_netscape_ca_revocation_url,9,&(lvalues[424]),0}, |
d02b48c6 | 275 | {"nsRenewalUrl","Netscape Renewal Url",NID_netscape_renewal_url,9, |
dfeab068 | 276 | &(lvalues[433]),0}, |
d02b48c6 | 277 | {"nsCaPolicyUrl","Netscape CA Policy Url",NID_netscape_ca_policy_url, |
dfeab068 | 278 | 9,&(lvalues[442]),0}, |
d02b48c6 | 279 | {"nsSslServerName","Netscape SSL Server Name", |
dfeab068 RE |
280 | NID_netscape_ssl_server_name,9,&(lvalues[451]),0}, |
281 | {"nsComment","Netscape Comment",NID_netscape_comment,9,&(lvalues[460]),0}, | |
d02b48c6 | 282 | {"nsCertSequence","Netscape Certificate Sequence", |
dfeab068 | 283 | NID_netscape_cert_sequence,9,&(lvalues[469]),0}, |
d02b48c6 | 284 | {"DESX-CBC","desx-cbc",NID_desx_cbc,0,NULL}, |
dfeab068 | 285 | {"ld-ce","ld-ce",NID_ld_ce,2,&(lvalues[478]),0}, |
d02b48c6 | 286 | {"subjectKeyIdentifier","X509v3 Subject Key Identifier", |
dfeab068 RE |
287 | NID_subject_key_identifier,3,&(lvalues[480]),0}, |
288 | {"keyUsage","X509v3 Key Usage",NID_key_usage,3,&(lvalues[483]),0}, | |
d02b48c6 | 289 | {"privateKeyUsagePeriod","X509v3 Private Key Usage Period", |
dfeab068 | 290 | NID_private_key_usage_period,3,&(lvalues[486]),0}, |
d02b48c6 | 291 | {"subjectAltName","X509v3 Subject Alternative Name", |
dfeab068 | 292 | NID_subject_alt_name,3,&(lvalues[489]),0}, |
d02b48c6 | 293 | {"issuerAltName","X509v3 Issuer Alternative Name",NID_issuer_alt_name, |
dfeab068 | 294 | 3,&(lvalues[492]),0}, |
d02b48c6 | 295 | {"basicConstraints","X509v3 Basic Constraints",NID_basic_constraints, |
dfeab068 RE |
296 | 3,&(lvalues[495]),0}, |
297 | {"crlNumber","X509v3 CRL Number",NID_crl_number,3,&(lvalues[498]),0}, | |
d02b48c6 | 298 | {"certificatePolicies","X509v3 Certificate Policies", |
dfeab068 | 299 | NID_certificate_policies,3,&(lvalues[501]),0}, |
d02b48c6 | 300 | {"authorityKeyIdentifier","X509v3 Authority Key Identifier", |
dfeab068 | 301 | NID_authority_key_identifier,3,&(lvalues[504]),0}, |
d02b48c6 RE |
302 | {"BF-CBC","bf-cbc",NID_bf_cbc,0,NULL}, |
303 | {"BF-ECB","bf-ecb",NID_bf_ecb,0,NULL}, | |
304 | {"BF-CFB","bf-cfb",NID_bf_cfb64,0,NULL}, | |
305 | {"BF-OFB","bf-ofb",NID_bf_ofb64,0,NULL}, | |
dfeab068 RE |
306 | {"MDC2","mdc2",NID_mdc2,4,&(lvalues[507]),0}, |
307 | {"RSA-MDC2","mdc2withRSA",NID_mdc2WithRSA,4,&(lvalues[511]),0}, | |
58964a49 RE |
308 | {"RC4-40","rc4-40",NID_rc4_40,0,NULL}, |
309 | {"RC2-40-CBC","rc2-40-cbc",NID_rc2_40_cbc,0,NULL}, | |
dfeab068 RE |
310 | {"G","givenName",NID_givenName,3,&(lvalues[515]),0}, |
311 | {"S","surname",NID_surname,3,&(lvalues[518]),0}, | |
312 | {"I","initials",NID_initials,3,&(lvalues[521]),0}, | |
313 | {"UID","uniqueIdentifier",NID_uniqueIdentifier,3,&(lvalues[524]),0}, | |
58964a49 | 314 | {"crlDistributionPoints","X509v3 CRL Distribution Points", |
dfeab068 RE |
315 | NID_crl_distribution_points,3,&(lvalues[527]),0}, |
316 | {"RSA-NP-MD5","md5WithRSA",NID_md5WithRSA,5,&(lvalues[530]),0}, | |
317 | {"SN","serialNumber",NID_serialNumber,3,&(lvalues[535]),0}, | |
318 | {"T","title",NID_title,3,&(lvalues[538]),0}, | |
319 | {"D","description",NID_description,3,&(lvalues[541]),0}, | |
320 | {"CAST5-CBC","cast5-cbc",NID_cast5_cbc,9,&(lvalues[544]),0}, | |
58964a49 RE |
321 | {"CAST5-ECB","cast5-ecb",NID_cast5_ecb,0,NULL}, |
322 | {"CAST5-CFB","cast5-cfb",NID_cast5_cfb64,0,NULL}, | |
323 | {"CAST5-OFB","cast5-ofb",NID_cast5_ofb64,0,NULL}, | |
324 | {"pbeWithMD5AndCast5CBC","pbeWithMD5AndCast5CBC", | |
dfeab068 RE |
325 | NID_pbeWithMD5AndCast5_CBC,9,&(lvalues[553]),0}, |
326 | {"DSA-SHA1","dsaWithSHA1",NID_dsaWithSHA1,7,&(lvalues[562]),0}, | |
58964a49 | 327 | {"MD5-SHA1","md5-sha1",NID_md5_sha1,0,NULL}, |
dfeab068 RE |
328 | {"RSA-SHA1-2","sha1WithRSA",NID_sha1WithRSA,5,&(lvalues[569]),0}, |
329 | {"DSA","dsaEncryption",NID_dsa,7,&(lvalues[574]),0}, | |
330 | {"RIPEMD160","ripemd160",NID_ripemd160,5,&(lvalues[581]),0}, | |
58964a49 RE |
331 | {NULL,NULL,NID_undef,0,NULL}, |
332 | {"RSA-RIPEMD160","ripemd160WithRSA",NID_ripemd160WithRSA,6, | |
dfeab068 RE |
333 | &(lvalues[586]),0}, |
334 | {"RC5-CBC","rc5-cbc",NID_rc5_cbc,8,&(lvalues[592]),0}, | |
58964a49 RE |
335 | {"RC5-ECB","rc5-ecb",NID_rc5_ecb,0,NULL}, |
336 | {"RC5-CFB","rc5-cfb",NID_rc5_cfb64,0,NULL}, | |
337 | {"RC5-OFB","rc5-ofb",NID_rc5_ofb64,0,NULL}, | |
dfeab068 RE |
338 | {"RLE","run length compression",NID_rle_compression,5,&(lvalues[600]),0}, |
339 | {"ZLIB","zlib compression",NID_zlib_compression,5,&(lvalues[605]),0}, | |
06d5b162 RE |
340 | {"extendedKeyUsage","X509v3 Extended Key Usage",NID_ext_key_usage,3, |
341 | &(lvalues[610]),0}, | |
d02b48c6 RE |
342 | }; |
343 | ||
344 | static ASN1_OBJECT *sn_objs[NUM_SN]={ | |
345 | &(nid_objs[91]),/* "BF-CBC" */ | |
346 | &(nid_objs[93]),/* "BF-CFB" */ | |
347 | &(nid_objs[92]),/* "BF-ECB" */ | |
348 | &(nid_objs[94]),/* "BF-OFB" */ | |
349 | &(nid_objs[14]),/* "C" */ | |
58964a49 RE |
350 | &(nid_objs[108]),/* "CAST5-CBC" */ |
351 | &(nid_objs[110]),/* "CAST5-CFB" */ | |
352 | &(nid_objs[109]),/* "CAST5-ECB" */ | |
353 | &(nid_objs[111]),/* "CAST5-OFB" */ | |
d02b48c6 | 354 | &(nid_objs[13]),/* "CN" */ |
58964a49 | 355 | &(nid_objs[107]),/* "D" */ |
d02b48c6 RE |
356 | &(nid_objs[31]),/* "DES-CBC" */ |
357 | &(nid_objs[30]),/* "DES-CFB" */ | |
358 | &(nid_objs[29]),/* "DES-ECB" */ | |
359 | &(nid_objs[32]),/* "DES-EDE" */ | |
360 | &(nid_objs[43]),/* "DES-EDE-CBC" */ | |
361 | &(nid_objs[60]),/* "DES-EDE-CFB" */ | |
362 | &(nid_objs[62]),/* "DES-EDE-OFB" */ | |
363 | &(nid_objs[33]),/* "DES-EDE3" */ | |
364 | &(nid_objs[44]),/* "DES-EDE3-CBC" */ | |
365 | &(nid_objs[61]),/* "DES-EDE3-CFB" */ | |
366 | &(nid_objs[63]),/* "DES-EDE3-OFB" */ | |
367 | &(nid_objs[45]),/* "DES-OFB" */ | |
368 | &(nid_objs[80]),/* "DESX-CBC" */ | |
58964a49 | 369 | &(nid_objs[116]),/* "DSA" */ |
d02b48c6 | 370 | &(nid_objs[66]),/* "DSA-SHA" */ |
58964a49 RE |
371 | &(nid_objs[113]),/* "DSA-SHA1" */ |
372 | &(nid_objs[70]),/* "DSA-SHA1-old" */ | |
373 | &(nid_objs[67]),/* "DSA-old" */ | |
d02b48c6 | 374 | &(nid_objs[48]),/* "Email" */ |
58964a49 RE |
375 | &(nid_objs[99]),/* "G" */ |
376 | &(nid_objs[101]),/* "I" */ | |
d02b48c6 RE |
377 | &(nid_objs[34]),/* "IDEA-CBC" */ |
378 | &(nid_objs[35]),/* "IDEA-CFB" */ | |
379 | &(nid_objs[36]),/* "IDEA-ECB" */ | |
380 | &(nid_objs[46]),/* "IDEA-OFB" */ | |
381 | &(nid_objs[15]),/* "L" */ | |
382 | &(nid_objs[ 3]),/* "MD2" */ | |
383 | &(nid_objs[ 4]),/* "MD5" */ | |
58964a49 | 384 | &(nid_objs[114]),/* "MD5-SHA1" */ |
d02b48c6 RE |
385 | &(nid_objs[95]),/* "MDC2" */ |
386 | &(nid_objs[57]),/* "Netscape" */ | |
387 | &(nid_objs[17]),/* "O" */ | |
388 | &(nid_objs[18]),/* "OU" */ | |
58964a49 | 389 | &(nid_objs[98]),/* "RC2-40-CBC" */ |
d02b48c6 RE |
390 | &(nid_objs[37]),/* "RC2-CBC" */ |
391 | &(nid_objs[39]),/* "RC2-CFB" */ | |
392 | &(nid_objs[38]),/* "RC2-ECB" */ | |
393 | &(nid_objs[40]),/* "RC2-OFB" */ | |
394 | &(nid_objs[ 5]),/* "RC4" */ | |
58964a49 RE |
395 | &(nid_objs[97]),/* "RC4-40" */ |
396 | &(nid_objs[120]),/* "RC5-CBC" */ | |
397 | &(nid_objs[122]),/* "RC5-CFB" */ | |
398 | &(nid_objs[121]),/* "RC5-ECB" */ | |
399 | &(nid_objs[123]),/* "RC5-OFB" */ | |
400 | &(nid_objs[117]),/* "RIPEMD160" */ | |
dfeab068 | 401 | &(nid_objs[124]),/* "RLE" */ |
d02b48c6 RE |
402 | &(nid_objs[19]),/* "RSA" */ |
403 | &(nid_objs[ 7]),/* "RSA-MD2" */ | |
404 | &(nid_objs[ 8]),/* "RSA-MD5" */ | |
405 | &(nid_objs[96]),/* "RSA-MDC2" */ | |
58964a49 RE |
406 | &(nid_objs[104]),/* "RSA-NP-MD5" */ |
407 | &(nid_objs[119]),/* "RSA-RIPEMD160" */ | |
d02b48c6 RE |
408 | &(nid_objs[42]),/* "RSA-SHA" */ |
409 | &(nid_objs[65]),/* "RSA-SHA1" */ | |
58964a49 RE |
410 | &(nid_objs[115]),/* "RSA-SHA1-2" */ |
411 | &(nid_objs[100]),/* "S" */ | |
d02b48c6 RE |
412 | &(nid_objs[41]),/* "SHA" */ |
413 | &(nid_objs[64]),/* "SHA1" */ | |
58964a49 | 414 | &(nid_objs[105]),/* "SN" */ |
d02b48c6 | 415 | &(nid_objs[16]),/* "ST" */ |
58964a49 RE |
416 | &(nid_objs[106]),/* "T" */ |
417 | &(nid_objs[102]),/* "UID" */ | |
d02b48c6 | 418 | &(nid_objs[ 0]),/* "UNDEF" */ |
dfeab068 | 419 | &(nid_objs[125]),/* "ZLIB" */ |
d02b48c6 RE |
420 | &(nid_objs[90]),/* "authorityKeyIdentifier" */ |
421 | &(nid_objs[87]),/* "basicConstraints" */ | |
422 | &(nid_objs[89]),/* "certificatePolicies" */ | |
58964a49 | 423 | &(nid_objs[103]),/* "crlDistributionPoints" */ |
d02b48c6 | 424 | &(nid_objs[88]),/* "crlNumber" */ |
06d5b162 | 425 | &(nid_objs[126]),/* "extendedKeyUsage" */ |
d02b48c6 RE |
426 | &(nid_objs[86]),/* "issuerAltName" */ |
427 | &(nid_objs[83]),/* "keyUsage" */ | |
428 | &(nid_objs[81]),/* "ld-ce" */ | |
429 | &(nid_objs[72]),/* "nsBaseUrl" */ | |
430 | &(nid_objs[76]),/* "nsCaPolicyUrl" */ | |
431 | &(nid_objs[74]),/* "nsCaRevocationUrl" */ | |
432 | &(nid_objs[58]),/* "nsCertExt" */ | |
433 | &(nid_objs[79]),/* "nsCertSequence" */ | |
434 | &(nid_objs[71]),/* "nsCertType" */ | |
435 | &(nid_objs[78]),/* "nsComment" */ | |
436 | &(nid_objs[59]),/* "nsDataType" */ | |
437 | &(nid_objs[75]),/* "nsRenewalUrl" */ | |
438 | &(nid_objs[73]),/* "nsRevocationUrl" */ | |
439 | &(nid_objs[77]),/* "nsSslServerName" */ | |
440 | &(nid_objs[84]),/* "privateKeyUsagePeriod" */ | |
441 | &(nid_objs[85]),/* "subjectAltName" */ | |
442 | &(nid_objs[82]),/* "subjectKeyIdentifier" */ | |
443 | }; | |
444 | ||
445 | static ASN1_OBJECT *ln_objs[NUM_LN]={ | |
446 | &(nid_objs[72]),/* "Netscape Base Url" */ | |
447 | &(nid_objs[76]),/* "Netscape CA Policy Url" */ | |
448 | &(nid_objs[74]),/* "Netscape CA Revocation Url" */ | |
449 | &(nid_objs[71]),/* "Netscape Cert Type" */ | |
450 | &(nid_objs[58]),/* "Netscape Certificate Extension" */ | |
451 | &(nid_objs[79]),/* "Netscape Certificate Sequence" */ | |
452 | &(nid_objs[78]),/* "Netscape Comment" */ | |
453 | &(nid_objs[57]),/* "Netscape Communications Corp." */ | |
454 | &(nid_objs[59]),/* "Netscape Data Type" */ | |
455 | &(nid_objs[75]),/* "Netscape Renewal Url" */ | |
456 | &(nid_objs[73]),/* "Netscape Revocation Url" */ | |
457 | &(nid_objs[77]),/* "Netscape SSL Server Name" */ | |
458 | &(nid_objs[11]),/* "X500" */ | |
459 | &(nid_objs[12]),/* "X509" */ | |
460 | &(nid_objs[90]),/* "X509v3 Authority Key Identifier" */ | |
461 | &(nid_objs[87]),/* "X509v3 Basic Constraints" */ | |
58964a49 | 462 | &(nid_objs[103]),/* "X509v3 CRL Distribution Points" */ |
d02b48c6 RE |
463 | &(nid_objs[88]),/* "X509v3 CRL Number" */ |
464 | &(nid_objs[89]),/* "X509v3 Certificate Policies" */ | |
06d5b162 | 465 | &(nid_objs[126]),/* "X509v3 Extended Key Usage" */ |
d02b48c6 RE |
466 | &(nid_objs[86]),/* "X509v3 Issuer Alternative Name" */ |
467 | &(nid_objs[83]),/* "X509v3 Key Usage" */ | |
468 | &(nid_objs[84]),/* "X509v3 Private Key Usage Period" */ | |
469 | &(nid_objs[85]),/* "X509v3 Subject Alternative Name" */ | |
470 | &(nid_objs[82]),/* "X509v3 Subject Key Identifier" */ | |
471 | &(nid_objs[91]),/* "bf-cbc" */ | |
472 | &(nid_objs[93]),/* "bf-cfb" */ | |
473 | &(nid_objs[92]),/* "bf-ecb" */ | |
474 | &(nid_objs[94]),/* "bf-ofb" */ | |
58964a49 RE |
475 | &(nid_objs[108]),/* "cast5-cbc" */ |
476 | &(nid_objs[110]),/* "cast5-cfb" */ | |
477 | &(nid_objs[109]),/* "cast5-ecb" */ | |
478 | &(nid_objs[111]),/* "cast5-ofb" */ | |
d02b48c6 RE |
479 | &(nid_objs[54]),/* "challengePassword" */ |
480 | &(nid_objs[13]),/* "commonName" */ | |
481 | &(nid_objs[50]),/* "contentType" */ | |
482 | &(nid_objs[53]),/* "countersignature" */ | |
483 | &(nid_objs[14]),/* "countryName" */ | |
484 | &(nid_objs[31]),/* "des-cbc" */ | |
485 | &(nid_objs[30]),/* "des-cfb" */ | |
486 | &(nid_objs[29]),/* "des-ecb" */ | |
487 | &(nid_objs[32]),/* "des-ede" */ | |
488 | &(nid_objs[43]),/* "des-ede-cbc" */ | |
489 | &(nid_objs[60]),/* "des-ede-cfb" */ | |
490 | &(nid_objs[62]),/* "des-ede-ofb" */ | |
491 | &(nid_objs[33]),/* "des-ede3" */ | |
492 | &(nid_objs[44]),/* "des-ede3-cbc" */ | |
493 | &(nid_objs[61]),/* "des-ede3-cfb" */ | |
494 | &(nid_objs[63]),/* "des-ede3-ofb" */ | |
495 | &(nid_objs[45]),/* "des-ofb" */ | |
58964a49 | 496 | &(nid_objs[107]),/* "description" */ |
d02b48c6 RE |
497 | &(nid_objs[80]),/* "desx-cbc" */ |
498 | &(nid_objs[28]),/* "dhKeyAgreement" */ | |
58964a49 RE |
499 | &(nid_objs[116]),/* "dsaEncryption" */ |
500 | &(nid_objs[67]),/* "dsaEncryption-old" */ | |
d02b48c6 | 501 | &(nid_objs[66]),/* "dsaWithSHA" */ |
58964a49 | 502 | &(nid_objs[113]),/* "dsaWithSHA1" */ |
dfeab068 | 503 | &(nid_objs[70]),/* "dsaWithSHA1-old" */ |
d02b48c6 RE |
504 | &(nid_objs[48]),/* "emailAddress" */ |
505 | &(nid_objs[56]),/* "extendedCertificateAttributes" */ | |
58964a49 | 506 | &(nid_objs[99]),/* "givenName" */ |
d02b48c6 RE |
507 | &(nid_objs[34]),/* "idea-cbc" */ |
508 | &(nid_objs[35]),/* "idea-cfb" */ | |
509 | &(nid_objs[36]),/* "idea-ecb" */ | |
510 | &(nid_objs[46]),/* "idea-ofb" */ | |
58964a49 | 511 | &(nid_objs[101]),/* "initials" */ |
d02b48c6 RE |
512 | &(nid_objs[15]),/* "localityName" */ |
513 | &(nid_objs[ 3]),/* "md2" */ | |
514 | &(nid_objs[ 7]),/* "md2WithRSAEncryption" */ | |
515 | &(nid_objs[ 4]),/* "md5" */ | |
58964a49 RE |
516 | &(nid_objs[114]),/* "md5-sha1" */ |
517 | &(nid_objs[104]),/* "md5WithRSA" */ | |
d02b48c6 RE |
518 | &(nid_objs[ 8]),/* "md5WithRSAEncryption" */ |
519 | &(nid_objs[95]),/* "mdc2" */ | |
520 | &(nid_objs[96]),/* "mdc2withRSA" */ | |
521 | &(nid_objs[51]),/* "messageDigest" */ | |
522 | &(nid_objs[17]),/* "organizationName" */ | |
523 | &(nid_objs[18]),/* "organizationalUnitName" */ | |
524 | &(nid_objs[ 9]),/* "pbeWithMD2AndDES-CBC" */ | |
58964a49 | 525 | &(nid_objs[112]),/* "pbeWithMD5AndCast5CBC" */ |
d02b48c6 RE |
526 | &(nid_objs[10]),/* "pbeWithMD5AndDES-CBC" */ |
527 | &(nid_objs[68]),/* "pbeWithSHA1AndRC2-CBC" */ | |
528 | &(nid_objs[69]),/* "pbeWithSHA1AndRC4" */ | |
529 | &(nid_objs[ 2]),/* "pkcs" */ | |
530 | &(nid_objs[27]),/* "pkcs3" */ | |
531 | &(nid_objs[20]),/* "pkcs7" */ | |
532 | &(nid_objs[21]),/* "pkcs7-data" */ | |
533 | &(nid_objs[25]),/* "pkcs7-digestData" */ | |
534 | &(nid_objs[26]),/* "pkcs7-encryptedData" */ | |
535 | &(nid_objs[23]),/* "pkcs7-envelopedData" */ | |
536 | &(nid_objs[24]),/* "pkcs7-signedAndEnvelopedData" */ | |
537 | &(nid_objs[22]),/* "pkcs7-signedData" */ | |
538 | &(nid_objs[47]),/* "pkcs9" */ | |
58964a49 | 539 | &(nid_objs[98]),/* "rc2-40-cbc" */ |
d02b48c6 RE |
540 | &(nid_objs[37]),/* "rc2-cbc" */ |
541 | &(nid_objs[39]),/* "rc2-cfb" */ | |
542 | &(nid_objs[38]),/* "rc2-ecb" */ | |
543 | &(nid_objs[40]),/* "rc2-ofb" */ | |
544 | &(nid_objs[ 5]),/* "rc4" */ | |
58964a49 RE |
545 | &(nid_objs[97]),/* "rc4-40" */ |
546 | &(nid_objs[120]),/* "rc5-cbc" */ | |
547 | &(nid_objs[122]),/* "rc5-cfb" */ | |
548 | &(nid_objs[121]),/* "rc5-ecb" */ | |
549 | &(nid_objs[123]),/* "rc5-ofb" */ | |
550 | &(nid_objs[117]),/* "ripemd160" */ | |
551 | &(nid_objs[119]),/* "ripemd160WithRSA" */ | |
d02b48c6 RE |
552 | &(nid_objs[19]),/* "rsa" */ |
553 | &(nid_objs[ 6]),/* "rsaEncryption" */ | |
554 | &(nid_objs[ 1]),/* "rsadsi" */ | |
dfeab068 | 555 | &(nid_objs[124]),/* "run length compression" */ |
58964a49 | 556 | &(nid_objs[105]),/* "serialNumber" */ |
d02b48c6 RE |
557 | &(nid_objs[41]),/* "sha" */ |
558 | &(nid_objs[64]),/* "sha1" */ | |
58964a49 | 559 | &(nid_objs[115]),/* "sha1WithRSA" */ |
d02b48c6 RE |
560 | &(nid_objs[65]),/* "sha1WithRSAEncryption" */ |
561 | &(nid_objs[42]),/* "shaWithRSAEncryption" */ | |
562 | &(nid_objs[52]),/* "signingTime" */ | |
563 | &(nid_objs[16]),/* "stateOrProvinceName" */ | |
58964a49 RE |
564 | &(nid_objs[100]),/* "surname" */ |
565 | &(nid_objs[106]),/* "title" */ | |
d02b48c6 | 566 | &(nid_objs[ 0]),/* "undefined" */ |
58964a49 | 567 | &(nid_objs[102]),/* "uniqueIdentifier" */ |
d02b48c6 RE |
568 | &(nid_objs[55]),/* "unstructuredAddress" */ |
569 | &(nid_objs[49]),/* "unstructuredName" */ | |
dfeab068 | 570 | &(nid_objs[125]),/* "zlib compression" */ |
d02b48c6 RE |
571 | }; |
572 | ||
573 | static ASN1_OBJECT *obj_objs[NUM_OBJ]={ | |
dfeab068 | 574 | &(nid_objs[ 0]),/* OBJ_undef 0 */ |
d02b48c6 RE |
575 | &(nid_objs[11]),/* OBJ_X500 2 5 */ |
576 | &(nid_objs[12]),/* OBJ_X509 2 5 4 */ | |
577 | &(nid_objs[81]),/* OBJ_ld_ce 2 5 29 */ | |
578 | &(nid_objs[13]),/* OBJ_commonName 2 5 4 3 */ | |
58964a49 RE |
579 | &(nid_objs[100]),/* OBJ_surname 2 5 4 4 */ |
580 | &(nid_objs[105]),/* OBJ_serialNumber 2 5 4 5 */ | |
d02b48c6 RE |
581 | &(nid_objs[14]),/* OBJ_countryName 2 5 4 6 */ |
582 | &(nid_objs[15]),/* OBJ_localityName 2 5 4 7 */ | |
583 | &(nid_objs[16]),/* OBJ_stateOrProvinceName 2 5 4 8 */ | |
584 | &(nid_objs[17]),/* OBJ_organizationName 2 5 4 10 */ | |
585 | &(nid_objs[18]),/* OBJ_organizationalUnitName 2 5 4 11 */ | |
58964a49 RE |
586 | &(nid_objs[106]),/* OBJ_title 2 5 4 12 */ |
587 | &(nid_objs[107]),/* OBJ_description 2 5 4 13 */ | |
588 | &(nid_objs[99]),/* OBJ_givenName 2 5 4 42 */ | |
589 | &(nid_objs[101]),/* OBJ_initials 2 5 4 43 */ | |
590 | &(nid_objs[102]),/* OBJ_uniqueIdentifier 2 5 4 45 */ | |
d02b48c6 RE |
591 | &(nid_objs[82]),/* OBJ_subject_key_identifier 2 5 29 14 */ |
592 | &(nid_objs[83]),/* OBJ_key_usage 2 5 29 15 */ | |
593 | &(nid_objs[84]),/* OBJ_private_key_usage_period 2 5 29 16 */ | |
594 | &(nid_objs[85]),/* OBJ_subject_alt_name 2 5 29 17 */ | |
595 | &(nid_objs[86]),/* OBJ_issuer_alt_name 2 5 29 18 */ | |
596 | &(nid_objs[87]),/* OBJ_basic_constraints 2 5 29 19 */ | |
597 | &(nid_objs[88]),/* OBJ_crl_number 2 5 29 20 */ | |
58964a49 | 598 | &(nid_objs[103]),/* OBJ_crl_distribution_points 2 5 29 31 */ |
d02b48c6 RE |
599 | &(nid_objs[89]),/* OBJ_certificate_policies 2 5 29 32 */ |
600 | &(nid_objs[90]),/* OBJ_authority_key_identifier 2 5 29 35 */ | |
06d5b162 | 601 | &(nid_objs[126]),/* OBJ_ext_key_usage 2 5 29 37 */ |
d02b48c6 RE |
602 | &(nid_objs[19]),/* OBJ_rsa 2 5 8 1 1 */ |
603 | &(nid_objs[96]),/* OBJ_mdc2WithRSA 2 5 8 3 100 */ | |
604 | &(nid_objs[95]),/* OBJ_mdc2 2 5 8 3 101 */ | |
dfeab068 | 605 | &(nid_objs[125]),/* OBJ_zlib_compression 1 1 1 1 666.2 */ |
06d5b162 | 606 | &(nid_objs[124]),/* OBJ_rle_compression 1 1 1 1 666.1 */ |
58964a49 | 607 | &(nid_objs[104]),/* OBJ_md5WithRSA 1 3 14 3 2 3 */ |
d02b48c6 RE |
608 | &(nid_objs[29]),/* OBJ_des_ecb 1 3 14 3 2 6 */ |
609 | &(nid_objs[31]),/* OBJ_des_cbc 1 3 14 3 2 7 */ | |
610 | &(nid_objs[45]),/* OBJ_des_ofb64 1 3 14 3 2 8 */ | |
611 | &(nid_objs[30]),/* OBJ_des_cfb64 1 3 14 3 2 9 */ | |
58964a49 | 612 | &(nid_objs[67]),/* OBJ_dsa_2 1 3 14 3 2 12 */ |
d02b48c6 RE |
613 | &(nid_objs[66]),/* OBJ_dsaWithSHA 1 3 14 3 2 13 */ |
614 | &(nid_objs[42]),/* OBJ_shaWithRSAEncryption 1 3 14 3 2 15 */ | |
615 | &(nid_objs[32]),/* OBJ_des_ede 1 3 14 3 2 17 */ | |
616 | &(nid_objs[41]),/* OBJ_sha 1 3 14 3 2 18 */ | |
617 | &(nid_objs[64]),/* OBJ_sha1 1 3 14 3 2 26 */ | |
58964a49 RE |
618 | &(nid_objs[70]),/* OBJ_dsaWithSHA1_2 1 3 14 3 2 27 */ |
619 | &(nid_objs[115]),/* OBJ_sha1WithRSA 1 3 14 3 2 29 */ | |
620 | &(nid_objs[117]),/* OBJ_ripemd160 1 3 36 3 2 1 */ | |
d02b48c6 | 621 | &(nid_objs[ 1]),/* OBJ_rsadsi 1 2 840 113549 */ |
58964a49 | 622 | &(nid_objs[119]),/* OBJ_ripemd160WithRSA 1 3 36 3 3 1 2 */ |
d02b48c6 | 623 | &(nid_objs[ 2]),/* OBJ_pkcs 1 2 840 113549 1 */ |
58964a49 RE |
624 | &(nid_objs[116]),/* OBJ_dsa 1 2 840 10040 4 1 */ |
625 | &(nid_objs[113]),/* OBJ_dsaWithSHA1 1 2 840 10040 4 3 */ | |
d02b48c6 RE |
626 | &(nid_objs[57]),/* OBJ_netscape 2 16 840 1 113730 */ |
627 | &(nid_objs[27]),/* OBJ_pkcs3 1 2 840 113549 1 3 */ | |
628 | &(nid_objs[20]),/* OBJ_pkcs7 1 2 840 113549 1 7 */ | |
629 | &(nid_objs[47]),/* OBJ_pkcs9 1 2 840 113549 1 9 */ | |
630 | &(nid_objs[ 3]),/* OBJ_md2 1 2 840 113549 2 2 */ | |
631 | &(nid_objs[ 4]),/* OBJ_md5 1 2 840 113549 2 5 */ | |
632 | &(nid_objs[37]),/* OBJ_rc2_cbc 1 2 840 113549 3 2 */ | |
633 | &(nid_objs[ 5]),/* OBJ_rc4 1 2 840 113549 3 4 */ | |
634 | &(nid_objs[44]),/* OBJ_des_ede3_cbc 1 2 840 113549 3 7 */ | |
58964a49 | 635 | &(nid_objs[120]),/* OBJ_rc5_cbc 1 2 840 113549 3 8 */ |
d02b48c6 RE |
636 | &(nid_objs[58]),/* OBJ_netscape_cert_extension 2 16 840 1 113730 1 */ |
637 | &(nid_objs[59]),/* OBJ_netscape_data_type 2 16 840 1 113730 2 */ | |
58964a49 RE |
638 | &(nid_objs[108]),/* OBJ_cast5_cbc 1 2 840 113533 7 66 10 */ |
639 | &(nid_objs[112]),/* OBJ_pbeWithMD5AndCast5_CBC 1 2 840 113533 7 66 12 */ | |
d02b48c6 RE |
640 | &(nid_objs[ 6]),/* OBJ_rsaEncryption 1 2 840 113549 1 1 1 */ |
641 | &(nid_objs[ 7]),/* OBJ_md2WithRSAEncryption 1 2 840 113549 1 1 2 */ | |
642 | &(nid_objs[ 8]),/* OBJ_md5WithRSAEncryption 1 2 840 113549 1 1 4 */ | |
643 | &(nid_objs[65]),/* OBJ_sha1WithRSAEncryption 1 2 840 113549 1 1 5 */ | |
644 | &(nid_objs[28]),/* OBJ_dhKeyAgreement 1 2 840 113549 1 3 1 */ | |
645 | &(nid_objs[ 9]),/* OBJ_pbeWithMD2AndDES_CBC 1 2 840 113549 1 5 1 */ | |
646 | &(nid_objs[10]),/* OBJ_pbeWithMD5AndDES_CBC 1 2 840 113549 1 5 3 */ | |
647 | &(nid_objs[68]),/* OBJ_pbeWithSHA1AndRC2_CBC 1 2 840 113549 1 5 11 */ | |
648 | &(nid_objs[69]),/* OBJ_pbeWithSHA1AndRC4 1 2 840 113549 1 5 12 */ | |
649 | &(nid_objs[21]),/* OBJ_pkcs7_data 1 2 840 113549 1 7 1 */ | |
650 | &(nid_objs[22]),/* OBJ_pkcs7_signed 1 2 840 113549 1 7 2 */ | |
651 | &(nid_objs[23]),/* OBJ_pkcs7_enveloped 1 2 840 113549 1 7 3 */ | |
652 | &(nid_objs[24]),/* OBJ_pkcs7_signedAndEnveloped 1 2 840 113549 1 7 4 */ | |
653 | &(nid_objs[25]),/* OBJ_pkcs7_digest 1 2 840 113549 1 7 5 */ | |
654 | &(nid_objs[26]),/* OBJ_pkcs7_encrypted 1 2 840 113549 1 7 6 */ | |
655 | &(nid_objs[48]),/* OBJ_pkcs9_emailAddress 1 2 840 113549 1 9 1 */ | |
656 | &(nid_objs[49]),/* OBJ_pkcs9_unstructuredName 1 2 840 113549 1 9 2 */ | |
657 | &(nid_objs[50]),/* OBJ_pkcs9_contentType 1 2 840 113549 1 9 3 */ | |
658 | &(nid_objs[51]),/* OBJ_pkcs9_messageDigest 1 2 840 113549 1 9 4 */ | |
659 | &(nid_objs[52]),/* OBJ_pkcs9_signingTime 1 2 840 113549 1 9 5 */ | |
660 | &(nid_objs[53]),/* OBJ_pkcs9_countersignature 1 2 840 113549 1 9 6 */ | |
661 | &(nid_objs[54]),/* OBJ_pkcs9_challengePassword 1 2 840 113549 1 9 7 */ | |
662 | &(nid_objs[55]),/* OBJ_pkcs9_unstructuredAddress 1 2 840 113549 1 9 8 */ | |
663 | &(nid_objs[56]),/* OBJ_pkcs9_extCertAttributes 1 2 840 113549 1 9 9 */ | |
664 | &(nid_objs[71]),/* OBJ_netscape_cert_type 2 16 840 1 113730 1 1 */ | |
665 | &(nid_objs[72]),/* OBJ_netscape_base_url 2 16 840 1 113730 1 2 */ | |
666 | &(nid_objs[73]),/* OBJ_netscape_revocation_url 2 16 840 1 113730 1 3 */ | |
667 | &(nid_objs[74]),/* OBJ_netscape_ca_revocation_url 2 16 840 1 113730 1 4 */ | |
668 | &(nid_objs[75]),/* OBJ_netscape_renewal_url 2 16 840 1 113730 1 7 */ | |
669 | &(nid_objs[76]),/* OBJ_netscape_ca_policy_url 2 16 840 1 113730 1 8 */ | |
670 | &(nid_objs[77]),/* OBJ_netscape_ssl_server_name 2 16 840 1 113730 1 12 */ | |
671 | &(nid_objs[78]),/* OBJ_netscape_comment 2 16 840 1 113730 1 13 */ | |
672 | &(nid_objs[79]),/* OBJ_netscape_cert_sequence 2 16 840 1 113730 2 5 */ | |
673 | }; | |
674 |