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