1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski  *
3*b1cdbd2cSJim Jagielski  * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski  * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski  * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski  * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski  * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski  * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski  * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski  *
11*b1cdbd2cSJim Jagielski  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski  *
13*b1cdbd2cSJim Jagielski  * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski  * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski  * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski  * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski  * under the License.
19*b1cdbd2cSJim Jagielski  *
20*b1cdbd2cSJim Jagielski  *************************************************************/
21*b1cdbd2cSJim Jagielski 
22*b1cdbd2cSJim Jagielski 
23*b1cdbd2cSJim Jagielski 
24*b1cdbd2cSJim Jagielski #ifndef _OID_HXX_
25*b1cdbd2cSJim Jagielski #define _OID_HXX_
26*b1cdbd2cSJim Jagielski 
27*b1cdbd2cSJim Jagielski typedef struct OIDItemStr OIDItem;
28*b1cdbd2cSJim Jagielski 
29*b1cdbd2cSJim Jagielski struct OIDItemStr {
30*b1cdbd2cSJim Jagielski 	char *oid;
31*b1cdbd2cSJim Jagielski 	char *desc;
32*b1cdbd2cSJim Jagielski };
33*b1cdbd2cSJim Jagielski 
34*b1cdbd2cSJim Jagielski OIDItem OIDs[] = {
35*b1cdbd2cSJim Jagielski 	{"1.2.840.113549",	"RSA Data Security Inc."},
36*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1",	"PKCS"},
37*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.2",	"RSA digest algorithm"},
38*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.3",	"RSA cipher algorithm"},
39*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1",	"PKCS #1"},
40*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.2",	"Unknown"},
41*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.3",	"Unknown"},
42*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.4",	"Unknown"},
43*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.5",	"PKCS #5"},
44*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.6",	"Unknown"},
45*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7",	"PKCS #7"},
46*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.8",	"Unknown"},
47*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9",	"PKCS #9"},
48*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.10",	"Unknown"},
49*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.12",	"PKCS #12"},
50*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.2",	"PKCS #1 MD2 With RSA Encryption"},
51*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.3",	"PKCS #1 MD4 With RSA Encryption"},
52*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.4",	"PKCS #1 MD5 With RSA Encryption"},
53*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.1",	"PKCS #1 RSA Encryption"},
54*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.2",	"PKCS #1 MD2 With RSA Encryption"},
55*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.3",	"PKCS #1 MD4 With RSA Encryption"},
56*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.4",	"PKCS #1 MD5 With RSA Encryption"},
57*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.5",	"PKCS #1 SHA-1 With RSA Encryption"},
58*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.1.5",	"PKCS #1 SHA-1 With RSA Encryption"},
59*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.3.1",	"Unknown"},
60*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.1",	"PKCS #7 Data"},
61*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.2",	"PKCS #7 Signed Data"},
62*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.3",	"PKCS #7 Enveloped Data"},
63*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.4",	"PKCS #7 Signed and Enveloped Data"},
64*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.5",	"PKCS #7 Digested Data"},
65*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.5",	"PKCS #7 Digested Data"},
66*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.7.6",	"PKCS #7 Encrypted Data"},
67*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.1",	"PKCS #9 Email Address"},
68*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.2",	"PKCS #9 Unstructured Name"},
69*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.3",	"PKCS #9 Content Type"},
70*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.4",	"PKCS #9 Message Digest"},
71*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.5",	"PKCS #9 Signing Time"},
72*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.6",	"PKCS #9 Counter Signature"},
73*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.7",	"PKCS #9 Challenge Password"},
74*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.8",	"PKCS #9 Unstructured Address"},
75*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.9",	"PKCS #9 Extended Certificate Attributes"},
76*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.15",	"PKCS #9 S/MIME Capabilities"},
77*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.1.9.15.1",	"Unknown"},
78*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.3.2",	"RC2-CBC"},
79*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.3.4",	"RC4"},
80*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.3.7",	"DES-EDE3-CBC"},
81*b1cdbd2cSJim Jagielski 	{"1.2.840.113549.3.9",	"RC5-CBCPad"},
82*b1cdbd2cSJim Jagielski 	{"1.2.840.10046",	"ANSI X9.42"},
83*b1cdbd2cSJim Jagielski 	{"1.2.840.10046.2.1",	"Diffie-Hellman Public Key Algorithm"},
84*b1cdbd2cSJim Jagielski 	{"1.2.840.10040",	"ANSI X9.57"},
85*b1cdbd2cSJim Jagielski 	{"1.2.840.10040.4.1",	"ANSI X9.57 DSA Signature"},
86*b1cdbd2cSJim Jagielski 	{"1.2.840.10040.4.3",	"ANSI X9.57 Algorithm DSA Signature with SHA-1 Digest"},
87*b1cdbd2cSJim Jagielski 	{"2.5",	"Directory"},
88*b1cdbd2cSJim Jagielski 	{"2.5.8",	"X.500-defined algorithms"},
89*b1cdbd2cSJim Jagielski 	{"2.5.8.1",	"X.500-defined encryption algorithms"},
90*b1cdbd2cSJim Jagielski 	{"2.5.8.2",	"Unknown"},
91*b1cdbd2cSJim Jagielski 	{"2.5.8.3",	"Unknown"},
92*b1cdbd2cSJim Jagielski 	{"2.5.8.1.1",	"RSA Encryption Algorithm"},
93*b1cdbd2cSJim Jagielski 	{"1.3.14",	"Open Systems Implementors Workshop"},
94*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2",	"OIW SECSIG Algorithm"},
95*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.2",	"Unknown"},
96*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.3",	"Unknown"},
97*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.4",	"Unknown"},
98*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.6",	"DES-ECB"},
99*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.7",	"DES-CBC"},
100*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.8",	"DES-OFB"},
101*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.9",	"DES-CFB"},
102*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.10",	"DES-MAC"},
103*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.11",	"Unknown"},
104*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.12",	"Unknown"},
105*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.13",	"Unknown"},
106*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.14",	"Unknown"},
107*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.15",	"ISO SHA with RSA Signature"},
108*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.16",	"Unknown"},
109*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.17",	"DES-EDE"},
110*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.18",	"Unknown"},
111*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.19",	"Unknown"},
112*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.20",	"Unknown"},
113*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.21",	"Unknown"},
114*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.22",	"Unknown"},
115*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.23",	"Unknown"},
116*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.24",	"Unknown"},
117*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.25",	"Unknown"},
118*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.26",	"SHA-1"},
119*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.27",	"Forgezza DSA Signature with SHA-1 Digest"},
120*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.28",	"Unknown"},
121*b1cdbd2cSJim Jagielski 	{"1.3.14.3.2.29",	"Unknown"},
122*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2",	"Unknown"},
123*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2.1",	"Unknown"},
124*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2.2",	"Unknown"},
125*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2.3",	"Unknown"},
126*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2.2.1",	"Unknown"},
127*b1cdbd2cSJim Jagielski 	{"1.3.14.7.2.3.1",	"Unknown"},
128*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1",	"US DOD Infosec"},
129*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.1",	"Unknown"},
130*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.2",	"MISSI DSS Algorithm (Old)"},
131*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.3",	"Unknown"},
132*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.4",	"Skipjack CBC64"},
133*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.5",	"Unknown"},
134*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.6",	"Unknown"},
135*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.7",	"Unknown"},
136*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.8",	"Unknown"},
137*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.9",	"Unknown"},
138*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.10",	"MISSI KEA Algorithm"},
139*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.11",	"Unknown"},
140*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.12",	"MISSI KEA and DSS Algorithm (Old)"},
141*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.13",	"Unknown"},
142*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.14",	"Unknown"},
143*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.15",	"Unknown"},
144*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.16",	"Unknown"},
145*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.17",	"Unknown"},
146*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.18",	"Unknown"},
147*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.19",	"MISSI DSS Algorithm"},
148*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.20",	"MISSI KEA and DSS Algorithm"},
149*b1cdbd2cSJim Jagielski 	{"2.16.840.1.101.2.1.1.21",	"Unknown"}
150*b1cdbd2cSJim Jagielski };
151*b1cdbd2cSJim Jagielski 
152*b1cdbd2cSJim Jagielski int nOID = 115;
153*b1cdbd2cSJim Jagielski 
154*b1cdbd2cSJim Jagielski #endif
155