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