Fix no-ocsp
[openssl.git] / apps / progs.h
1 /*
2  * Automatically generated by progs.pl for openssl.c
3  * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
4  *
5  * Licensed under the OpenSSL licenses, (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * https://www.openssl.org/source/license.html
9  * or in the file LICENSE in the source distribution.
10  */
11
12 typedef enum FUNC_TYPE {
13     FT_none, FT_general, FT_md, FT_cipher, FT_pkey,
14     FT_md_alg, FT_cipher_alg
15 } FUNC_TYPE;
16
17 typedef struct function_st {
18     FUNC_TYPE type;
19     const char *name;
20     int (*func)(int argc,char *argv[]);
21     const OPTIONS *help;
22 } FUNCTION;
23
24 DEFINE_LHASH_OF(FUNCTION);
25
26 extern int asn1parse_main(int argc, char *argv[]);
27 extern int ca_main(int argc, char *argv[]);
28 extern int ciphers_main(int argc, char *argv[]);
29 extern int cms_main(int argc, char *argv[]);
30 extern int crl_main(int argc, char *argv[]);
31 extern int crl2pkcs7_main(int argc, char *argv[]);
32 extern int dgst_main(int argc, char *argv[]);
33 extern int dhparam_main(int argc, char *argv[]);
34 extern int dsa_main(int argc, char *argv[]);
35 extern int dsaparam_main(int argc, char *argv[]);
36 extern int ec_main(int argc, char *argv[]);
37 extern int ecparam_main(int argc, char *argv[]);
38 extern int enc_main(int argc, char *argv[]);
39 extern int engine_main(int argc, char *argv[]);
40 extern int errstr_main(int argc, char *argv[]);
41 extern int exit_main(int argc, char *argv[]);
42 extern int gendsa_main(int argc, char *argv[]);
43 extern int genpkey_main(int argc, char *argv[]);
44 extern int genrsa_main(int argc, char *argv[]);
45 extern int help_main(int argc, char *argv[]);
46 extern int list_main(int argc, char *argv[]);
47 extern int nseq_main(int argc, char *argv[]);
48 extern int ocsp_main(int argc, char *argv[]);
49 extern int passwd_main(int argc, char *argv[]);
50 extern int pkcs12_main(int argc, char *argv[]);
51 extern int pkcs7_main(int argc, char *argv[]);
52 extern int pkcs8_main(int argc, char *argv[]);
53 extern int pkey_main(int argc, char *argv[]);
54 extern int pkeyparam_main(int argc, char *argv[]);
55 extern int pkeyutl_main(int argc, char *argv[]);
56 extern int prime_main(int argc, char *argv[]);
57 extern int rand_main(int argc, char *argv[]);
58 extern int rehash_main(int argc, char *argv[]);
59 extern int req_main(int argc, char *argv[]);
60 extern int rsa_main(int argc, char *argv[]);
61 extern int rsautl_main(int argc, char *argv[]);
62 extern int s_client_main(int argc, char *argv[]);
63 extern int s_server_main(int argc, char *argv[]);
64 extern int s_time_main(int argc, char *argv[]);
65 extern int sess_id_main(int argc, char *argv[]);
66 extern int smime_main(int argc, char *argv[]);
67 extern int speed_main(int argc, char *argv[]);
68 extern int spkac_main(int argc, char *argv[]);
69 extern int srp_main(int argc, char *argv[]);
70 extern int ts_main(int argc, char *argv[]);
71 extern int verify_main(int argc, char *argv[]);
72 extern int version_main(int argc, char *argv[]);
73 extern int x509_main(int argc, char *argv[]);
74
75 extern OPTIONS asn1parse_options[];
76 extern OPTIONS ca_options[];
77 extern OPTIONS ciphers_options[];
78 extern OPTIONS cms_options[];
79 extern OPTIONS crl_options[];
80 extern OPTIONS crl2pkcs7_options[];
81 extern OPTIONS dgst_options[];
82 extern OPTIONS dhparam_options[];
83 extern OPTIONS dsa_options[];
84 extern OPTIONS dsaparam_options[];
85 extern OPTIONS ec_options[];
86 extern OPTIONS ecparam_options[];
87 extern OPTIONS enc_options[];
88 extern OPTIONS engine_options[];
89 extern OPTIONS errstr_options[];
90 extern OPTIONS exit_options[];
91 extern OPTIONS gendsa_options[];
92 extern OPTIONS genpkey_options[];
93 extern OPTIONS genrsa_options[];
94 extern OPTIONS help_options[];
95 extern OPTIONS list_options[];
96 extern OPTIONS nseq_options[];
97 extern OPTIONS ocsp_options[];
98 extern OPTIONS passwd_options[];
99 extern OPTIONS pkcs12_options[];
100 extern OPTIONS pkcs7_options[];
101 extern OPTIONS pkcs8_options[];
102 extern OPTIONS pkey_options[];
103 extern OPTIONS pkeyparam_options[];
104 extern OPTIONS pkeyutl_options[];
105 extern OPTIONS prime_options[];
106 extern OPTIONS rand_options[];
107 extern OPTIONS rehash_options[];
108 extern OPTIONS req_options[];
109 extern OPTIONS rsa_options[];
110 extern OPTIONS rsautl_options[];
111 extern OPTIONS s_client_options[];
112 extern OPTIONS s_server_options[];
113 extern OPTIONS s_time_options[];
114 extern OPTIONS sess_id_options[];
115 extern OPTIONS smime_options[];
116 extern OPTIONS speed_options[];
117 extern OPTIONS spkac_options[];
118 extern OPTIONS srp_options[];
119 extern OPTIONS ts_options[];
120 extern OPTIONS verify_options[];
121 extern OPTIONS version_options[];
122 extern OPTIONS x509_options[];
123
124 #ifdef INCLUDE_FUNCTION_TABLE
125 static FUNCTION functions[] = {
126     { FT_general, "asn1parse", asn1parse_main, asn1parse_options },
127     { FT_general, "ca", ca_main, ca_options },
128 #ifndef OPENSSL_NO_SOCK
129     { FT_general, "ciphers", ciphers_main, ciphers_options },
130 #endif
131 #ifndef OPENSSL_NO_CMS
132     { FT_general, "cms", cms_main, cms_options },
133 #endif
134     { FT_general, "crl", crl_main, crl_options },
135     { FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options },
136     { FT_general, "dgst", dgst_main, dgst_options },
137 #ifndef OPENSSL_NO_DH
138     { FT_general, "dhparam", dhparam_main, dhparam_options },
139 #endif
140 #ifndef OPENSSL_NO_DSA
141     { FT_general, "dsa", dsa_main, dsa_options },
142 #endif
143 #ifndef OPENSSL_NO_DSA
144     { FT_general, "dsaparam", dsaparam_main, dsaparam_options },
145 #endif
146 #ifndef OPENSSL_NO_EC
147     { FT_general, "ec", ec_main, ec_options },
148 #endif
149 #ifndef OPENSSL_NO_EC
150     { FT_general, "ecparam", ecparam_main, ecparam_options },
151 #endif
152     { FT_general, "enc", enc_main, enc_options },
153 #ifndef OPENSSL_NO_ENGINE
154     { FT_general, "engine", engine_main, engine_options },
155 #endif
156     { FT_general, "errstr", errstr_main, errstr_options },
157     { FT_general, "exit", exit_main, exit_options },
158 #ifndef OPENSSL_NO_DSA
159     { FT_general, "gendsa", gendsa_main, gendsa_options },
160 #endif
161     { FT_general, "genpkey", genpkey_main, genpkey_options },
162 #ifndef OPENSSL_NO_RSA
163     { FT_general, "genrsa", genrsa_main, genrsa_options },
164 #endif
165     { FT_general, "help", help_main, help_options },
166     { FT_general, "list", list_main, list_options },
167     { FT_general, "nseq", nseq_main, nseq_options },
168 #ifndef OPENSSL_NO_OCSP
169     { FT_general, "ocsp", ocsp_main, ocsp_options },
170 #endif
171     { FT_general, "passwd", passwd_main, passwd_options },
172 #ifndef OPENSSL_NO_DES
173     { FT_general, "pkcs12", pkcs12_main, pkcs12_options },
174 #endif
175     { FT_general, "pkcs7", pkcs7_main, pkcs7_options },
176     { FT_general, "pkcs8", pkcs8_main, pkcs8_options },
177     { FT_general, "pkey", pkey_main, pkey_options },
178     { FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options },
179     { FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options },
180     { FT_general, "prime", prime_main, prime_options },
181     { FT_general, "rand", rand_main, rand_options },
182     { FT_general, "rehash", rehash_main, rehash_options },
183     { FT_general, "req", req_main, req_options },
184 #ifndef OPENSSL_NO_RSA
185     { FT_general, "rsa", rsa_main, rsa_options },
186 #endif
187 #ifndef OPENSSL_NO_RSA
188     { FT_general, "rsautl", rsautl_main, rsautl_options },
189 #endif
190 #ifndef OPENSSL_NO_SOCK
191     { FT_general, "s_client", s_client_main, s_client_options },
192 #endif
193 #ifndef OPENSSL_NO_SOCK
194     { FT_general, "s_server", s_server_main, s_server_options },
195 #endif
196 #ifndef OPENSSL_NO_SOCK
197     { FT_general, "s_time", s_time_main, s_time_options },
198 #endif
199     { FT_general, "sess_id", sess_id_main, sess_id_options },
200     { FT_general, "smime", smime_main, smime_options },
201     { FT_general, "speed", speed_main, speed_options },
202     { FT_general, "spkac", spkac_main, spkac_options },
203 #ifndef OPENSSL_NO_SRP
204     { FT_general, "srp", srp_main, srp_options },
205 #endif
206 #ifndef OPENSSL_NO_TS
207     { FT_general, "ts", ts_main, ts_options },
208 #endif
209     { FT_general, "verify", verify_main, verify_options },
210     { FT_general, "version", version_main, version_options },
211     { FT_general, "x509", x509_main, x509_options },
212 #ifndef OPENSSL_NO_MD2
213     { FT_md, "md2", dgst_main},
214 #endif
215 #ifndef OPENSSL_NO_MD4
216     { FT_md, "md4", dgst_main},
217 #endif
218 #ifndef OPENSSL_NO_MD5
219     { FT_md, "md5", dgst_main},
220 #endif
221 #ifndef OPENSSL_NO_GOST
222     { FT_md, "gost", dgst_main},
223 #endif
224 #ifndef OPENSSL_NO_SHA
225     { FT_md, "sha1", dgst_main},
226 #endif
227 #ifndef OPENSSL_NO_SHA
228     { FT_md, "sha224", dgst_main},
229 #endif
230 #ifndef OPENSSL_NO_SHA
231     { FT_md, "sha256", dgst_main},
232 #endif
233 #ifndef OPENSSL_NO_SHA
234     { FT_md, "sha384", dgst_main},
235 #endif
236 #ifndef OPENSSL_NO_SHA
237     { FT_md, "sha512", dgst_main},
238 #endif
239 #ifndef OPENSSL_NO_MDC2
240     { FT_md, "mdc2", dgst_main},
241 #endif
242 #ifndef OPENSSL_NO_RMD160
243     { FT_md, "rmd160", dgst_main},
244 #endif
245 #ifndef OPENSSL_NO_BLAKE2
246     { FT_md, "blake2b512", dgst_main},
247 #endif
248 #ifndef OPENSSL_NO_BLAKE2
249     { FT_md, "blake2s256", dgst_main},
250 #endif
251 #ifndef OPENSSL_NO_AES
252     { FT_cipher, "aes-128-cbc", enc_main, enc_options },
253 #endif
254 #ifndef OPENSSL_NO_AES
255     { FT_cipher, "aes-128-ecb", enc_main, enc_options },
256 #endif
257 #ifndef OPENSSL_NO_AES
258     { FT_cipher, "aes-192-cbc", enc_main, enc_options },
259 #endif
260 #ifndef OPENSSL_NO_AES
261     { FT_cipher, "aes-192-ecb", enc_main, enc_options },
262 #endif
263 #ifndef OPENSSL_NO_AES
264     { FT_cipher, "aes-256-cbc", enc_main, enc_options },
265 #endif
266 #ifndef OPENSSL_NO_AES
267     { FT_cipher, "aes-256-ecb", enc_main, enc_options },
268 #endif
269 #ifndef OPENSSL_NO_CAMELLIA
270     { FT_cipher, "camellia-128-cbc", enc_main, enc_options },
271 #endif
272 #ifndef OPENSSL_NO_CAMELLIA
273     { FT_cipher, "camellia-128-ecb", enc_main, enc_options },
274 #endif
275 #ifndef OPENSSL_NO_CAMELLIA
276     { FT_cipher, "camellia-192-cbc", enc_main, enc_options },
277 #endif
278 #ifndef OPENSSL_NO_CAMELLIA
279     { FT_cipher, "camellia-192-ecb", enc_main, enc_options },
280 #endif
281 #ifndef OPENSSL_NO_CAMELLIA
282     { FT_cipher, "camellia-256-cbc", enc_main, enc_options },
283 #endif
284 #ifndef OPENSSL_NO_CAMELLIA
285     { FT_cipher, "camellia-256-ecb", enc_main, enc_options },
286 #endif
287     { FT_cipher, "base64", enc_main, enc_options },
288 #ifdef ZLIB
289     { FT_cipher, "zlib", enc_main, enc_options },
290 #endif
291 #ifndef OPENSSL_NO_DES
292     { FT_cipher, "des", enc_main, enc_options },
293 #endif
294 #ifndef OPENSSL_NO_DES
295     { FT_cipher, "des3", enc_main, enc_options },
296 #endif
297 #ifndef OPENSSL_NO_DES
298     { FT_cipher, "desx", enc_main, enc_options },
299 #endif
300 #ifndef OPENSSL_NO_IDEA
301     { FT_cipher, "idea", enc_main, enc_options },
302 #endif
303 #ifndef OPENSSL_NO_SEED
304     { FT_cipher, "seed", enc_main, enc_options },
305 #endif
306 #ifndef OPENSSL_NO_RC4
307     { FT_cipher, "rc4", enc_main, enc_options },
308 #endif
309 #ifndef OPENSSL_NO_RC4
310     { FT_cipher, "rc4-40", enc_main, enc_options },
311 #endif
312 #ifndef OPENSSL_NO_RC2
313     { FT_cipher, "rc2", enc_main, enc_options },
314 #endif
315 #ifndef OPENSSL_NO_BF
316     { FT_cipher, "bf", enc_main, enc_options },
317 #endif
318 #ifndef OPENSSL_NO_CAST
319     { FT_cipher, "cast", enc_main, enc_options },
320 #endif
321 #ifndef OPENSSL_NO_RC5
322     { FT_cipher, "rc5", enc_main, enc_options },
323 #endif
324 #ifndef OPENSSL_NO_DES
325     { FT_cipher, "des-ecb", enc_main, enc_options },
326 #endif
327 #ifndef OPENSSL_NO_DES
328     { FT_cipher, "des-ede", enc_main, enc_options },
329 #endif
330 #ifndef OPENSSL_NO_DES
331     { FT_cipher, "des-ede3", enc_main, enc_options },
332 #endif
333 #ifndef OPENSSL_NO_DES
334     { FT_cipher, "des-cbc", enc_main, enc_options },
335 #endif
336 #ifndef OPENSSL_NO_DES
337     { FT_cipher, "des-ede-cbc", enc_main, enc_options },
338 #endif
339 #ifndef OPENSSL_NO_DES
340     { FT_cipher, "des-ede3-cbc", enc_main, enc_options },
341 #endif
342 #ifndef OPENSSL_NO_DES
343     { FT_cipher, "des-cfb", enc_main, enc_options },
344 #endif
345 #ifndef OPENSSL_NO_DES
346     { FT_cipher, "des-ede-cfb", enc_main, enc_options },
347 #endif
348 #ifndef OPENSSL_NO_DES
349     { FT_cipher, "des-ede3-cfb", enc_main, enc_options },
350 #endif
351 #ifndef OPENSSL_NO_DES
352     { FT_cipher, "des-ofb", enc_main, enc_options },
353 #endif
354 #ifndef OPENSSL_NO_DES
355     { FT_cipher, "des-ede-ofb", enc_main, enc_options },
356 #endif
357 #ifndef OPENSSL_NO_DES
358     { FT_cipher, "des-ede3-ofb", enc_main, enc_options },
359 #endif
360 #ifndef OPENSSL_NO_IDEA
361     { FT_cipher, "idea-cbc", enc_main, enc_options },
362 #endif
363 #ifndef OPENSSL_NO_IDEA
364     { FT_cipher, "idea-ecb", enc_main, enc_options },
365 #endif
366 #ifndef OPENSSL_NO_IDEA
367     { FT_cipher, "idea-cfb", enc_main, enc_options },
368 #endif
369 #ifndef OPENSSL_NO_IDEA
370     { FT_cipher, "idea-ofb", enc_main, enc_options },
371 #endif
372 #ifndef OPENSSL_NO_SEED
373     { FT_cipher, "seed-cbc", enc_main, enc_options },
374 #endif
375 #ifndef OPENSSL_NO_SEED
376     { FT_cipher, "seed-ecb", enc_main, enc_options },
377 #endif
378 #ifndef OPENSSL_NO_SEED
379     { FT_cipher, "seed-cfb", enc_main, enc_options },
380 #endif
381 #ifndef OPENSSL_NO_SEED
382     { FT_cipher, "seed-ofb", enc_main, enc_options },
383 #endif
384 #ifndef OPENSSL_NO_RC2
385     { FT_cipher, "rc2-cbc", enc_main, enc_options },
386 #endif
387 #ifndef OPENSSL_NO_RC2
388     { FT_cipher, "rc2-ecb", enc_main, enc_options },
389 #endif
390 #ifndef OPENSSL_NO_RC2
391     { FT_cipher, "rc2-cfb", enc_main, enc_options },
392 #endif
393 #ifndef OPENSSL_NO_RC2
394     { FT_cipher, "rc2-ofb", enc_main, enc_options },
395 #endif
396 #ifndef OPENSSL_NO_RC2
397     { FT_cipher, "rc2-64-cbc", enc_main, enc_options },
398 #endif
399 #ifndef OPENSSL_NO_RC2
400     { FT_cipher, "rc2-40-cbc", enc_main, enc_options },
401 #endif
402 #ifndef OPENSSL_NO_BF
403     { FT_cipher, "bf-cbc", enc_main, enc_options },
404 #endif
405 #ifndef OPENSSL_NO_BF
406     { FT_cipher, "bf-ecb", enc_main, enc_options },
407 #endif
408 #ifndef OPENSSL_NO_BF
409     { FT_cipher, "bf-cfb", enc_main, enc_options },
410 #endif
411 #ifndef OPENSSL_NO_BF
412     { FT_cipher, "bf-ofb", enc_main, enc_options },
413 #endif
414 #ifndef OPENSSL_NO_CAST
415     { FT_cipher, "cast5-cbc", enc_main, enc_options },
416 #endif
417 #ifndef OPENSSL_NO_CAST
418     { FT_cipher, "cast5-ecb", enc_main, enc_options },
419 #endif
420 #ifndef OPENSSL_NO_CAST
421     { FT_cipher, "cast5-cfb", enc_main, enc_options },
422 #endif
423 #ifndef OPENSSL_NO_CAST
424     { FT_cipher, "cast5-ofb", enc_main, enc_options },
425 #endif
426 #ifndef OPENSSL_NO_CAST
427     { FT_cipher, "cast-cbc", enc_main, enc_options },
428 #endif
429 #ifndef OPENSSL_NO_RC5
430     { FT_cipher, "rc5-cbc", enc_main, enc_options },
431 #endif
432 #ifndef OPENSSL_NO_RC5
433     { FT_cipher, "rc5-ecb", enc_main, enc_options },
434 #endif
435 #ifndef OPENSSL_NO_RC5
436     { FT_cipher, "rc5-cfb", enc_main, enc_options },
437 #endif
438 #ifndef OPENSSL_NO_RC5
439     { FT_cipher, "rc5-ofb", enc_main, enc_options },
440 #endif
441     { 0, NULL, NULL}
442 };
443 #endif