b551e1de95b479026fda02cd3d957764344acfc8
[openssl.git] / apps / progs.h
1 /* apps/progs.h */
2 /* automatically generated by progs.pl for openssl.c */
3
4 extern int verify_main(int argc,char *argv[]);
5 extern int asn1parse_main(int argc,char *argv[]);
6 extern int req_main(int argc,char *argv[]);
7 extern int dgst_main(int argc,char *argv[]);
8 extern int dh_main(int argc,char *argv[]);
9 extern int dhparam_main(int argc,char *argv[]);
10 extern int enc_main(int argc,char *argv[]);
11 extern int passwd_main(int argc,char *argv[]);
12 extern int gendh_main(int argc,char *argv[]);
13 extern int errstr_main(int argc,char *argv[]);
14 extern int ca_main(int argc,char *argv[]);
15 extern int crl_main(int argc,char *argv[]);
16 extern int rsa_main(int argc,char *argv[]);
17 extern int rsautl_main(int argc,char *argv[]);
18 extern int dsa_main(int argc,char *argv[]);
19 extern int dsaparam_main(int argc,char *argv[]);
20 extern int ec_main(int argc,char *argv[]);
21 extern int ecparam_main(int argc,char *argv[]);
22 extern int x509_main(int argc,char *argv[]);
23 extern int genrsa_main(int argc,char *argv[]);
24 extern int gendsa_main(int argc,char *argv[]);
25 extern int s_server_main(int argc,char *argv[]);
26 extern int s_client_main(int argc,char *argv[]);
27 extern int speed_main(int argc,char *argv[]);
28 extern int s_time_main(int argc,char *argv[]);
29 extern int version_main(int argc,char *argv[]);
30 extern int pkcs7_main(int argc,char *argv[]);
31 extern int crl2pkcs7_main(int argc,char *argv[]);
32 extern int sess_id_main(int argc,char *argv[]);
33 extern int ciphers_main(int argc,char *argv[]);
34 extern int nseq_main(int argc,char *argv[]);
35 extern int pkcs12_main(int argc,char *argv[]);
36 extern int pkcs8_main(int argc,char *argv[]);
37 extern int spkac_main(int argc,char *argv[]);
38 extern int smime_main(int argc,char *argv[]);
39 extern int rand_main(int argc,char *argv[]);
40 #ifndef OPENSSL_NO_ENGINE
41 extern int engine_main(int argc,char *argv[]);
42 #endif
43 extern int ocsp_main(int argc,char *argv[]);
44
45 #define FUNC_TYPE_GENERAL       1
46 #define FUNC_TYPE_MD            2
47 #define FUNC_TYPE_CIPHER        3
48
49 typedef struct {
50         int type;
51         char *name;
52         int (*func)();
53         } FUNCTION;
54
55 FUNCTION functions[] = {
56         {FUNC_TYPE_GENERAL,"verify",verify_main},
57         {FUNC_TYPE_GENERAL,"asn1parse",asn1parse_main},
58         {FUNC_TYPE_GENERAL,"req",req_main},
59         {FUNC_TYPE_GENERAL,"dgst",dgst_main},
60 #ifndef OPENSSL_NO_DH
61         {FUNC_TYPE_GENERAL,"dh",dh_main},
62 #endif
63 #ifndef OPENSSL_NO_DH
64         {FUNC_TYPE_GENERAL,"dhparam",dhparam_main},
65 #endif
66         {FUNC_TYPE_GENERAL,"enc",enc_main},
67         {FUNC_TYPE_GENERAL,"passwd",passwd_main},
68 #ifndef OPENSSL_NO_DH
69         {FUNC_TYPE_GENERAL,"gendh",gendh_main},
70 #endif
71         {FUNC_TYPE_GENERAL,"errstr",errstr_main},
72         {FUNC_TYPE_GENERAL,"ca",ca_main},
73         {FUNC_TYPE_GENERAL,"crl",crl_main},
74 #ifndef OPENSSL_NO_RSA
75         {FUNC_TYPE_GENERAL,"rsa",rsa_main},
76 #endif
77 #ifndef OPENSSL_NO_RSA
78         {FUNC_TYPE_GENERAL,"rsautl",rsautl_main},
79 #endif
80 #ifndef OPENSSL_NO_DSA
81         {FUNC_TYPE_GENERAL,"dsa",dsa_main},
82 #endif
83 #ifndef OPENSSL_NO_DSA
84         {FUNC_TYPE_GENERAL,"dsaparam",dsaparam_main},
85 #endif
86 #ifndef OPENSSL_NO_EC
87         {FUNC_TYPE_GENERAL,"ec",ec_main},
88 #endif
89 #ifndef OPENSSL_NO_EC
90         {FUNC_TYPE_GENERAL,"ecparam",ecparam_main},
91 #endif
92         {FUNC_TYPE_GENERAL,"x509",x509_main},
93 #ifndef OPENSSL_NO_RSA
94         {FUNC_TYPE_GENERAL,"genrsa",genrsa_main},
95 #endif
96 #ifndef OPENSSL_NO_DSA
97         {FUNC_TYPE_GENERAL,"gendsa",gendsa_main},
98 #endif
99 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
100         {FUNC_TYPE_GENERAL,"s_server",s_server_main},
101 #endif
102 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
103         {FUNC_TYPE_GENERAL,"s_client",s_client_main},
104 #endif
105         {FUNC_TYPE_GENERAL,"speed",speed_main},
106 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
107         {FUNC_TYPE_GENERAL,"s_time",s_time_main},
108 #endif
109         {FUNC_TYPE_GENERAL,"version",version_main},
110         {FUNC_TYPE_GENERAL,"pkcs7",pkcs7_main},
111         {FUNC_TYPE_GENERAL,"crl2pkcs7",crl2pkcs7_main},
112         {FUNC_TYPE_GENERAL,"sess_id",sess_id_main},
113 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
114         {FUNC_TYPE_GENERAL,"ciphers",ciphers_main},
115 #endif
116         {FUNC_TYPE_GENERAL,"nseq",nseq_main},
117 #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1)
118         {FUNC_TYPE_GENERAL,"pkcs12",pkcs12_main},
119 #endif
120         {FUNC_TYPE_GENERAL,"pkcs8",pkcs8_main},
121         {FUNC_TYPE_GENERAL,"spkac",spkac_main},
122         {FUNC_TYPE_GENERAL,"smime",smime_main},
123         {FUNC_TYPE_GENERAL,"rand",rand_main},
124 #ifndef OPENSSL_NO_ENGINE
125         {FUNC_TYPE_GENERAL,"engine",engine_main},
126 #endif
127         {FUNC_TYPE_GENERAL,"ocsp",ocsp_main},
128 #ifndef OPENSSL_NO_MD2
129         {FUNC_TYPE_MD,"md2",dgst_main},
130 #endif
131 #ifndef OPENSSL_NO_MD4
132         {FUNC_TYPE_MD,"md4",dgst_main},
133 #endif
134 #ifndef OPENSSL_NO_MD5
135         {FUNC_TYPE_MD,"md5",dgst_main},
136 #endif
137 #ifndef OPENSSL_NO_SHA
138         {FUNC_TYPE_MD,"sha",dgst_main},
139 #endif
140 #ifndef OPENSSL_NO_SHA1
141         {FUNC_TYPE_MD,"sha1",dgst_main},
142 #endif
143 #ifndef OPENSSL_NO_MDC2
144         {FUNC_TYPE_MD,"mdc2",dgst_main},
145 #endif
146 #ifndef OPENSSL_NO_RMD160
147         {FUNC_TYPE_MD,"rmd160",dgst_main},
148 #endif
149 #ifndef OPENSSL_NO_AES
150         {FUNC_TYPE_CIPHER,"aes-128-cbc",enc_main},
151 #endif
152 #ifndef OPENSSL_NO_AES
153         {FUNC_TYPE_CIPHER,"aes-128-ecb",enc_main},
154 #endif
155 #ifndef OPENSSL_NO_AES
156         {FUNC_TYPE_CIPHER,"aes-192-cbc",enc_main},
157 #endif
158 #ifndef OPENSSL_NO_AES
159         {FUNC_TYPE_CIPHER,"aes-192-ecb",enc_main},
160 #endif
161 #ifndef OPENSSL_NO_AES
162         {FUNC_TYPE_CIPHER,"aes-256-cbc",enc_main},
163 #endif
164 #ifndef OPENSSL_NO_AES
165         {FUNC_TYPE_CIPHER,"aes-256-ecb",enc_main},
166 #endif
167         {FUNC_TYPE_CIPHER,"base64",enc_main},
168 #ifndef OPENSSL_NO_DES
169         {FUNC_TYPE_CIPHER,"des",enc_main},
170 #endif
171 #ifndef OPENSSL_NO_DES
172         {FUNC_TYPE_CIPHER,"des3",enc_main},
173 #endif
174 #ifndef OPENSSL_NO_DES
175         {FUNC_TYPE_CIPHER,"desx",enc_main},
176 #endif
177 #ifndef OPENSSL_NO_IDEA
178         {FUNC_TYPE_CIPHER,"idea",enc_main},
179 #endif
180 #ifndef OPENSSL_NO_RC4
181         {FUNC_TYPE_CIPHER,"rc4",enc_main},
182 #endif
183 #ifndef OPENSSL_NO_RC4
184         {FUNC_TYPE_CIPHER,"rc4-40",enc_main},
185 #endif
186 #ifndef OPENSSL_NO_RC2
187         {FUNC_TYPE_CIPHER,"rc2",enc_main},
188 #endif
189 #ifndef OPENSSL_NO_BF
190         {FUNC_TYPE_CIPHER,"bf",enc_main},
191 #endif
192 #ifndef OPENSSL_NO_CAST
193         {FUNC_TYPE_CIPHER,"cast",enc_main},
194 #endif
195 #ifndef OPENSSL_NO_RC5
196         {FUNC_TYPE_CIPHER,"rc5",enc_main},
197 #endif
198 #ifndef OPENSSL_NO_DES
199         {FUNC_TYPE_CIPHER,"des-ecb",enc_main},
200 #endif
201 #ifndef OPENSSL_NO_DES
202         {FUNC_TYPE_CIPHER,"des-ede",enc_main},
203 #endif
204 #ifndef OPENSSL_NO_DES
205         {FUNC_TYPE_CIPHER,"des-ede3",enc_main},
206 #endif
207 #ifndef OPENSSL_NO_DES
208         {FUNC_TYPE_CIPHER,"des-cbc",enc_main},
209 #endif
210 #ifndef OPENSSL_NO_DES
211         {FUNC_TYPE_CIPHER,"des-ede-cbc",enc_main},
212 #endif
213 #ifndef OPENSSL_NO_DES
214         {FUNC_TYPE_CIPHER,"des-ede3-cbc",enc_main},
215 #endif
216 #ifndef OPENSSL_NO_DES
217         {FUNC_TYPE_CIPHER,"des-cfb",enc_main},
218 #endif
219 #ifndef OPENSSL_NO_DES
220         {FUNC_TYPE_CIPHER,"des-ede-cfb",enc_main},
221 #endif
222 #ifndef OPENSSL_NO_DES
223         {FUNC_TYPE_CIPHER,"des-ede3-cfb",enc_main},
224 #endif
225 #ifndef OPENSSL_NO_DES
226         {FUNC_TYPE_CIPHER,"des-ofb",enc_main},
227 #endif
228 #ifndef OPENSSL_NO_DES
229         {FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main},
230 #endif
231 #ifndef OPENSSL_NO_DES
232         {FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main},
233 #endif
234 #ifndef OPENSSL_NO_IDEA
235         {FUNC_TYPE_CIPHER,"idea-cbc",enc_main},
236 #endif
237 #ifndef OPENSSL_NO_IDEA
238         {FUNC_TYPE_CIPHER,"idea-ecb",enc_main},
239 #endif
240 #ifndef OPENSSL_NO_IDEA
241         {FUNC_TYPE_CIPHER,"idea-cfb",enc_main},
242 #endif
243 #ifndef OPENSSL_NO_IDEA
244         {FUNC_TYPE_CIPHER,"idea-ofb",enc_main},
245 #endif
246 #ifndef OPENSSL_NO_RC2
247         {FUNC_TYPE_CIPHER,"rc2-cbc",enc_main},
248 #endif
249 #ifndef OPENSSL_NO_RC2
250         {FUNC_TYPE_CIPHER,"rc2-ecb",enc_main},
251 #endif
252 #ifndef OPENSSL_NO_RC2
253         {FUNC_TYPE_CIPHER,"rc2-cfb",enc_main},
254 #endif
255 #ifndef OPENSSL_NO_RC2
256         {FUNC_TYPE_CIPHER,"rc2-ofb",enc_main},
257 #endif
258 #ifndef OPENSSL_NO_RC2
259         {FUNC_TYPE_CIPHER,"rc2-64-cbc",enc_main},
260 #endif
261 #ifndef OPENSSL_NO_RC2
262         {FUNC_TYPE_CIPHER,"rc2-40-cbc",enc_main},
263 #endif
264 #ifndef OPENSSL_NO_BF
265         {FUNC_TYPE_CIPHER,"bf-cbc",enc_main},
266 #endif
267 #ifndef OPENSSL_NO_BF
268         {FUNC_TYPE_CIPHER,"bf-ecb",enc_main},
269 #endif
270 #ifndef OPENSSL_NO_BF
271         {FUNC_TYPE_CIPHER,"bf-cfb",enc_main},
272 #endif
273 #ifndef OPENSSL_NO_BF
274         {FUNC_TYPE_CIPHER,"bf-ofb",enc_main},
275 #endif
276 #ifndef OPENSSL_NO_CAST
277         {FUNC_TYPE_CIPHER,"cast5-cbc",enc_main},
278 #endif
279 #ifndef OPENSSL_NO_CAST
280         {FUNC_TYPE_CIPHER,"cast5-ecb",enc_main},
281 #endif
282 #ifndef OPENSSL_NO_CAST
283         {FUNC_TYPE_CIPHER,"cast5-cfb",enc_main},
284 #endif
285 #ifndef OPENSSL_NO_CAST
286         {FUNC_TYPE_CIPHER,"cast5-ofb",enc_main},
287 #endif
288 #ifndef OPENSSL_NO_CAST
289         {FUNC_TYPE_CIPHER,"cast-cbc",enc_main},
290 #endif
291 #ifndef OPENSSL_NO_RC5
292         {FUNC_TYPE_CIPHER,"rc5-cbc",enc_main},
293 #endif
294 #ifndef OPENSSL_NO_RC5
295         {FUNC_TYPE_CIPHER,"rc5-ecb",enc_main},
296 #endif
297 #ifndef OPENSSL_NO_RC5
298         {FUNC_TYPE_CIPHER,"rc5-cfb",enc_main},
299 #endif
300 #ifndef OPENSSL_NO_RC5
301         {FUNC_TYPE_CIPHER,"rc5-ofb",enc_main},
302 #endif
303         {0,NULL,NULL}
304         };