xref: /freebsd/crypto/openssl/apps/progs.c (revision 267f8c1f4b09431b335d5f48d84586047471f978)
1 /*
2  * WARNING: do not edit!
3  * Generated by apps/progs.pl
4  *
5  * Copyright 1995-2025 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, "skeyutl", skeyutl_main, skeyutl_options, NULL, NULL},
93     {FT_general, "smime", smime_main, smime_options, NULL, NULL},
94     {FT_general, "speed", speed_main, speed_options, NULL, NULL},
95     {FT_general, "spkac", spkac_main, spkac_options, NULL, NULL},
96 #ifndef OPENSSL_NO_SRP
97     {FT_general, "srp", srp_main, srp_options, NULL, NULL},
98 #endif
99     {FT_general, "storeutl", storeutl_main, storeutl_options, NULL, NULL},
100 #ifndef OPENSSL_NO_TS
101     {FT_general, "ts", ts_main, ts_options, NULL, NULL},
102 #endif
103     {FT_general, "verify", verify_main, verify_options, NULL, NULL},
104     {FT_general, "version", version_main, version_options, NULL, NULL},
105     {FT_general, "x509", x509_main, x509_options, NULL, NULL},
106 #ifndef OPENSSL_NO_MD2
107     {FT_md, "md2", dgst_main, NULL, NULL},
108 #endif
109 #ifndef OPENSSL_NO_MD4
110     {FT_md, "md4", dgst_main, NULL, NULL},
111 #endif
112     {FT_md, "md5", dgst_main, NULL, NULL},
113     {FT_md, "sha1", dgst_main, NULL, NULL},
114     {FT_md, "sha224", dgst_main, NULL, NULL},
115     {FT_md, "sha256", dgst_main, NULL, NULL},
116     {FT_md, "sha384", dgst_main, NULL, NULL},
117     {FT_md, "sha512", dgst_main, NULL, NULL},
118     {FT_md, "sha512-224", dgst_main, NULL, NULL},
119     {FT_md, "sha512-256", dgst_main, NULL, NULL},
120     {FT_md, "sha3-224", dgst_main, NULL, NULL},
121     {FT_md, "sha3-256", dgst_main, NULL, NULL},
122     {FT_md, "sha3-384", dgst_main, NULL, NULL},
123     {FT_md, "sha3-512", dgst_main, NULL, NULL},
124     {FT_md, "shake128", dgst_main, NULL, NULL},
125     {FT_md, "shake256", dgst_main, NULL, NULL},
126 #ifndef OPENSSL_NO_MDC2
127     {FT_md, "mdc2", dgst_main, NULL, NULL},
128 #endif
129 #ifndef OPENSSL_NO_RMD160
130     {FT_md, "rmd160", dgst_main, NULL, NULL},
131 #endif
132 #ifndef OPENSSL_NO_BLAKE2
133     {FT_md, "blake2b512", dgst_main, NULL, NULL},
134 #endif
135 #ifndef OPENSSL_NO_BLAKE2
136     {FT_md, "blake2s256", dgst_main, NULL, NULL},
137 #endif
138 #ifndef OPENSSL_NO_SM3
139     {FT_md, "sm3", dgst_main, NULL, NULL},
140 #endif
141     {FT_cipher, "aes-128-cbc", enc_main, enc_options, NULL},
142     {FT_cipher, "aes-128-ecb", enc_main, enc_options, NULL},
143     {FT_cipher, "aes-192-cbc", enc_main, enc_options, NULL},
144     {FT_cipher, "aes-192-ecb", enc_main, enc_options, NULL},
145     {FT_cipher, "aes-256-cbc", enc_main, enc_options, NULL},
146     {FT_cipher, "aes-256-ecb", enc_main, enc_options, NULL},
147 #ifndef OPENSSL_NO_ARIA
148     {FT_cipher, "aria-128-cbc", enc_main, enc_options, NULL},
149 #endif
150 #ifndef OPENSSL_NO_ARIA
151     {FT_cipher, "aria-128-cfb", enc_main, enc_options, NULL},
152 #endif
153 #ifndef OPENSSL_NO_ARIA
154     {FT_cipher, "aria-128-ctr", enc_main, enc_options, NULL},
155 #endif
156 #ifndef OPENSSL_NO_ARIA
157     {FT_cipher, "aria-128-ecb", enc_main, enc_options, NULL},
158 #endif
159 #ifndef OPENSSL_NO_ARIA
160     {FT_cipher, "aria-128-ofb", enc_main, enc_options, NULL},
161 #endif
162 #ifndef OPENSSL_NO_ARIA
163     {FT_cipher, "aria-128-cfb1", enc_main, enc_options, NULL},
164 #endif
165 #ifndef OPENSSL_NO_ARIA
166     {FT_cipher, "aria-128-cfb8", enc_main, enc_options, NULL},
167 #endif
168 #ifndef OPENSSL_NO_ARIA
169     {FT_cipher, "aria-192-cbc", enc_main, enc_options, NULL},
170 #endif
171 #ifndef OPENSSL_NO_ARIA
172     {FT_cipher, "aria-192-cfb", enc_main, enc_options, NULL},
173 #endif
174 #ifndef OPENSSL_NO_ARIA
175     {FT_cipher, "aria-192-ctr", enc_main, enc_options, NULL},
176 #endif
177 #ifndef OPENSSL_NO_ARIA
178     {FT_cipher, "aria-192-ecb", enc_main, enc_options, NULL},
179 #endif
180 #ifndef OPENSSL_NO_ARIA
181     {FT_cipher, "aria-192-ofb", enc_main, enc_options, NULL},
182 #endif
183 #ifndef OPENSSL_NO_ARIA
184     {FT_cipher, "aria-192-cfb1", enc_main, enc_options, NULL},
185 #endif
186 #ifndef OPENSSL_NO_ARIA
187     {FT_cipher, "aria-192-cfb8", enc_main, enc_options, NULL},
188 #endif
189 #ifndef OPENSSL_NO_ARIA
190     {FT_cipher, "aria-256-cbc", enc_main, enc_options, NULL},
191 #endif
192 #ifndef OPENSSL_NO_ARIA
193     {FT_cipher, "aria-256-cfb", enc_main, enc_options, NULL},
194 #endif
195 #ifndef OPENSSL_NO_ARIA
196     {FT_cipher, "aria-256-ctr", enc_main, enc_options, NULL},
197 #endif
198 #ifndef OPENSSL_NO_ARIA
199     {FT_cipher, "aria-256-ecb", enc_main, enc_options, NULL},
200 #endif
201 #ifndef OPENSSL_NO_ARIA
202     {FT_cipher, "aria-256-ofb", enc_main, enc_options, NULL},
203 #endif
204 #ifndef OPENSSL_NO_ARIA
205     {FT_cipher, "aria-256-cfb1", enc_main, enc_options, NULL},
206 #endif
207 #ifndef OPENSSL_NO_ARIA
208     {FT_cipher, "aria-256-cfb8", enc_main, enc_options, NULL},
209 #endif
210 #ifndef OPENSSL_NO_CAMELLIA
211     {FT_cipher, "camellia-128-cbc", enc_main, enc_options, NULL},
212 #endif
213 #ifndef OPENSSL_NO_CAMELLIA
214     {FT_cipher, "camellia-128-ecb", enc_main, enc_options, NULL},
215 #endif
216 #ifndef OPENSSL_NO_CAMELLIA
217     {FT_cipher, "camellia-192-cbc", enc_main, enc_options, NULL},
218 #endif
219 #ifndef OPENSSL_NO_CAMELLIA
220     {FT_cipher, "camellia-192-ecb", enc_main, enc_options, NULL},
221 #endif
222 #ifndef OPENSSL_NO_CAMELLIA
223     {FT_cipher, "camellia-256-cbc", enc_main, enc_options, NULL},
224 #endif
225 #ifndef OPENSSL_NO_CAMELLIA
226     {FT_cipher, "camellia-256-ecb", enc_main, enc_options, NULL},
227 #endif
228     {FT_cipher, "base64", enc_main, enc_options, NULL},
229 #ifndef OPENSSL_NO_ZLIB
230     {FT_cipher, "zlib", enc_main, enc_options, NULL},
231 #endif
232 #ifndef OPENSSL_NO_BROTLI
233     {FT_cipher, "brotli", enc_main, enc_options, NULL},
234 #endif
235 #ifndef OPENSSL_NO_ZSTD
236     {FT_cipher, "zstd", enc_main, enc_options, NULL},
237 #endif
238 #ifndef OPENSSL_NO_DES
239     {FT_cipher, "des", enc_main, enc_options, NULL},
240 #endif
241 #ifndef OPENSSL_NO_DES
242     {FT_cipher, "des3", enc_main, enc_options, NULL},
243 #endif
244 #ifndef OPENSSL_NO_DES
245     {FT_cipher, "desx", enc_main, enc_options, NULL},
246 #endif
247 #ifndef OPENSSL_NO_IDEA
248     {FT_cipher, "idea", enc_main, enc_options, NULL},
249 #endif
250 #ifndef OPENSSL_NO_SEED
251     {FT_cipher, "seed", enc_main, enc_options, NULL},
252 #endif
253 #ifndef OPENSSL_NO_RC4
254     {FT_cipher, "rc4", enc_main, enc_options, NULL},
255 #endif
256 #ifndef OPENSSL_NO_RC4
257     {FT_cipher, "rc4-40", enc_main, enc_options, NULL},
258 #endif
259 #ifndef OPENSSL_NO_RC2
260     {FT_cipher, "rc2", enc_main, enc_options, NULL},
261 #endif
262 #ifndef OPENSSL_NO_BF
263     {FT_cipher, "bf", enc_main, enc_options, NULL},
264 #endif
265 #ifndef OPENSSL_NO_CAST
266     {FT_cipher, "cast", enc_main, enc_options, NULL},
267 #endif
268 #ifndef OPENSSL_NO_RC5
269     {FT_cipher, "rc5", enc_main, enc_options, NULL},
270 #endif
271 #ifndef OPENSSL_NO_DES
272     {FT_cipher, "des-ecb", enc_main, enc_options, NULL},
273 #endif
274 #ifndef OPENSSL_NO_DES
275     {FT_cipher, "des-ede", enc_main, enc_options, NULL},
276 #endif
277 #ifndef OPENSSL_NO_DES
278     {FT_cipher, "des-ede3", enc_main, enc_options, NULL},
279 #endif
280 #ifndef OPENSSL_NO_DES
281     {FT_cipher, "des-cbc", enc_main, enc_options, NULL},
282 #endif
283 #ifndef OPENSSL_NO_DES
284     {FT_cipher, "des-ede-cbc", enc_main, enc_options, NULL},
285 #endif
286 #ifndef OPENSSL_NO_DES
287     {FT_cipher, "des-ede3-cbc", enc_main, enc_options, NULL},
288 #endif
289 #ifndef OPENSSL_NO_DES
290     {FT_cipher, "des-cfb", enc_main, enc_options, NULL},
291 #endif
292 #ifndef OPENSSL_NO_DES
293     {FT_cipher, "des-ede-cfb", enc_main, enc_options, NULL},
294 #endif
295 #ifndef OPENSSL_NO_DES
296     {FT_cipher, "des-ede3-cfb", enc_main, enc_options, NULL},
297 #endif
298 #ifndef OPENSSL_NO_DES
299     {FT_cipher, "des-ofb", enc_main, enc_options, NULL},
300 #endif
301 #ifndef OPENSSL_NO_DES
302     {FT_cipher, "des-ede-ofb", enc_main, enc_options, NULL},
303 #endif
304 #ifndef OPENSSL_NO_DES
305     {FT_cipher, "des-ede3-ofb", enc_main, enc_options, NULL},
306 #endif
307 #ifndef OPENSSL_NO_IDEA
308     {FT_cipher, "idea-cbc", enc_main, enc_options, NULL},
309 #endif
310 #ifndef OPENSSL_NO_IDEA
311     {FT_cipher, "idea-ecb", enc_main, enc_options, NULL},
312 #endif
313 #ifndef OPENSSL_NO_IDEA
314     {FT_cipher, "idea-cfb", enc_main, enc_options, NULL},
315 #endif
316 #ifndef OPENSSL_NO_IDEA
317     {FT_cipher, "idea-ofb", enc_main, enc_options, NULL},
318 #endif
319 #ifndef OPENSSL_NO_SEED
320     {FT_cipher, "seed-cbc", enc_main, enc_options, NULL},
321 #endif
322 #ifndef OPENSSL_NO_SEED
323     {FT_cipher, "seed-ecb", enc_main, enc_options, NULL},
324 #endif
325 #ifndef OPENSSL_NO_SEED
326     {FT_cipher, "seed-cfb", enc_main, enc_options, NULL},
327 #endif
328 #ifndef OPENSSL_NO_SEED
329     {FT_cipher, "seed-ofb", enc_main, enc_options, NULL},
330 #endif
331 #ifndef OPENSSL_NO_RC2
332     {FT_cipher, "rc2-cbc", enc_main, enc_options, NULL},
333 #endif
334 #ifndef OPENSSL_NO_RC2
335     {FT_cipher, "rc2-ecb", enc_main, enc_options, NULL},
336 #endif
337 #ifndef OPENSSL_NO_RC2
338     {FT_cipher, "rc2-cfb", enc_main, enc_options, NULL},
339 #endif
340 #ifndef OPENSSL_NO_RC2
341     {FT_cipher, "rc2-ofb", enc_main, enc_options, NULL},
342 #endif
343 #ifndef OPENSSL_NO_RC2
344     {FT_cipher, "rc2-64-cbc", enc_main, enc_options, NULL},
345 #endif
346 #ifndef OPENSSL_NO_RC2
347     {FT_cipher, "rc2-40-cbc", enc_main, enc_options, NULL},
348 #endif
349 #ifndef OPENSSL_NO_BF
350     {FT_cipher, "bf-cbc", enc_main, enc_options, NULL},
351 #endif
352 #ifndef OPENSSL_NO_BF
353     {FT_cipher, "bf-ecb", enc_main, enc_options, NULL},
354 #endif
355 #ifndef OPENSSL_NO_BF
356     {FT_cipher, "bf-cfb", enc_main, enc_options, NULL},
357 #endif
358 #ifndef OPENSSL_NO_BF
359     {FT_cipher, "bf-ofb", enc_main, enc_options, NULL},
360 #endif
361 #ifndef OPENSSL_NO_CAST
362     {FT_cipher, "cast5-cbc", enc_main, enc_options, NULL},
363 #endif
364 #ifndef OPENSSL_NO_CAST
365     {FT_cipher, "cast5-ecb", enc_main, enc_options, NULL},
366 #endif
367 #ifndef OPENSSL_NO_CAST
368     {FT_cipher, "cast5-cfb", enc_main, enc_options, NULL},
369 #endif
370 #ifndef OPENSSL_NO_CAST
371     {FT_cipher, "cast5-ofb", enc_main, enc_options, NULL},
372 #endif
373 #ifndef OPENSSL_NO_CAST
374     {FT_cipher, "cast-cbc", enc_main, enc_options, NULL},
375 #endif
376 #ifndef OPENSSL_NO_RC5
377     {FT_cipher, "rc5-cbc", enc_main, enc_options, NULL},
378 #endif
379 #ifndef OPENSSL_NO_RC5
380     {FT_cipher, "rc5-ecb", enc_main, enc_options, NULL},
381 #endif
382 #ifndef OPENSSL_NO_RC5
383     {FT_cipher, "rc5-cfb", enc_main, enc_options, NULL},
384 #endif
385 #ifndef OPENSSL_NO_RC5
386     {FT_cipher, "rc5-ofb", enc_main, enc_options, NULL},
387 #endif
388 #ifndef OPENSSL_NO_SM4
389     {FT_cipher, "sm4-cbc", enc_main, enc_options, NULL},
390 #endif
391 #ifndef OPENSSL_NO_SM4
392     {FT_cipher, "sm4-ecb", enc_main, enc_options, NULL},
393 #endif
394 #ifndef OPENSSL_NO_SM4
395     {FT_cipher, "sm4-cfb", enc_main, enc_options, NULL},
396 #endif
397 #ifndef OPENSSL_NO_SM4
398     {FT_cipher, "sm4-ofb", enc_main, enc_options, NULL},
399 #endif
400 #ifndef OPENSSL_NO_SM4
401     {FT_cipher, "sm4-ctr", enc_main, enc_options, NULL},
402 #endif
403     {0, NULL, NULL, NULL, NULL}
404 };
405