1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (certtool-args.c)
5 * It has been AutoGen-ed October 12, 2012 at 09:17:49 AM by AutoGen 5.16
6 * From the definitions certtool-args.def
7 * and the template file options
9 * Generated from AutoOpts 36:4:11 templates.
11 * AutoOpts is a copyrighted work. This source file is not encumbered
12 * by AutoOpts licensing, but is provided under the licensing terms chosen
13 * by the certtool author or copyright holder. AutoOpts is
14 * licensed under the terms of the LGPL. The redistributable library
15 * (``libopts'') is licensed under the terms of either the LGPL or, at the
16 * users discretion, the BSD license. See the AutoOpts and/or libopts sources
19 * The certtool program is copyrighted and licensed
20 * under the following terms:
22 * Copyright (C) 2000-2012 Free Software Foundation, all rights reserved.
23 * This is free software. It is licensed for use, modification and
24 * redistribution under the terms of the
25 * GNU General Public License, version 3 or later
26 * <http://gnu.org/licenses/gpl.html>
28 * certtool is free software: you can redistribute it and/or modify it
29 * under the terms of the GNU General Public License as published by the
30 * Free Software Foundation, either version 3 of the License, or
31 * (at your option) any later version.
33 * certtool is distributed in the hope that it will be useful, but
34 * WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36 * See the GNU General Public License for more details.
38 * You should have received a copy of the GNU General Public License along
39 * with this program. If not, see <http://www.gnu.org/licenses/>.
43 #define OPTION_CODE_COMPILE 1
44 #include "certtool-args.h"
45 #include <sys/types.h>
55 extern FILE * option_usage_fp
;
57 /* TRANSLATORS: choose the translation for option names wisely because you
58 cannot ever change your mind. */
59 #define zCopyright (certtool_opt_strs+0)
60 #define zLicenseDescrip (certtool_opt_strs+279)
68 * certtool option static const strings
70 static char const certtool_opt_strs
[4697] =
71 /* 0 */ "certtool @VERSION@\n"
72 "Copyright (C) 2000-2012 Free Software Foundation, all rights reserved.\n"
73 "This is free software. It is licensed for use, modification and\n"
74 "redistribution under the terms of the\n"
75 "GNU General Public License, version 3 or later\n"
76 " <http://gnu.org/licenses/gpl.html>\n\0"
77 /* 279 */ "certtool is free software: you can redistribute it and/or modify it under\n"
78 "the terms of the GNU General Public License as published by the Free\n"
79 "Software Foundation, either version 3 of the License, or (at your option)\n"
80 "any later version.\n\n"
81 "certtool is distributed in the hope that it will be useful, but WITHOUT ANY\n"
82 "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n"
83 "FOR A PARTICULAR PURPOSE. See the GNU General Public License for more\n"
85 "You should have received a copy of the GNU General Public License along\n"
86 "with this program. If not, see <http://www.gnu.org/licenses/>.\n\0"
87 /* 884 */ "Enable debugging.\0"
90 /* 914 */ "More verbose output\0"
93 /* 950 */ "Input file\0"
96 /* 975 */ "Output file\0"
99 /* 1003 */ "Generate a self-signed certificate\0"
100 /* 1038 */ "GENERATE_SELF_SIGNED\0"
101 /* 1059 */ "generate-self-signed\0"
102 /* 1080 */ "Generate a signed certificate\0"
103 /* 1110 */ "GENERATE_CERTIFICATE\0"
104 /* 1131 */ "generate-certificate\0"
105 /* 1152 */ "Generates a proxy certificate\0"
106 /* 1182 */ "GENERATE_PROXY\0"
107 /* 1197 */ "generate-proxy\0"
108 /* 1212 */ "Generate a CRL\0"
109 /* 1227 */ "GENERATE_CRL\0"
110 /* 1240 */ "generate-crl\0"
111 /* 1253 */ "Update a signed certificate\0"
112 /* 1281 */ "UPDATE_CERTIFICATE\0"
113 /* 1300 */ "update-certificate\0"
114 /* 1319 */ "Generate a private key\0"
115 /* 1342 */ "GENERATE_PRIVKEY\0"
116 /* 1359 */ "generate-privkey\0"
117 /* 1376 */ "Generate a PKCS #10 certificate request\0"
118 /* 1416 */ "GENERATE_REQUEST\0"
119 /* 1433 */ "generate-request\0"
120 /* 1450 */ "Verify a PEM encoded certificate chain.\0"
121 /* 1490 */ "VERIFY_CHAIN\0"
122 /* 1503 */ "verify-chain\0"
123 /* 1516 */ "Verify a PEM encoded certificate chain using a trusted list.\0"
124 /* 1577 */ "VERIFY\0"
125 /* 1584 */ "verify\0"
126 /* 1591 */ "Verify a CRL using a trusted list.\0"
127 /* 1626 */ "VERIFY_CRL\0"
128 /* 1637 */ "verify-crl\0"
129 /* 1648 */ "Generate PKCS #3 encoded Diffie-Hellman parameters.\0"
130 /* 1700 */ "GENERATE_DH_PARAMS\0"
131 /* 1719 */ "generate-dh-params\0"
132 /* 1738 */ "Get the included PKCS #3 encoded Diffie-Hellman parameters.\0"
133 /* 1798 */ "GET_DH_PARAMS\0"
134 /* 1812 */ "get-dh-params\0"
135 /* 1826 */ "Print information PKCS #3 encoded Diffie-Hellman parameters\0"
136 /* 1886 */ "DH_INFO\0"
137 /* 1894 */ "dh-info\0"
138 /* 1902 */ "Loads a private key file\0"
139 /* 1927 */ "LOAD_PRIVKEY\0"
140 /* 1940 */ "load-privkey\0"
141 /* 1953 */ "Loads a public key file\0"
142 /* 1977 */ "LOAD_PUBKEY\0"
143 /* 1989 */ "load-pubkey\0"
144 /* 2001 */ "Loads a certificate request file\0"
145 /* 2034 */ "LOAD_REQUEST\0"
146 /* 2047 */ "load-request\0"
147 /* 2060 */ "Loads a certificate file\0"
148 /* 2085 */ "LOAD_CERTIFICATE\0"
149 /* 2102 */ "load-certificate\0"
150 /* 2119 */ "Loads the certificate authority's private key file\0"
151 /* 2170 */ "LOAD_CA_PRIVKEY\0"
152 /* 2186 */ "load-ca-privkey\0"
153 /* 2202 */ "Loads the certificate authority's certificate file\0"
154 /* 2253 */ "LOAD_CA_CERTIFICATE\0"
155 /* 2273 */ "load-ca-certificate\0"
156 /* 2293 */ "Password to use\0"
157 /* 2309 */ "PASSWORD\0"
158 /* 2318 */ "password\0"
159 /* 2327 */ "Enforce a NULL password\0"
160 /* 2351 */ "NULL_PASSWORD\0"
161 /* 2365 */ "null-password\0"
162 /* 2379 */ "Print information on the given certificate\0"
163 /* 2422 */ "CERTIFICATE_INFO\0"
164 /* 2439 */ "certificate-info\0"
165 /* 2456 */ "Print certificate's public key\0"
166 /* 2487 */ "CERTIFICATE_PUBKEY\0"
167 /* 2506 */ "certificate-pubkey\0"
168 /* 2525 */ "Print information on the given OpenPGP certificate\0"
169 /* 2576 */ "PGP_CERTIFICATE_INFO\0"
170 /* 2597 */ "pgp-certificate-info\0"
171 /* 2618 */ "Print information on the given OpenPGP keyring structure\0"
172 /* 2675 */ "PGP_RING_INFO\0"
173 /* 2689 */ "pgp-ring-info\0"
174 /* 2703 */ "Print information on the given CRL structure\0"
175 /* 2748 */ "CRL_INFO\0"
176 /* 2757 */ "crl-info\0"
177 /* 2766 */ "Print information on the given certificate request\0"
178 /* 2817 */ "CRQ_INFO\0"
179 /* 2826 */ "crq-info\0"
180 /* 2835 */ "Do not use extensions in certificate requests\0"
181 /* 2881 */ "NO_CRQ_EXTENSIONS\0"
182 /* 2899 */ "no-crq-extensions\0"
183 /* 2917 */ "Print information on a PKCS #12 structure\0"
184 /* 2959 */ "P12_INFO\0"
185 /* 2968 */ "p12-info\0"
186 /* 2977 */ "Print information on a PKCS #7 structure\0"
187 /* 3018 */ "P7_INFO\0"
188 /* 3026 */ "p7-info\0"
189 /* 3034 */ "Convert S/MIME to PKCS #7 structure\0"
190 /* 3070 */ "SMIME_TO_P7\0"
191 /* 3082 */ "smime-to-p7\0"
192 /* 3094 */ "Print information on a private key\0"
193 /* 3129 */ "KEY_INFO\0"
194 /* 3138 */ "key-info\0"
195 /* 3147 */ "Print information on an OpenPGP private key\0"
196 /* 3191 */ "PGP_KEY_INFO\0"
197 /* 3204 */ "pgp-key-info\0"
198 /* 3217 */ "Print information on a public key\0"
199 /* 3251 */ "PUBKEY_INFO\0"
200 /* 3263 */ "pubkey-info\0"
201 /* 3275 */ "Generate an X.509 version 1 certificate (with no extensions)\0"
204 /* 3342 */ "Generate a PKCS #12 structure\0"
205 /* 3372 */ "TO_P12\0"
206 /* 3379 */ "to-p12\0"
207 /* 3386 */ "Generate a PKCS #8 structure\0"
210 /* 3427 */ "Use PKCS #8 format for private keys\0"
213 /* 3475 */ "Generate RSA key\0"
216 /* 3500 */ "Generate DSA key\0"
219 /* 3525 */ "Generate ECC (ECDSA) key\0"
222 /* 3558 */ "Hash algorithm to use for signing.\0"
225 /* 3603 */ "Use DER format for input certificates and private keys.\0"
227 /* 3665 */ "no-inder\0"
229 /* 3677 */ "This is an alias for 'inder'\0"
231 /* 3712 */ "Use DER format for output certificates and private keys\0"
232 /* 3768 */ "OUTDER\0"
233 /* 3775 */ "no-outder\0"
234 /* 3785 */ "This is an alias for 'outder'\0"
235 /* 3815 */ "outraw\0"
236 /* 3822 */ "Specify the number of bits for key generate\0"
239 /* 3876 */ "Specify the security level [low, legacy, normal, high, ultra].\0"
240 /* 3939 */ "SEC_PARAM\0"
241 /* 3949 */ "sec-param\0"
242 /* 3959 */ "No effect\0"
243 /* 3969 */ "DISABLE_QUICK_RANDOM\0"
244 /* 3990 */ "disable-quick-random\0"
245 /* 4011 */ "Template file to use for non-interactive operation\0"
246 /* 4062 */ "TEMPLATE\0"
247 /* 4071 */ "template\0"
248 /* 4080 */ "Cipher to use for PKCS #8 and #12 operations\0"
249 /* 4125 */ "PKCS_CIPHER\0"
250 /* 4137 */ "pkcs-cipher\0"
251 /* 4149 */ "Display extended usage information and exit\0"
253 /* 4198 */ "Extended usage information passed thru pager\0"
254 /* 4243 */ "more-help\0"
255 /* 4253 */ "Output version information and exit\0"
256 /* 4289 */ "version\0"
257 /* 4297 */ "CERTTOOL\0"
258 /* 4306 */ "certtool - GnuTLS certificate tool - Ver. @VERSION@\n"
259 "USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
260 /* 4416 */ "bug-gnutls@gnu.org\0"
263 "Tool to parse and generate X.509 certificates, requests and private keys.\n"
264 "It can be used interactively or non interactively by specifying the\n"
265 "template command line option.\n\0"
266 /* 4612 */ "certtool @VERSION@\0"
267 /* 4631 */ "certtool [options] [url]\n"
268 "certtool --help for usage instructions.\n";
271 * debug option description:
273 #define DEBUG_DESC (certtool_opt_strs+884)
274 #define DEBUG_NAME (certtool_opt_strs+902)
275 #define DEBUG_name (certtool_opt_strs+908)
276 #define DEBUG_FLAGS (OPTST_DISABLED \
277 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
280 * verbose option description:
282 #define VERBOSE_DESC (certtool_opt_strs+914)
283 #define VERBOSE_NAME (certtool_opt_strs+934)
284 #define VERBOSE_name (certtool_opt_strs+942)
285 #define VERBOSE_FLAGS (OPTST_DISABLED)
288 * infile option description:
290 #define INFILE_DESC (certtool_opt_strs+950)
291 #define INFILE_NAME (certtool_opt_strs+961)
292 #define INFILE_name (certtool_opt_strs+968)
293 #define INFILE_FLAGS (OPTST_DISABLED \
294 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
297 * outfile option description:
299 #define OUTFILE_DESC (certtool_opt_strs+975)
300 #define OUTFILE_NAME (certtool_opt_strs+987)
301 #define OUTFILE_name (certtool_opt_strs+995)
302 #define OUTFILE_FLAGS (OPTST_DISABLED \
303 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
306 * generate-self-signed option description:
308 #define GENERATE_SELF_SIGNED_DESC (certtool_opt_strs+1003)
309 #define GENERATE_SELF_SIGNED_NAME (certtool_opt_strs+1038)
310 #define GENERATE_SELF_SIGNED_name (certtool_opt_strs+1059)
311 #define GENERATE_SELF_SIGNED_FLAGS (OPTST_DISABLED)
314 * generate-certificate option description:
316 #define GENERATE_CERTIFICATE_DESC (certtool_opt_strs+1080)
317 #define GENERATE_CERTIFICATE_NAME (certtool_opt_strs+1110)
318 #define GENERATE_CERTIFICATE_name (certtool_opt_strs+1131)
319 #define GENERATE_CERTIFICATE_FLAGS (OPTST_DISABLED)
322 * generate-proxy option description:
324 #define GENERATE_PROXY_DESC (certtool_opt_strs+1152)
325 #define GENERATE_PROXY_NAME (certtool_opt_strs+1182)
326 #define GENERATE_PROXY_name (certtool_opt_strs+1197)
327 #define GENERATE_PROXY_FLAGS (OPTST_DISABLED)
330 * generate-crl option description:
332 #define GENERATE_CRL_DESC (certtool_opt_strs+1212)
333 #define GENERATE_CRL_NAME (certtool_opt_strs+1227)
334 #define GENERATE_CRL_name (certtool_opt_strs+1240)
335 #define GENERATE_CRL_FLAGS (OPTST_DISABLED)
338 * update-certificate option description:
340 #define UPDATE_CERTIFICATE_DESC (certtool_opt_strs+1253)
341 #define UPDATE_CERTIFICATE_NAME (certtool_opt_strs+1281)
342 #define UPDATE_CERTIFICATE_name (certtool_opt_strs+1300)
343 #define UPDATE_CERTIFICATE_FLAGS (OPTST_DISABLED)
346 * generate-privkey option description:
348 #define GENERATE_PRIVKEY_DESC (certtool_opt_strs+1319)
349 #define GENERATE_PRIVKEY_NAME (certtool_opt_strs+1342)
350 #define GENERATE_PRIVKEY_name (certtool_opt_strs+1359)
351 #define GENERATE_PRIVKEY_FLAGS (OPTST_DISABLED)
354 * generate-request option description:
356 #define GENERATE_REQUEST_DESC (certtool_opt_strs+1376)
357 #define GENERATE_REQUEST_NAME (certtool_opt_strs+1416)
358 #define GENERATE_REQUEST_name (certtool_opt_strs+1433)
359 #define GENERATE_REQUEST_FLAGS (OPTST_DISABLED)
362 * verify-chain option description:
364 #define VERIFY_CHAIN_DESC (certtool_opt_strs+1450)
365 #define VERIFY_CHAIN_NAME (certtool_opt_strs+1490)
366 #define VERIFY_CHAIN_name (certtool_opt_strs+1503)
367 #define VERIFY_CHAIN_FLAGS (OPTST_DISABLED)
370 * verify option description with
371 * "Must also have options" and "Incompatible options":
373 #define VERIFY_DESC (certtool_opt_strs+1516)
374 #define VERIFY_NAME (certtool_opt_strs+1577)
375 #define VERIFY_name (certtool_opt_strs+1584)
376 static int const aVerifyMustList
[] = {
377 INDEX_OPT_LOAD_CA_CERTIFICATE
, NO_EQUIVALENT
};
378 #define VERIFY_FLAGS (OPTST_DISABLED)
381 * verify-crl option description with
382 * "Must also have options" and "Incompatible options":
384 #define VERIFY_CRL_DESC (certtool_opt_strs+1591)
385 #define VERIFY_CRL_NAME (certtool_opt_strs+1626)
386 #define VERIFY_CRL_name (certtool_opt_strs+1637)
387 static int const aVerify_CrlMustList
[] = {
388 INDEX_OPT_LOAD_CA_CERTIFICATE
, NO_EQUIVALENT
};
389 #define VERIFY_CRL_FLAGS (OPTST_DISABLED)
392 * generate-dh-params option description:
394 #define GENERATE_DH_PARAMS_DESC (certtool_opt_strs+1648)
395 #define GENERATE_DH_PARAMS_NAME (certtool_opt_strs+1700)
396 #define GENERATE_DH_PARAMS_name (certtool_opt_strs+1719)
397 #define GENERATE_DH_PARAMS_FLAGS (OPTST_DISABLED)
400 * get-dh-params option description:
402 #define GET_DH_PARAMS_DESC (certtool_opt_strs+1738)
403 #define GET_DH_PARAMS_NAME (certtool_opt_strs+1798)
404 #define GET_DH_PARAMS_name (certtool_opt_strs+1812)
405 #define GET_DH_PARAMS_FLAGS (OPTST_DISABLED)
408 * dh-info option description:
410 #define DH_INFO_DESC (certtool_opt_strs+1826)
411 #define DH_INFO_NAME (certtool_opt_strs+1886)
412 #define DH_INFO_name (certtool_opt_strs+1894)
413 #define DH_INFO_FLAGS (OPTST_DISABLED)
416 * load-privkey option description:
418 #define LOAD_PRIVKEY_DESC (certtool_opt_strs+1902)
419 #define LOAD_PRIVKEY_NAME (certtool_opt_strs+1927)
420 #define LOAD_PRIVKEY_name (certtool_opt_strs+1940)
421 #define LOAD_PRIVKEY_FLAGS (OPTST_DISABLED \
422 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
425 * load-pubkey option description:
427 #define LOAD_PUBKEY_DESC (certtool_opt_strs+1953)
428 #define LOAD_PUBKEY_NAME (certtool_opt_strs+1977)
429 #define LOAD_PUBKEY_name (certtool_opt_strs+1989)
430 #define LOAD_PUBKEY_FLAGS (OPTST_DISABLED \
431 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
434 * load-request option description:
436 #define LOAD_REQUEST_DESC (certtool_opt_strs+2001)
437 #define LOAD_REQUEST_NAME (certtool_opt_strs+2034)
438 #define LOAD_REQUEST_name (certtool_opt_strs+2047)
439 #define LOAD_REQUEST_FLAGS (OPTST_DISABLED \
440 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
443 * load-certificate option description:
445 #define LOAD_CERTIFICATE_DESC (certtool_opt_strs+2060)
446 #define LOAD_CERTIFICATE_NAME (certtool_opt_strs+2085)
447 #define LOAD_CERTIFICATE_name (certtool_opt_strs+2102)
448 #define LOAD_CERTIFICATE_FLAGS (OPTST_DISABLED \
449 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
452 * load-ca-privkey option description:
454 #define LOAD_CA_PRIVKEY_DESC (certtool_opt_strs+2119)
455 #define LOAD_CA_PRIVKEY_NAME (certtool_opt_strs+2170)
456 #define LOAD_CA_PRIVKEY_name (certtool_opt_strs+2186)
457 #define LOAD_CA_PRIVKEY_FLAGS (OPTST_DISABLED \
458 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
461 * load-ca-certificate option description:
463 #define LOAD_CA_CERTIFICATE_DESC (certtool_opt_strs+2202)
464 #define LOAD_CA_CERTIFICATE_NAME (certtool_opt_strs+2253)
465 #define LOAD_CA_CERTIFICATE_name (certtool_opt_strs+2273)
466 #define LOAD_CA_CERTIFICATE_FLAGS (OPTST_DISABLED \
467 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
470 * password option description:
472 #define PASSWORD_DESC (certtool_opt_strs+2293)
473 #define PASSWORD_NAME (certtool_opt_strs+2309)
474 #define PASSWORD_name (certtool_opt_strs+2318)
475 #define PASSWORD_FLAGS (OPTST_DISABLED \
476 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
479 * null-password option description:
481 #define NULL_PASSWORD_DESC (certtool_opt_strs+2327)
482 #define NULL_PASSWORD_NAME (certtool_opt_strs+2351)
483 #define NULL_PASSWORD_name (certtool_opt_strs+2365)
484 #define NULL_PASSWORD_FLAGS (OPTST_DISABLED)
487 * certificate-info option description:
489 #define CERTIFICATE_INFO_DESC (certtool_opt_strs+2379)
490 #define CERTIFICATE_INFO_NAME (certtool_opt_strs+2422)
491 #define CERTIFICATE_INFO_name (certtool_opt_strs+2439)
492 #define CERTIFICATE_INFO_FLAGS (OPTST_DISABLED)
495 * certificate-pubkey option description:
497 #define CERTIFICATE_PUBKEY_DESC (certtool_opt_strs+2456)
498 #define CERTIFICATE_PUBKEY_NAME (certtool_opt_strs+2487)
499 #define CERTIFICATE_PUBKEY_name (certtool_opt_strs+2506)
500 #define CERTIFICATE_PUBKEY_FLAGS (OPTST_DISABLED)
503 * pgp-certificate-info option description:
505 #define PGP_CERTIFICATE_INFO_DESC (certtool_opt_strs+2525)
506 #define PGP_CERTIFICATE_INFO_NAME (certtool_opt_strs+2576)
507 #define PGP_CERTIFICATE_INFO_name (certtool_opt_strs+2597)
508 #define PGP_CERTIFICATE_INFO_FLAGS (OPTST_DISABLED)
511 * pgp-ring-info option description:
513 #define PGP_RING_INFO_DESC (certtool_opt_strs+2618)
514 #define PGP_RING_INFO_NAME (certtool_opt_strs+2675)
515 #define PGP_RING_INFO_name (certtool_opt_strs+2689)
516 #define PGP_RING_INFO_FLAGS (OPTST_DISABLED)
519 * crl-info option description:
521 #define CRL_INFO_DESC (certtool_opt_strs+2703)
522 #define CRL_INFO_NAME (certtool_opt_strs+2748)
523 #define CRL_INFO_name (certtool_opt_strs+2757)
524 #define CRL_INFO_FLAGS (OPTST_DISABLED)
527 * crq-info option description:
529 #define CRQ_INFO_DESC (certtool_opt_strs+2766)
530 #define CRQ_INFO_NAME (certtool_opt_strs+2817)
531 #define CRQ_INFO_name (certtool_opt_strs+2826)
532 #define CRQ_INFO_FLAGS (OPTST_DISABLED)
535 * no-crq-extensions option description:
537 #define NO_CRQ_EXTENSIONS_DESC (certtool_opt_strs+2835)
538 #define NO_CRQ_EXTENSIONS_NAME (certtool_opt_strs+2881)
539 #define NO_CRQ_EXTENSIONS_name (certtool_opt_strs+2899)
540 #define NO_CRQ_EXTENSIONS_FLAGS (OPTST_DISABLED)
543 * p12-info option description:
545 #define P12_INFO_DESC (certtool_opt_strs+2917)
546 #define P12_INFO_NAME (certtool_opt_strs+2959)
547 #define P12_INFO_name (certtool_opt_strs+2968)
548 #define P12_INFO_FLAGS (OPTST_DISABLED)
551 * p7-info option description:
553 #define P7_INFO_DESC (certtool_opt_strs+2977)
554 #define P7_INFO_NAME (certtool_opt_strs+3018)
555 #define P7_INFO_name (certtool_opt_strs+3026)
556 #define P7_INFO_FLAGS (OPTST_DISABLED)
559 * smime-to-p7 option description:
561 #define SMIME_TO_P7_DESC (certtool_opt_strs+3034)
562 #define SMIME_TO_P7_NAME (certtool_opt_strs+3070)
563 #define SMIME_TO_P7_name (certtool_opt_strs+3082)
564 #define SMIME_TO_P7_FLAGS (OPTST_DISABLED)
567 * key-info option description:
569 #define KEY_INFO_DESC (certtool_opt_strs+3094)
570 #define KEY_INFO_NAME (certtool_opt_strs+3129)
571 #define KEY_INFO_name (certtool_opt_strs+3138)
572 #define KEY_INFO_FLAGS (OPTST_DISABLED)
575 * pgp-key-info option description:
577 #define PGP_KEY_INFO_DESC (certtool_opt_strs+3147)
578 #define PGP_KEY_INFO_NAME (certtool_opt_strs+3191)
579 #define PGP_KEY_INFO_name (certtool_opt_strs+3204)
580 #define PGP_KEY_INFO_FLAGS (OPTST_DISABLED)
583 * pubkey-info option description:
585 #define PUBKEY_INFO_DESC (certtool_opt_strs+3217)
586 #define PUBKEY_INFO_NAME (certtool_opt_strs+3251)
587 #define PUBKEY_INFO_name (certtool_opt_strs+3263)
588 #define PUBKEY_INFO_FLAGS (OPTST_DISABLED)
591 * v1 option description:
593 #define V1_DESC (certtool_opt_strs+3275)
594 #define V1_NAME (certtool_opt_strs+3336)
595 #define V1_name (certtool_opt_strs+3339)
596 #define V1_FLAGS (OPTST_DISABLED)
599 * to-p12 option description with
600 * "Must also have options" and "Incompatible options":
602 #define TO_P12_DESC (certtool_opt_strs+3342)
603 #define TO_P12_NAME (certtool_opt_strs+3372)
604 #define TO_P12_name (certtool_opt_strs+3379)
605 static int const aTo_P12MustList
[] = {
606 INDEX_OPT_LOAD_CERTIFICATE
, NO_EQUIVALENT
};
607 #define TO_P12_FLAGS (OPTST_DISABLED)
610 * to-p8 option description:
612 #define TO_P8_DESC (certtool_opt_strs+3386)
613 #define TO_P8_NAME (certtool_opt_strs+3415)
614 #define TO_P8_name (certtool_opt_strs+3421)
615 #define TO_P8_FLAGS (OPTST_DISABLED)
618 * pkcs8 option description:
620 #define PKCS8_DESC (certtool_opt_strs+3427)
621 #define PKCS8_NAME (certtool_opt_strs+3463)
622 #define PKCS8_name (certtool_opt_strs+3469)
623 #define PKCS8_FLAGS (OPTST_DISABLED)
626 * rsa option description:
628 #define RSA_DESC (certtool_opt_strs+3475)
629 #define RSA_NAME (certtool_opt_strs+3492)
630 #define RSA_name (certtool_opt_strs+3496)
631 #define RSA_FLAGS (OPTST_DISABLED)
634 * dsa option description:
636 #define DSA_DESC (certtool_opt_strs+3500)
637 #define DSA_NAME (certtool_opt_strs+3517)
638 #define DSA_name (certtool_opt_strs+3521)
639 #define DSA_FLAGS (OPTST_DISABLED)
642 * ecc option description:
644 #define ECC_DESC (certtool_opt_strs+3525)
645 #define ECC_NAME (certtool_opt_strs+3550)
646 #define ECC_name (certtool_opt_strs+3554)
647 #define ECC_FLAGS (OPTST_DISABLED)
650 * hash option description:
652 #define HASH_DESC (certtool_opt_strs+3558)
653 #define HASH_NAME (certtool_opt_strs+3593)
654 #define HASH_name (certtool_opt_strs+3598)
655 #define HASH_FLAGS (OPTST_DISABLED \
656 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
659 * inder option description:
661 #define INDER_DESC (certtool_opt_strs+3603)
662 #define INDER_NAME (certtool_opt_strs+3659)
663 #define NOT_INDER_name (certtool_opt_strs+3665)
664 #define NOT_INDER_PFX (certtool_opt_strs+3674)
665 #define INDER_name (NOT_INDER_name + 3)
666 #define INDER_FLAGS (OPTST_DISABLED)
669 * inraw option description:
671 #define INRAW_DESC (certtool_opt_strs+3677)
672 #define INRAW_NAME NULL
673 #define INRAW_name (certtool_opt_strs+3706)
674 #define INRAW_FLAGS (INDER_FLAGS | OPTST_ALIAS)
677 * outder option description:
679 #define OUTDER_DESC (certtool_opt_strs+3712)
680 #define OUTDER_NAME (certtool_opt_strs+3768)
681 #define NOT_OUTDER_name (certtool_opt_strs+3775)
682 #define NOT_OUTDER_PFX (certtool_opt_strs+3674)
683 #define OUTDER_name (NOT_OUTDER_name + 3)
684 #define OUTDER_FLAGS (OPTST_DISABLED)
687 * outraw option description:
689 #define OUTRAW_DESC (certtool_opt_strs+3785)
690 #define OUTRAW_NAME NULL
691 #define OUTRAW_name (certtool_opt_strs+3815)
692 #define OUTRAW_FLAGS (OUTDER_FLAGS | OPTST_ALIAS)
695 * bits option description:
697 #define BITS_DESC (certtool_opt_strs+3822)
698 #define BITS_NAME (certtool_opt_strs+3866)
699 #define BITS_name (certtool_opt_strs+3871)
700 #define BITS_FLAGS (OPTST_DISABLED \
701 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
704 * sec-param option description:
706 #define SEC_PARAM_DESC (certtool_opt_strs+3876)
707 #define SEC_PARAM_NAME (certtool_opt_strs+3939)
708 #define SEC_PARAM_name (certtool_opt_strs+3949)
709 #define SEC_PARAM_FLAGS (OPTST_DISABLED \
710 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
713 * disable-quick-random option description:
715 #define DISABLE_QUICK_RANDOM_DESC (certtool_opt_strs+3959)
716 #define DISABLE_QUICK_RANDOM_NAME (certtool_opt_strs+3969)
717 #define DISABLE_QUICK_RANDOM_name (certtool_opt_strs+3990)
718 #define DISABLE_QUICK_RANDOM_FLAGS (OPTST_DISABLED)
721 * template option description:
723 #define TEMPLATE_DESC (certtool_opt_strs+4011)
724 #define TEMPLATE_NAME (certtool_opt_strs+4062)
725 #define TEMPLATE_name (certtool_opt_strs+4071)
726 #define TEMPLATE_FLAGS (OPTST_DISABLED \
727 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
730 * pkcs-cipher option description:
732 #define PKCS_CIPHER_DESC (certtool_opt_strs+4080)
733 #define PKCS_CIPHER_NAME (certtool_opt_strs+4125)
734 #define PKCS_CIPHER_name (certtool_opt_strs+4137)
735 #define PKCS_CIPHER_FLAGS (OPTST_DISABLED \
736 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
739 * Help/More_Help/Version option descriptions:
741 #define HELP_DESC (certtool_opt_strs+4149)
742 #define HELP_name (certtool_opt_strs+4193)
743 #ifdef HAVE_WORKING_FORK
744 #define MORE_HELP_DESC (certtool_opt_strs+4198)
745 #define MORE_HELP_name (certtool_opt_strs+4243)
746 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
748 #define MORE_HELP_DESC NULL
749 #define MORE_HELP_name NULL
750 #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
752 #ifdef NO_OPTIONAL_OPT_ARGS
753 # define VER_FLAGS (OPTST_IMM | OPTST_NO_INIT)
755 # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
756 OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
758 #define VER_DESC (certtool_opt_strs+4253)
759 #define VER_name (certtool_opt_strs+4289)
761 * Declare option callback procedures
764 optionBooleanVal
, optionNestedVal
, optionNumericVal
,
765 optionPagedUsage
, optionPrintVersion
, optionResetOpt
,
766 optionStackArg
, optionTimeDate
, optionTimeVal
,
767 optionUnstackArg
, optionVendorOption
;
769 doOptDebug
, doOptInfile
, doOptInraw
,
770 doOptLoad_Request
, doOptOutraw
, doOptTemplate
,
772 #define VER_PROC optionPrintVersion
774 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
776 * Define the certtool Option Descriptions.
777 * This is an array of OPTION_CT entries, one for each
778 * option that the certtool program responds to.
780 static tOptDesc optDesc
[OPTION_CT
] = {
781 { /* entry idx, value */ 0, VALUE_OPT_DEBUG
,
782 /* equiv idx, value */ 0, VALUE_OPT_DEBUG
,
783 /* equivalenced to */ NO_EQUIVALENT
,
784 /* min, max, act ct */ 0, 1, 0,
785 /* opt state flags */ DEBUG_FLAGS
, 0,
786 /* last opt argumnt */ { NULL
}, /* --debug */
787 /* arg list/cookie */ NULL
,
788 /* must/cannot opts */ NULL
, NULL
,
789 /* option proc */ doOptDebug
,
790 /* desc, NAME, name */ DEBUG_DESC
, DEBUG_NAME
, DEBUG_name
,
791 /* disablement strs */ NULL
, NULL
},
793 { /* entry idx, value */ 1, VALUE_OPT_VERBOSE
,
794 /* equiv idx, value */ 1, VALUE_OPT_VERBOSE
,
795 /* equivalenced to */ NO_EQUIVALENT
,
796 /* min, max, act ct */ 0, NOLIMIT
, 0,
797 /* opt state flags */ VERBOSE_FLAGS
, 0,
798 /* last opt argumnt */ { NULL
}, /* --verbose */
799 /* arg list/cookie */ NULL
,
800 /* must/cannot opts */ NULL
, NULL
,
801 /* option proc */ NULL
,
802 /* desc, NAME, name */ VERBOSE_DESC
, VERBOSE_NAME
, VERBOSE_name
,
803 /* disablement strs */ NULL
, NULL
},
805 { /* entry idx, value */ 2, VALUE_OPT_INFILE
,
806 /* equiv idx, value */ 2, VALUE_OPT_INFILE
,
807 /* equivalenced to */ NO_EQUIVALENT
,
808 /* min, max, act ct */ 0, 1, 0,
809 /* opt state flags */ INFILE_FLAGS
, 0,
810 /* last opt argumnt */ { NULL
}, /* --infile */
811 /* arg list/cookie */ NULL
,
812 /* must/cannot opts */ NULL
, NULL
,
813 /* option proc */ doOptInfile
,
814 /* desc, NAME, name */ INFILE_DESC
, INFILE_NAME
, INFILE_name
,
815 /* disablement strs */ NULL
, NULL
},
817 { /* entry idx, value */ 3, VALUE_OPT_OUTFILE
,
818 /* equiv idx, value */ 3, VALUE_OPT_OUTFILE
,
819 /* equivalenced to */ NO_EQUIVALENT
,
820 /* min, max, act ct */ 0, 1, 0,
821 /* opt state flags */ OUTFILE_FLAGS
, 0,
822 /* last opt argumnt */ { NULL
}, /* --outfile */
823 /* arg list/cookie */ NULL
,
824 /* must/cannot opts */ NULL
, NULL
,
825 /* option proc */ NULL
,
826 /* desc, NAME, name */ OUTFILE_DESC
, OUTFILE_NAME
, OUTFILE_name
,
827 /* disablement strs */ NULL
, NULL
},
829 { /* entry idx, value */ 4, VALUE_OPT_GENERATE_SELF_SIGNED
,
830 /* equiv idx, value */ 4, VALUE_OPT_GENERATE_SELF_SIGNED
,
831 /* equivalenced to */ NO_EQUIVALENT
,
832 /* min, max, act ct */ 0, 1, 0,
833 /* opt state flags */ GENERATE_SELF_SIGNED_FLAGS
, 0,
834 /* last opt argumnt */ { NULL
}, /* --generate-self-signed */
835 /* arg list/cookie */ NULL
,
836 /* must/cannot opts */ NULL
, NULL
,
837 /* option proc */ NULL
,
838 /* desc, NAME, name */ GENERATE_SELF_SIGNED_DESC
, GENERATE_SELF_SIGNED_NAME
, GENERATE_SELF_SIGNED_name
,
839 /* disablement strs */ NULL
, NULL
},
841 { /* entry idx, value */ 5, VALUE_OPT_GENERATE_CERTIFICATE
,
842 /* equiv idx, value */ 5, VALUE_OPT_GENERATE_CERTIFICATE
,
843 /* equivalenced to */ NO_EQUIVALENT
,
844 /* min, max, act ct */ 0, 1, 0,
845 /* opt state flags */ GENERATE_CERTIFICATE_FLAGS
, 0,
846 /* last opt argumnt */ { NULL
}, /* --generate-certificate */
847 /* arg list/cookie */ NULL
,
848 /* must/cannot opts */ NULL
, NULL
,
849 /* option proc */ NULL
,
850 /* desc, NAME, name */ GENERATE_CERTIFICATE_DESC
, GENERATE_CERTIFICATE_NAME
, GENERATE_CERTIFICATE_name
,
851 /* disablement strs */ NULL
, NULL
},
853 { /* entry idx, value */ 6, VALUE_OPT_GENERATE_PROXY
,
854 /* equiv idx, value */ 6, VALUE_OPT_GENERATE_PROXY
,
855 /* equivalenced to */ NO_EQUIVALENT
,
856 /* min, max, act ct */ 0, 1, 0,
857 /* opt state flags */ GENERATE_PROXY_FLAGS
, 0,
858 /* last opt argumnt */ { NULL
}, /* --generate-proxy */
859 /* arg list/cookie */ NULL
,
860 /* must/cannot opts */ NULL
, NULL
,
861 /* option proc */ NULL
,
862 /* desc, NAME, name */ GENERATE_PROXY_DESC
, GENERATE_PROXY_NAME
, GENERATE_PROXY_name
,
863 /* disablement strs */ NULL
, NULL
},
865 { /* entry idx, value */ 7, VALUE_OPT_GENERATE_CRL
,
866 /* equiv idx, value */ 7, VALUE_OPT_GENERATE_CRL
,
867 /* equivalenced to */ NO_EQUIVALENT
,
868 /* min, max, act ct */ 0, 1, 0,
869 /* opt state flags */ GENERATE_CRL_FLAGS
, 0,
870 /* last opt argumnt */ { NULL
}, /* --generate-crl */
871 /* arg list/cookie */ NULL
,
872 /* must/cannot opts */ NULL
, NULL
,
873 /* option proc */ NULL
,
874 /* desc, NAME, name */ GENERATE_CRL_DESC
, GENERATE_CRL_NAME
, GENERATE_CRL_name
,
875 /* disablement strs */ NULL
, NULL
},
877 { /* entry idx, value */ 8, VALUE_OPT_UPDATE_CERTIFICATE
,
878 /* equiv idx, value */ 8, VALUE_OPT_UPDATE_CERTIFICATE
,
879 /* equivalenced to */ NO_EQUIVALENT
,
880 /* min, max, act ct */ 0, 1, 0,
881 /* opt state flags */ UPDATE_CERTIFICATE_FLAGS
, 0,
882 /* last opt argumnt */ { NULL
}, /* --update-certificate */
883 /* arg list/cookie */ NULL
,
884 /* must/cannot opts */ NULL
, NULL
,
885 /* option proc */ NULL
,
886 /* desc, NAME, name */ UPDATE_CERTIFICATE_DESC
, UPDATE_CERTIFICATE_NAME
, UPDATE_CERTIFICATE_name
,
887 /* disablement strs */ NULL
, NULL
},
889 { /* entry idx, value */ 9, VALUE_OPT_GENERATE_PRIVKEY
,
890 /* equiv idx, value */ 9, VALUE_OPT_GENERATE_PRIVKEY
,
891 /* equivalenced to */ NO_EQUIVALENT
,
892 /* min, max, act ct */ 0, 1, 0,
893 /* opt state flags */ GENERATE_PRIVKEY_FLAGS
, 0,
894 /* last opt argumnt */ { NULL
}, /* --generate-privkey */
895 /* arg list/cookie */ NULL
,
896 /* must/cannot opts */ NULL
, NULL
,
897 /* option proc */ NULL
,
898 /* desc, NAME, name */ GENERATE_PRIVKEY_DESC
, GENERATE_PRIVKEY_NAME
, GENERATE_PRIVKEY_name
,
899 /* disablement strs */ NULL
, NULL
},
901 { /* entry idx, value */ 10, VALUE_OPT_GENERATE_REQUEST
,
902 /* equiv idx, value */ 10, VALUE_OPT_GENERATE_REQUEST
,
903 /* equivalenced to */ NO_EQUIVALENT
,
904 /* min, max, act ct */ 0, 1, 0,
905 /* opt state flags */ GENERATE_REQUEST_FLAGS
, 0,
906 /* last opt argumnt */ { NULL
}, /* --generate-request */
907 /* arg list/cookie */ NULL
,
908 /* must/cannot opts */ NULL
, NULL
,
909 /* option proc */ NULL
,
910 /* desc, NAME, name */ GENERATE_REQUEST_DESC
, GENERATE_REQUEST_NAME
, GENERATE_REQUEST_name
,
911 /* disablement strs */ NULL
, NULL
},
913 { /* entry idx, value */ 11, VALUE_OPT_VERIFY_CHAIN
,
914 /* equiv idx, value */ 11, VALUE_OPT_VERIFY_CHAIN
,
915 /* equivalenced to */ NO_EQUIVALENT
,
916 /* min, max, act ct */ 0, 1, 0,
917 /* opt state flags */ VERIFY_CHAIN_FLAGS
, 0,
918 /* last opt argumnt */ { NULL
}, /* --verify-chain */
919 /* arg list/cookie */ NULL
,
920 /* must/cannot opts */ NULL
, NULL
,
921 /* option proc */ NULL
,
922 /* desc, NAME, name */ VERIFY_CHAIN_DESC
, VERIFY_CHAIN_NAME
, VERIFY_CHAIN_name
,
923 /* disablement strs */ NULL
, NULL
},
925 { /* entry idx, value */ 12, VALUE_OPT_VERIFY
,
926 /* equiv idx, value */ 12, VALUE_OPT_VERIFY
,
927 /* equivalenced to */ NO_EQUIVALENT
,
928 /* min, max, act ct */ 0, 1, 0,
929 /* opt state flags */ VERIFY_FLAGS
, 0,
930 /* last opt argumnt */ { NULL
}, /* --verify */
931 /* arg list/cookie */ NULL
,
932 /* must/cannot opts */ aVerifyMustList
, NULL
,
933 /* option proc */ NULL
,
934 /* desc, NAME, name */ VERIFY_DESC
, VERIFY_NAME
, VERIFY_name
,
935 /* disablement strs */ NULL
, NULL
},
937 { /* entry idx, value */ 13, VALUE_OPT_VERIFY_CRL
,
938 /* equiv idx, value */ 13, VALUE_OPT_VERIFY_CRL
,
939 /* equivalenced to */ NO_EQUIVALENT
,
940 /* min, max, act ct */ 0, 1, 0,
941 /* opt state flags */ VERIFY_CRL_FLAGS
, 0,
942 /* last opt argumnt */ { NULL
}, /* --verify-crl */
943 /* arg list/cookie */ NULL
,
944 /* must/cannot opts */ aVerify_CrlMustList
, NULL
,
945 /* option proc */ NULL
,
946 /* desc, NAME, name */ VERIFY_CRL_DESC
, VERIFY_CRL_NAME
, VERIFY_CRL_name
,
947 /* disablement strs */ NULL
, NULL
},
949 { /* entry idx, value */ 14, VALUE_OPT_GENERATE_DH_PARAMS
,
950 /* equiv idx, value */ 14, VALUE_OPT_GENERATE_DH_PARAMS
,
951 /* equivalenced to */ NO_EQUIVALENT
,
952 /* min, max, act ct */ 0, 1, 0,
953 /* opt state flags */ GENERATE_DH_PARAMS_FLAGS
, 0,
954 /* last opt argumnt */ { NULL
}, /* --generate-dh-params */
955 /* arg list/cookie */ NULL
,
956 /* must/cannot opts */ NULL
, NULL
,
957 /* option proc */ NULL
,
958 /* desc, NAME, name */ GENERATE_DH_PARAMS_DESC
, GENERATE_DH_PARAMS_NAME
, GENERATE_DH_PARAMS_name
,
959 /* disablement strs */ NULL
, NULL
},
961 { /* entry idx, value */ 15, VALUE_OPT_GET_DH_PARAMS
,
962 /* equiv idx, value */ 15, VALUE_OPT_GET_DH_PARAMS
,
963 /* equivalenced to */ NO_EQUIVALENT
,
964 /* min, max, act ct */ 0, 1, 0,
965 /* opt state flags */ GET_DH_PARAMS_FLAGS
, 0,
966 /* last opt argumnt */ { NULL
}, /* --get-dh-params */
967 /* arg list/cookie */ NULL
,
968 /* must/cannot opts */ NULL
, NULL
,
969 /* option proc */ NULL
,
970 /* desc, NAME, name */ GET_DH_PARAMS_DESC
, GET_DH_PARAMS_NAME
, GET_DH_PARAMS_name
,
971 /* disablement strs */ NULL
, NULL
},
973 { /* entry idx, value */ 16, VALUE_OPT_DH_INFO
,
974 /* equiv idx, value */ 16, VALUE_OPT_DH_INFO
,
975 /* equivalenced to */ NO_EQUIVALENT
,
976 /* min, max, act ct */ 0, 1, 0,
977 /* opt state flags */ DH_INFO_FLAGS
, 0,
978 /* last opt argumnt */ { NULL
}, /* --dh-info */
979 /* arg list/cookie */ NULL
,
980 /* must/cannot opts */ NULL
, NULL
,
981 /* option proc */ NULL
,
982 /* desc, NAME, name */ DH_INFO_DESC
, DH_INFO_NAME
, DH_INFO_name
,
983 /* disablement strs */ NULL
, NULL
},
985 { /* entry idx, value */ 17, VALUE_OPT_LOAD_PRIVKEY
,
986 /* equiv idx, value */ 17, VALUE_OPT_LOAD_PRIVKEY
,
987 /* equivalenced to */ NO_EQUIVALENT
,
988 /* min, max, act ct */ 0, 1, 0,
989 /* opt state flags */ LOAD_PRIVKEY_FLAGS
, 0,
990 /* last opt argumnt */ { NULL
}, /* --load-privkey */
991 /* arg list/cookie */ NULL
,
992 /* must/cannot opts */ NULL
, NULL
,
993 /* option proc */ NULL
,
994 /* desc, NAME, name */ LOAD_PRIVKEY_DESC
, LOAD_PRIVKEY_NAME
, LOAD_PRIVKEY_name
,
995 /* disablement strs */ NULL
, NULL
},
997 { /* entry idx, value */ 18, VALUE_OPT_LOAD_PUBKEY
,
998 /* equiv idx, value */ 18, VALUE_OPT_LOAD_PUBKEY
,
999 /* equivalenced to */ NO_EQUIVALENT
,
1000 /* min, max, act ct */ 0, 1, 0,
1001 /* opt state flags */ LOAD_PUBKEY_FLAGS
, 0,
1002 /* last opt argumnt */ { NULL
}, /* --load-pubkey */
1003 /* arg list/cookie */ NULL
,
1004 /* must/cannot opts */ NULL
, NULL
,
1005 /* option proc */ NULL
,
1006 /* desc, NAME, name */ LOAD_PUBKEY_DESC
, LOAD_PUBKEY_NAME
, LOAD_PUBKEY_name
,
1007 /* disablement strs */ NULL
, NULL
},
1009 { /* entry idx, value */ 19, VALUE_OPT_LOAD_REQUEST
,
1010 /* equiv idx, value */ 19, VALUE_OPT_LOAD_REQUEST
,
1011 /* equivalenced to */ NO_EQUIVALENT
,
1012 /* min, max, act ct */ 0, 1, 0,
1013 /* opt state flags */ LOAD_REQUEST_FLAGS
, 0,
1014 /* last opt argumnt */ { NULL
}, /* --load-request */
1015 /* arg list/cookie */ NULL
,
1016 /* must/cannot opts */ NULL
, NULL
,
1017 /* option proc */ doOptLoad_Request
,
1018 /* desc, NAME, name */ LOAD_REQUEST_DESC
, LOAD_REQUEST_NAME
, LOAD_REQUEST_name
,
1019 /* disablement strs */ NULL
, NULL
},
1021 { /* entry idx, value */ 20, VALUE_OPT_LOAD_CERTIFICATE
,
1022 /* equiv idx, value */ 20, VALUE_OPT_LOAD_CERTIFICATE
,
1023 /* equivalenced to */ NO_EQUIVALENT
,
1024 /* min, max, act ct */ 0, 1, 0,
1025 /* opt state flags */ LOAD_CERTIFICATE_FLAGS
, 0,
1026 /* last opt argumnt */ { NULL
}, /* --load-certificate */
1027 /* arg list/cookie */ NULL
,
1028 /* must/cannot opts */ NULL
, NULL
,
1029 /* option proc */ NULL
,
1030 /* desc, NAME, name */ LOAD_CERTIFICATE_DESC
, LOAD_CERTIFICATE_NAME
, LOAD_CERTIFICATE_name
,
1031 /* disablement strs */ NULL
, NULL
},
1033 { /* entry idx, value */ 21, VALUE_OPT_LOAD_CA_PRIVKEY
,
1034 /* equiv idx, value */ 21, VALUE_OPT_LOAD_CA_PRIVKEY
,
1035 /* equivalenced to */ NO_EQUIVALENT
,
1036 /* min, max, act ct */ 0, 1, 0,
1037 /* opt state flags */ LOAD_CA_PRIVKEY_FLAGS
, 0,
1038 /* last opt argumnt */ { NULL
}, /* --load-ca-privkey */
1039 /* arg list/cookie */ NULL
,
1040 /* must/cannot opts */ NULL
, NULL
,
1041 /* option proc */ NULL
,
1042 /* desc, NAME, name */ LOAD_CA_PRIVKEY_DESC
, LOAD_CA_PRIVKEY_NAME
, LOAD_CA_PRIVKEY_name
,
1043 /* disablement strs */ NULL
, NULL
},
1045 { /* entry idx, value */ 22, VALUE_OPT_LOAD_CA_CERTIFICATE
,
1046 /* equiv idx, value */ 22, VALUE_OPT_LOAD_CA_CERTIFICATE
,
1047 /* equivalenced to */ NO_EQUIVALENT
,
1048 /* min, max, act ct */ 0, 1, 0,
1049 /* opt state flags */ LOAD_CA_CERTIFICATE_FLAGS
, 0,
1050 /* last opt argumnt */ { NULL
}, /* --load-ca-certificate */
1051 /* arg list/cookie */ NULL
,
1052 /* must/cannot opts */ NULL
, NULL
,
1053 /* option proc */ NULL
,
1054 /* desc, NAME, name */ LOAD_CA_CERTIFICATE_DESC
, LOAD_CA_CERTIFICATE_NAME
, LOAD_CA_CERTIFICATE_name
,
1055 /* disablement strs */ NULL
, NULL
},
1057 { /* entry idx, value */ 23, VALUE_OPT_PASSWORD
,
1058 /* equiv idx, value */ 23, VALUE_OPT_PASSWORD
,
1059 /* equivalenced to */ NO_EQUIVALENT
,
1060 /* min, max, act ct */ 0, 1, 0,
1061 /* opt state flags */ PASSWORD_FLAGS
, 0,
1062 /* last opt argumnt */ { NULL
}, /* --password */
1063 /* arg list/cookie */ NULL
,
1064 /* must/cannot opts */ NULL
, NULL
,
1065 /* option proc */ NULL
,
1066 /* desc, NAME, name */ PASSWORD_DESC
, PASSWORD_NAME
, PASSWORD_name
,
1067 /* disablement strs */ NULL
, NULL
},
1069 { /* entry idx, value */ 24, VALUE_OPT_NULL_PASSWORD
,
1070 /* equiv idx, value */ 24, VALUE_OPT_NULL_PASSWORD
,
1071 /* equivalenced to */ NO_EQUIVALENT
,
1072 /* min, max, act ct */ 0, 1, 0,
1073 /* opt state flags */ NULL_PASSWORD_FLAGS
, 0,
1074 /* last opt argumnt */ { NULL
}, /* --null-password */
1075 /* arg list/cookie */ NULL
,
1076 /* must/cannot opts */ NULL
, NULL
,
1077 /* option proc */ NULL
,
1078 /* desc, NAME, name */ NULL_PASSWORD_DESC
, NULL_PASSWORD_NAME
, NULL_PASSWORD_name
,
1079 /* disablement strs */ NULL
, NULL
},
1081 { /* entry idx, value */ 25, VALUE_OPT_CERTIFICATE_INFO
,
1082 /* equiv idx, value */ 25, VALUE_OPT_CERTIFICATE_INFO
,
1083 /* equivalenced to */ NO_EQUIVALENT
,
1084 /* min, max, act ct */ 0, 1, 0,
1085 /* opt state flags */ CERTIFICATE_INFO_FLAGS
, 0,
1086 /* last opt argumnt */ { NULL
}, /* --certificate-info */
1087 /* arg list/cookie */ NULL
,
1088 /* must/cannot opts */ NULL
, NULL
,
1089 /* option proc */ NULL
,
1090 /* desc, NAME, name */ CERTIFICATE_INFO_DESC
, CERTIFICATE_INFO_NAME
, CERTIFICATE_INFO_name
,
1091 /* disablement strs */ NULL
, NULL
},
1093 { /* entry idx, value */ 26, VALUE_OPT_CERTIFICATE_PUBKEY
,
1094 /* equiv idx, value */ 26, VALUE_OPT_CERTIFICATE_PUBKEY
,
1095 /* equivalenced to */ NO_EQUIVALENT
,
1096 /* min, max, act ct */ 0, 1, 0,
1097 /* opt state flags */ CERTIFICATE_PUBKEY_FLAGS
, 0,
1098 /* last opt argumnt */ { NULL
}, /* --certificate-pubkey */
1099 /* arg list/cookie */ NULL
,
1100 /* must/cannot opts */ NULL
, NULL
,
1101 /* option proc */ NULL
,
1102 /* desc, NAME, name */ CERTIFICATE_PUBKEY_DESC
, CERTIFICATE_PUBKEY_NAME
, CERTIFICATE_PUBKEY_name
,
1103 /* disablement strs */ NULL
, NULL
},
1105 { /* entry idx, value */ 27, VALUE_OPT_PGP_CERTIFICATE_INFO
,
1106 /* equiv idx, value */ 27, VALUE_OPT_PGP_CERTIFICATE_INFO
,
1107 /* equivalenced to */ NO_EQUIVALENT
,
1108 /* min, max, act ct */ 0, 1, 0,
1109 /* opt state flags */ PGP_CERTIFICATE_INFO_FLAGS
, 0,
1110 /* last opt argumnt */ { NULL
}, /* --pgp-certificate-info */
1111 /* arg list/cookie */ NULL
,
1112 /* must/cannot opts */ NULL
, NULL
,
1113 /* option proc */ NULL
,
1114 /* desc, NAME, name */ PGP_CERTIFICATE_INFO_DESC
, PGP_CERTIFICATE_INFO_NAME
, PGP_CERTIFICATE_INFO_name
,
1115 /* disablement strs */ NULL
, NULL
},
1117 { /* entry idx, value */ 28, VALUE_OPT_PGP_RING_INFO
,
1118 /* equiv idx, value */ 28, VALUE_OPT_PGP_RING_INFO
,
1119 /* equivalenced to */ NO_EQUIVALENT
,
1120 /* min, max, act ct */ 0, 1, 0,
1121 /* opt state flags */ PGP_RING_INFO_FLAGS
, 0,
1122 /* last opt argumnt */ { NULL
}, /* --pgp-ring-info */
1123 /* arg list/cookie */ NULL
,
1124 /* must/cannot opts */ NULL
, NULL
,
1125 /* option proc */ NULL
,
1126 /* desc, NAME, name */ PGP_RING_INFO_DESC
, PGP_RING_INFO_NAME
, PGP_RING_INFO_name
,
1127 /* disablement strs */ NULL
, NULL
},
1129 { /* entry idx, value */ 29, VALUE_OPT_CRL_INFO
,
1130 /* equiv idx, value */ 29, VALUE_OPT_CRL_INFO
,
1131 /* equivalenced to */ NO_EQUIVALENT
,
1132 /* min, max, act ct */ 0, 1, 0,
1133 /* opt state flags */ CRL_INFO_FLAGS
, 0,
1134 /* last opt argumnt */ { NULL
}, /* --crl-info */
1135 /* arg list/cookie */ NULL
,
1136 /* must/cannot opts */ NULL
, NULL
,
1137 /* option proc */ NULL
,
1138 /* desc, NAME, name */ CRL_INFO_DESC
, CRL_INFO_NAME
, CRL_INFO_name
,
1139 /* disablement strs */ NULL
, NULL
},
1141 { /* entry idx, value */ 30, VALUE_OPT_CRQ_INFO
,
1142 /* equiv idx, value */ 30, VALUE_OPT_CRQ_INFO
,
1143 /* equivalenced to */ NO_EQUIVALENT
,
1144 /* min, max, act ct */ 0, 1, 0,
1145 /* opt state flags */ CRQ_INFO_FLAGS
, 0,
1146 /* last opt argumnt */ { NULL
}, /* --crq-info */
1147 /* arg list/cookie */ NULL
,
1148 /* must/cannot opts */ NULL
, NULL
,
1149 /* option proc */ NULL
,
1150 /* desc, NAME, name */ CRQ_INFO_DESC
, CRQ_INFO_NAME
, CRQ_INFO_name
,
1151 /* disablement strs */ NULL
, NULL
},
1153 { /* entry idx, value */ 31, VALUE_OPT_NO_CRQ_EXTENSIONS
,
1154 /* equiv idx, value */ 31, VALUE_OPT_NO_CRQ_EXTENSIONS
,
1155 /* equivalenced to */ NO_EQUIVALENT
,
1156 /* min, max, act ct */ 0, 1, 0,
1157 /* opt state flags */ NO_CRQ_EXTENSIONS_FLAGS
, 0,
1158 /* last opt argumnt */ { NULL
}, /* --no-crq-extensions */
1159 /* arg list/cookie */ NULL
,
1160 /* must/cannot opts */ NULL
, NULL
,
1161 /* option proc */ NULL
,
1162 /* desc, NAME, name */ NO_CRQ_EXTENSIONS_DESC
, NO_CRQ_EXTENSIONS_NAME
, NO_CRQ_EXTENSIONS_name
,
1163 /* disablement strs */ NULL
, NULL
},
1165 { /* entry idx, value */ 32, VALUE_OPT_P12_INFO
,
1166 /* equiv idx, value */ 32, VALUE_OPT_P12_INFO
,
1167 /* equivalenced to */ NO_EQUIVALENT
,
1168 /* min, max, act ct */ 0, 1, 0,
1169 /* opt state flags */ P12_INFO_FLAGS
, 0,
1170 /* last opt argumnt */ { NULL
}, /* --p12-info */
1171 /* arg list/cookie */ NULL
,
1172 /* must/cannot opts */ NULL
, NULL
,
1173 /* option proc */ NULL
,
1174 /* desc, NAME, name */ P12_INFO_DESC
, P12_INFO_NAME
, P12_INFO_name
,
1175 /* disablement strs */ NULL
, NULL
},
1177 { /* entry idx, value */ 33, VALUE_OPT_P7_INFO
,
1178 /* equiv idx, value */ 33, VALUE_OPT_P7_INFO
,
1179 /* equivalenced to */ NO_EQUIVALENT
,
1180 /* min, max, act ct */ 0, 1, 0,
1181 /* opt state flags */ P7_INFO_FLAGS
, 0,
1182 /* last opt argumnt */ { NULL
}, /* --p7-info */
1183 /* arg list/cookie */ NULL
,
1184 /* must/cannot opts */ NULL
, NULL
,
1185 /* option proc */ NULL
,
1186 /* desc, NAME, name */ P7_INFO_DESC
, P7_INFO_NAME
, P7_INFO_name
,
1187 /* disablement strs */ NULL
, NULL
},
1189 { /* entry idx, value */ 34, VALUE_OPT_SMIME_TO_P7
,
1190 /* equiv idx, value */ 34, VALUE_OPT_SMIME_TO_P7
,
1191 /* equivalenced to */ NO_EQUIVALENT
,
1192 /* min, max, act ct */ 0, 1, 0,
1193 /* opt state flags */ SMIME_TO_P7_FLAGS
, 0,
1194 /* last opt argumnt */ { NULL
}, /* --smime-to-p7 */
1195 /* arg list/cookie */ NULL
,
1196 /* must/cannot opts */ NULL
, NULL
,
1197 /* option proc */ NULL
,
1198 /* desc, NAME, name */ SMIME_TO_P7_DESC
, SMIME_TO_P7_NAME
, SMIME_TO_P7_name
,
1199 /* disablement strs */ NULL
, NULL
},
1201 { /* entry idx, value */ 35, VALUE_OPT_KEY_INFO
,
1202 /* equiv idx, value */ 35, VALUE_OPT_KEY_INFO
,
1203 /* equivalenced to */ NO_EQUIVALENT
,
1204 /* min, max, act ct */ 0, 1, 0,
1205 /* opt state flags */ KEY_INFO_FLAGS
, 0,
1206 /* last opt argumnt */ { NULL
}, /* --key-info */
1207 /* arg list/cookie */ NULL
,
1208 /* must/cannot opts */ NULL
, NULL
,
1209 /* option proc */ NULL
,
1210 /* desc, NAME, name */ KEY_INFO_DESC
, KEY_INFO_NAME
, KEY_INFO_name
,
1211 /* disablement strs */ NULL
, NULL
},
1213 { /* entry idx, value */ 36, VALUE_OPT_PGP_KEY_INFO
,
1214 /* equiv idx, value */ 36, VALUE_OPT_PGP_KEY_INFO
,
1215 /* equivalenced to */ NO_EQUIVALENT
,
1216 /* min, max, act ct */ 0, 1, 0,
1217 /* opt state flags */ PGP_KEY_INFO_FLAGS
, 0,
1218 /* last opt argumnt */ { NULL
}, /* --pgp-key-info */
1219 /* arg list/cookie */ NULL
,
1220 /* must/cannot opts */ NULL
, NULL
,
1221 /* option proc */ NULL
,
1222 /* desc, NAME, name */ PGP_KEY_INFO_DESC
, PGP_KEY_INFO_NAME
, PGP_KEY_INFO_name
,
1223 /* disablement strs */ NULL
, NULL
},
1225 { /* entry idx, value */ 37, VALUE_OPT_PUBKEY_INFO
,
1226 /* equiv idx, value */ 37, VALUE_OPT_PUBKEY_INFO
,
1227 /* equivalenced to */ NO_EQUIVALENT
,
1228 /* min, max, act ct */ 0, 1, 0,
1229 /* opt state flags */ PUBKEY_INFO_FLAGS
, 0,
1230 /* last opt argumnt */ { NULL
}, /* --pubkey-info */
1231 /* arg list/cookie */ NULL
,
1232 /* must/cannot opts */ NULL
, NULL
,
1233 /* option proc */ NULL
,
1234 /* desc, NAME, name */ PUBKEY_INFO_DESC
, PUBKEY_INFO_NAME
, PUBKEY_INFO_name
,
1235 /* disablement strs */ NULL
, NULL
},
1237 { /* entry idx, value */ 38, VALUE_OPT_V1
,
1238 /* equiv idx, value */ 38, VALUE_OPT_V1
,
1239 /* equivalenced to */ NO_EQUIVALENT
,
1240 /* min, max, act ct */ 0, 1, 0,
1241 /* opt state flags */ V1_FLAGS
, 0,
1242 /* last opt argumnt */ { NULL
}, /* --v1 */
1243 /* arg list/cookie */ NULL
,
1244 /* must/cannot opts */ NULL
, NULL
,
1245 /* option proc */ NULL
,
1246 /* desc, NAME, name */ V1_DESC
, V1_NAME
, V1_name
,
1247 /* disablement strs */ NULL
, NULL
},
1249 { /* entry idx, value */ 39, VALUE_OPT_TO_P12
,
1250 /* equiv idx, value */ 39, VALUE_OPT_TO_P12
,
1251 /* equivalenced to */ NO_EQUIVALENT
,
1252 /* min, max, act ct */ 0, 1, 0,
1253 /* opt state flags */ TO_P12_FLAGS
, 0,
1254 /* last opt argumnt */ { NULL
}, /* --to-p12 */
1255 /* arg list/cookie */ NULL
,
1256 /* must/cannot opts */ aTo_P12MustList
, NULL
,
1257 /* option proc */ NULL
,
1258 /* desc, NAME, name */ TO_P12_DESC
, TO_P12_NAME
, TO_P12_name
,
1259 /* disablement strs */ NULL
, NULL
},
1261 { /* entry idx, value */ 40, VALUE_OPT_TO_P8
,
1262 /* equiv idx, value */ 40, VALUE_OPT_TO_P8
,
1263 /* equivalenced to */ NO_EQUIVALENT
,
1264 /* min, max, act ct */ 0, 1, 0,
1265 /* opt state flags */ TO_P8_FLAGS
, 0,
1266 /* last opt argumnt */ { NULL
}, /* --to-p8 */
1267 /* arg list/cookie */ NULL
,
1268 /* must/cannot opts */ NULL
, NULL
,
1269 /* option proc */ NULL
,
1270 /* desc, NAME, name */ TO_P8_DESC
, TO_P8_NAME
, TO_P8_name
,
1271 /* disablement strs */ NULL
, NULL
},
1273 { /* entry idx, value */ 41, VALUE_OPT_PKCS8
,
1274 /* equiv idx, value */ 41, VALUE_OPT_PKCS8
,
1275 /* equivalenced to */ NO_EQUIVALENT
,
1276 /* min, max, act ct */ 0, 1, 0,
1277 /* opt state flags */ PKCS8_FLAGS
, 0,
1278 /* last opt argumnt */ { NULL
}, /* --pkcs8 */
1279 /* arg list/cookie */ NULL
,
1280 /* must/cannot opts */ NULL
, NULL
,
1281 /* option proc */ NULL
,
1282 /* desc, NAME, name */ PKCS8_DESC
, PKCS8_NAME
, PKCS8_name
,
1283 /* disablement strs */ NULL
, NULL
},
1285 { /* entry idx, value */ 42, VALUE_OPT_RSA
,
1286 /* equiv idx, value */ 42, VALUE_OPT_RSA
,
1287 /* equivalenced to */ NO_EQUIVALENT
,
1288 /* min, max, act ct */ 0, 1, 0,
1289 /* opt state flags */ RSA_FLAGS
, 0,
1290 /* last opt argumnt */ { NULL
}, /* --rsa */
1291 /* arg list/cookie */ NULL
,
1292 /* must/cannot opts */ NULL
, NULL
,
1293 /* option proc */ NULL
,
1294 /* desc, NAME, name */ RSA_DESC
, RSA_NAME
, RSA_name
,
1295 /* disablement strs */ NULL
, NULL
},
1297 { /* entry idx, value */ 43, VALUE_OPT_DSA
,
1298 /* equiv idx, value */ 43, VALUE_OPT_DSA
,
1299 /* equivalenced to */ NO_EQUIVALENT
,
1300 /* min, max, act ct */ 0, 1, 0,
1301 /* opt state flags */ DSA_FLAGS
, 0,
1302 /* last opt argumnt */ { NULL
}, /* --dsa */
1303 /* arg list/cookie */ NULL
,
1304 /* must/cannot opts */ NULL
, NULL
,
1305 /* option proc */ NULL
,
1306 /* desc, NAME, name */ DSA_DESC
, DSA_NAME
, DSA_name
,
1307 /* disablement strs */ NULL
, NULL
},
1309 { /* entry idx, value */ 44, VALUE_OPT_ECC
,
1310 /* equiv idx, value */ 44, VALUE_OPT_ECC
,
1311 /* equivalenced to */ NO_EQUIVALENT
,
1312 /* min, max, act ct */ 0, 1, 0,
1313 /* opt state flags */ ECC_FLAGS
, 0,
1314 /* last opt argumnt */ { NULL
}, /* --ecc */
1315 /* arg list/cookie */ NULL
,
1316 /* must/cannot opts */ NULL
, NULL
,
1317 /* option proc */ NULL
,
1318 /* desc, NAME, name */ ECC_DESC
, ECC_NAME
, ECC_name
,
1319 /* disablement strs */ NULL
, NULL
},
1321 { /* entry idx, value */ 45, VALUE_OPT_HASH
,
1322 /* equiv idx, value */ 45, VALUE_OPT_HASH
,
1323 /* equivalenced to */ NO_EQUIVALENT
,
1324 /* min, max, act ct */ 0, 1, 0,
1325 /* opt state flags */ HASH_FLAGS
, 0,
1326 /* last opt argumnt */ { NULL
}, /* --hash */
1327 /* arg list/cookie */ NULL
,
1328 /* must/cannot opts */ NULL
, NULL
,
1329 /* option proc */ NULL
,
1330 /* desc, NAME, name */ HASH_DESC
, HASH_NAME
, HASH_name
,
1331 /* disablement strs */ NULL
, NULL
},
1333 { /* entry idx, value */ 46, VALUE_OPT_INDER
,
1334 /* equiv idx, value */ 46, VALUE_OPT_INDER
,
1335 /* equivalenced to */ NO_EQUIVALENT
,
1336 /* min, max, act ct */ 0, 1, 0,
1337 /* opt state flags */ INDER_FLAGS
, 0,
1338 /* last opt argumnt */ { NULL
}, /* --inder */
1339 /* arg list/cookie */ NULL
,
1340 /* must/cannot opts */ NULL
, NULL
,
1341 /* option proc */ NULL
,
1342 /* desc, NAME, name */ INDER_DESC
, INDER_NAME
, INDER_name
,
1343 /* disablement strs */ NOT_INDER_name
, NOT_INDER_PFX
},
1345 { /* entry idx, value */ 47, VALUE_OPT_INRAW
,
1346 /* equiv idx, value */ 47, VALUE_OPT_INRAW
,
1347 /* equivalenced to */ NO_EQUIVALENT
,
1348 /* min, max, act ct */ 0, 1, 0,
1349 /* opt state flags */ INRAW_FLAGS
, 0,
1350 /* last opt argumnt */ { NULL
}, /* --inraw */
1351 /* arg list/cookie */ NULL
,
1352 /* must/cannot opts */ NULL
, NULL
,
1353 /* option proc */ doOptInraw
,
1354 /* desc, NAME, name */ INRAW_DESC
, INRAW_NAME
, INRAW_name
,
1355 /* disablement strs */ 0, 0 },
1357 { /* entry idx, value */ 48, VALUE_OPT_OUTDER
,
1358 /* equiv idx, value */ 48, VALUE_OPT_OUTDER
,
1359 /* equivalenced to */ NO_EQUIVALENT
,
1360 /* min, max, act ct */ 0, 1, 0,
1361 /* opt state flags */ OUTDER_FLAGS
, 0,
1362 /* last opt argumnt */ { NULL
}, /* --outder */
1363 /* arg list/cookie */ NULL
,
1364 /* must/cannot opts */ NULL
, NULL
,
1365 /* option proc */ NULL
,
1366 /* desc, NAME, name */ OUTDER_DESC
, OUTDER_NAME
, OUTDER_name
,
1367 /* disablement strs */ NOT_OUTDER_name
, NOT_OUTDER_PFX
},
1369 { /* entry idx, value */ 49, VALUE_OPT_OUTRAW
,
1370 /* equiv idx, value */ 49, VALUE_OPT_OUTRAW
,
1371 /* equivalenced to */ NO_EQUIVALENT
,
1372 /* min, max, act ct */ 0, 1, 0,
1373 /* opt state flags */ OUTRAW_FLAGS
, 0,
1374 /* last opt argumnt */ { NULL
}, /* --outraw */
1375 /* arg list/cookie */ NULL
,
1376 /* must/cannot opts */ NULL
, NULL
,
1377 /* option proc */ doOptOutraw
,
1378 /* desc, NAME, name */ OUTRAW_DESC
, OUTRAW_NAME
, OUTRAW_name
,
1379 /* disablement strs */ 0, 0 },
1381 { /* entry idx, value */ 50, VALUE_OPT_BITS
,
1382 /* equiv idx, value */ 50, VALUE_OPT_BITS
,
1383 /* equivalenced to */ NO_EQUIVALENT
,
1384 /* min, max, act ct */ 0, 1, 0,
1385 /* opt state flags */ BITS_FLAGS
, 0,
1386 /* last opt argumnt */ { NULL
}, /* --bits */
1387 /* arg list/cookie */ NULL
,
1388 /* must/cannot opts */ NULL
, NULL
,
1389 /* option proc */ optionNumericVal
,
1390 /* desc, NAME, name */ BITS_DESC
, BITS_NAME
, BITS_name
,
1391 /* disablement strs */ NULL
, NULL
},
1393 { /* entry idx, value */ 51, VALUE_OPT_SEC_PARAM
,
1394 /* equiv idx, value */ 51, VALUE_OPT_SEC_PARAM
,
1395 /* equivalenced to */ NO_EQUIVALENT
,
1396 /* min, max, act ct */ 0, 1, 0,
1397 /* opt state flags */ SEC_PARAM_FLAGS
, 0,
1398 /* last opt argumnt */ { NULL
}, /* --sec-param */
1399 /* arg list/cookie */ NULL
,
1400 /* must/cannot opts */ NULL
, NULL
,
1401 /* option proc */ NULL
,
1402 /* desc, NAME, name */ SEC_PARAM_DESC
, SEC_PARAM_NAME
, SEC_PARAM_name
,
1403 /* disablement strs */ NULL
, NULL
},
1405 { /* entry idx, value */ 52, VALUE_OPT_DISABLE_QUICK_RANDOM
,
1406 /* equiv idx, value */ 52, VALUE_OPT_DISABLE_QUICK_RANDOM
,
1407 /* equivalenced to */ NO_EQUIVALENT
,
1408 /* min, max, act ct */ 0, 1, 0,
1409 /* opt state flags */ DISABLE_QUICK_RANDOM_FLAGS
, 0,
1410 /* last opt argumnt */ { NULL
}, /* --disable-quick-random */
1411 /* arg list/cookie */ NULL
,
1412 /* must/cannot opts */ NULL
, NULL
,
1413 /* option proc */ NULL
,
1414 /* desc, NAME, name */ DISABLE_QUICK_RANDOM_DESC
, DISABLE_QUICK_RANDOM_NAME
, DISABLE_QUICK_RANDOM_name
,
1415 /* disablement strs */ NULL
, NULL
},
1417 { /* entry idx, value */ 53, VALUE_OPT_TEMPLATE
,
1418 /* equiv idx, value */ 53, VALUE_OPT_TEMPLATE
,
1419 /* equivalenced to */ NO_EQUIVALENT
,
1420 /* min, max, act ct */ 0, 1, 0,
1421 /* opt state flags */ TEMPLATE_FLAGS
, 0,
1422 /* last opt argumnt */ { NULL
}, /* --template */
1423 /* arg list/cookie */ NULL
,
1424 /* must/cannot opts */ NULL
, NULL
,
1425 /* option proc */ doOptTemplate
,
1426 /* desc, NAME, name */ TEMPLATE_DESC
, TEMPLATE_NAME
, TEMPLATE_name
,
1427 /* disablement strs */ NULL
, NULL
},
1429 { /* entry idx, value */ 54, VALUE_OPT_PKCS_CIPHER
,
1430 /* equiv idx, value */ 54, VALUE_OPT_PKCS_CIPHER
,
1431 /* equivalenced to */ NO_EQUIVALENT
,
1432 /* min, max, act ct */ 0, 1, 0,
1433 /* opt state flags */ PKCS_CIPHER_FLAGS
, 0,
1434 /* last opt argumnt */ { NULL
}, /* --pkcs-cipher */
1435 /* arg list/cookie */ NULL
,
1436 /* must/cannot opts */ NULL
, NULL
,
1437 /* option proc */ NULL
,
1438 /* desc, NAME, name */ PKCS_CIPHER_DESC
, PKCS_CIPHER_NAME
, PKCS_CIPHER_name
,
1439 /* disablement strs */ NULL
, NULL
},
1441 { /* entry idx, value */ INDEX_OPT_VERSION
, VALUE_OPT_VERSION
,
1442 /* equiv idx value */ NO_EQUIVALENT
, VALUE_OPT_VERSION
,
1443 /* equivalenced to */ NO_EQUIVALENT
,
1444 /* min, max, act ct */ 0, 1, 0,
1445 /* opt state flags */ VER_FLAGS
, 0,
1446 /* last opt argumnt */ { NULL
},
1447 /* arg list/cookie */ NULL
,
1448 /* must/cannot opts */ NULL
, NULL
,
1449 /* option proc */ VER_PROC
,
1450 /* desc, NAME, name */ VER_DESC
, NULL
, VER_name
,
1451 /* disablement strs */ NULL
, NULL
},
1455 { /* entry idx, value */ INDEX_OPT_HELP
, VALUE_OPT_HELP
,
1456 /* equiv idx value */ NO_EQUIVALENT
, VALUE_OPT_HELP
,
1457 /* equivalenced to */ NO_EQUIVALENT
,
1458 /* min, max, act ct */ 0, 1, 0,
1459 /* opt state flags */ OPTST_IMM
| OPTST_NO_INIT
, 0,
1460 /* last opt argumnt */ { NULL
},
1461 /* arg list/cookie */ NULL
,
1462 /* must/cannot opts */ NULL
, NULL
,
1463 /* option proc */ doUsageOpt
,
1464 /* desc, NAME, name */ HELP_DESC
, NULL
, HELP_name
,
1465 /* disablement strs */ NULL
, NULL
},
1467 { /* entry idx, value */ INDEX_OPT_MORE_HELP
, VALUE_OPT_MORE_HELP
,
1468 /* equiv idx value */ NO_EQUIVALENT
, VALUE_OPT_MORE_HELP
,
1469 /* equivalenced to */ NO_EQUIVALENT
,
1470 /* min, max, act ct */ 0, 1, 0,
1471 /* opt state flags */ MORE_HELP_FLAGS
, 0,
1472 /* last opt argumnt */ { NULL
},
1473 /* arg list/cookie */ NULL
,
1474 /* must/cannot opts */ NULL
, NULL
,
1475 /* option proc */ optionPagedUsage
,
1476 /* desc, NAME, name */ MORE_HELP_DESC
, NULL
, MORE_HELP_name
,
1477 /* disablement strs */ NULL
, NULL
}
1481 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1483 * Define the certtool Option Environment
1485 #define zPROGNAME (certtool_opt_strs+4297)
1486 #define zUsageTitle (certtool_opt_strs+4306)
1487 #define zRcName NULL
1488 #define apzHomeList NULL
1489 #define zBugsAddr (certtool_opt_strs+4416)
1490 #define zExplain (certtool_opt_strs+4435)
1491 #define zDetail (certtool_opt_strs+4438)
1492 #define zFullVersion (certtool_opt_strs+4612)
1493 /* extracted from optcode.tlib near line 350 */
1495 #if defined(ENABLE_NLS)
1496 # define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
1497 static tOptionXlateProc translate_option_strings
;
1499 # define OPTPROC_BASE OPTPROC_NONE
1500 # define translate_option_strings NULL
1501 #endif /* ENABLE_NLS */
1504 #define certtool_full_usage (NULL)
1506 #define certtool_short_usage (certtool_opt_strs+4631)
1508 #endif /* not defined __doxygen__ */
1511 * Create the static procedure(s) declared above.
1514 * The callout function that invokes the optionUsage function.
1516 * @param pOptions the AutoOpts option description structure
1517 * @param pOptDesc the descriptor for the "help" (usage) option.
1521 doUsageOpt(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1523 optionUsage(&certtoolOptions
, CERTTOOL_EXIT_SUCCESS
);
1529 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1531 * Code to handle the debug option.
1533 * @param pOptions the certtool options data structure
1534 * @param pOptDesc the option descriptor for this option.
1537 doOptDebug(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1539 static struct {long rmin
, rmax
;} const rng
[1] = {
1543 if (pOptions
<= OPTPROC_EMIT_LIMIT
)
1545 optionNumericVal(pOptions
, pOptDesc
);
1547 for (ix
= 0; ix
< 1; ix
++) {
1548 if (pOptDesc
->optArg
.argInt
< rng
[ix
].rmin
)
1549 continue; /* ranges need not be ordered. */
1550 if (pOptDesc
->optArg
.argInt
== rng
[ix
].rmin
)
1552 if (rng
[ix
].rmax
== LONG_MIN
)
1554 if (pOptDesc
->optArg
.argInt
<= rng
[ix
].rmax
)
1558 option_usage_fp
= stderr
;
1562 optionShowRange(pOptions
, pOptDesc
, (void *)rng
, 1);
1565 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1567 * Code to handle the infile option.
1569 * @param pOptions the certtool options data structure
1570 * @param pOptDesc the option descriptor for this option.
1573 doOptInfile(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1575 static teOptFileType
const type
=
1576 FTYPE_MODE_MUST_EXIST
+ FTYPE_MODE_NO_OPEN
;
1577 static tuFileMode mode
;
1579 # define O_CLOEXEC 0
1581 mode
.file_flags
= O_CLOEXEC
;
1583 optionFileCheck(pOptions
, pOptDesc
, type
, mode
);
1586 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1588 * Code to handle the load-request option.
1590 * @param pOptions the certtool options data structure
1591 * @param pOptDesc the option descriptor for this option.
1594 doOptLoad_Request(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1596 static teOptFileType
const type
=
1597 FTYPE_MODE_MUST_EXIST
+ FTYPE_MODE_NO_OPEN
;
1598 static tuFileMode mode
;
1600 # define O_CLOEXEC 0
1602 mode
.file_flags
= O_CLOEXEC
;
1604 optionFileCheck(pOptions
, pOptDesc
, type
, mode
);
1607 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1609 * Code to handle the inraw option.
1611 * @param pOptions the certtool options data structure
1612 * @param pOptDesc the option descriptor for this option.
1615 doOptInraw(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1617 int res
= optionAlias(pOptions
, pOptDesc
, INDEX_OPT_INDER
);
1618 if ((res
!= 0) && ((pOptions
->fOptSet
& OPTPROC_ERRSTOP
) != 0))
1619 USAGE(CERTTOOL_EXIT_FAILURE
);
1623 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1625 * Code to handle the outraw option.
1627 * @param pOptions the certtool options data structure
1628 * @param pOptDesc the option descriptor for this option.
1631 doOptOutraw(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1633 int res
= optionAlias(pOptions
, pOptDesc
, INDEX_OPT_OUTDER
);
1634 if ((res
!= 0) && ((pOptions
->fOptSet
& OPTPROC_ERRSTOP
) != 0))
1635 USAGE(CERTTOOL_EXIT_FAILURE
);
1639 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1641 * Code to handle the template option.
1643 * @param pOptions the certtool options data structure
1644 * @param pOptDesc the option descriptor for this option.
1647 doOptTemplate(tOptions
* pOptions
, tOptDesc
* pOptDesc
)
1649 static teOptFileType
const type
=
1650 FTYPE_MODE_MUST_EXIST
+ FTYPE_MODE_NO_OPEN
;
1651 static tuFileMode mode
;
1653 # define O_CLOEXEC 0
1655 mode
.file_flags
= O_CLOEXEC
;
1657 optionFileCheck(pOptions
, pOptDesc
, type
, mode
);
1659 /* extracted from optmain.tlib near line 1113 */
1662 * The directory containing the data associated with certtool.
1665 # define PKGDATADIR ""
1669 * Information about the person or institution that packaged certtool
1670 * for the current distribution.
1672 #ifndef WITH_PACKAGER
1673 # define certtool_packager_info NULL
1675 static char const certtool_packager_info
[] =
1676 "Packaged by " WITH_PACKAGER
1678 # ifdef WITH_PACKAGER_VERSION
1679 " ("WITH_PACKAGER_VERSION
")"
1682 # ifdef WITH_PACKAGER_BUG_REPORTS
1683 "\nReport certtool bugs to " WITH_PACKAGER_BUG_REPORTS
1689 #endif /* __doxygen__ */
1691 * The option definitions for certtool. The one structure that
1694 tOptions certtoolOptions
= {
1695 OPTIONS_STRUCT_VERSION
,
1696 0, NULL
, /* original argc + argv */
1701 + OPTPROC_NO_REQ_OPT
1706 0, NULL
, /* current option index, current option */
1707 NULL
, NULL
, zPROGNAME
,
1708 zRcName
, zCopyright
, zLicenseDescrip
,
1709 zFullVersion
, apzHomeList
, zUsageTitle
,
1710 zExplain
, zDetail
, optDesc
,
1711 zBugsAddr
, /* address to send bugs to */
1712 NULL
, NULL
, /* extensions/saved state */
1713 optionUsage
, /* usage procedure */
1714 translate_option_strings
, /* translation procedure */
1716 * Indexes to special options
1718 { INDEX_OPT_MORE_HELP
, /* more-help option index */
1719 NO_EQUIVALENT
, /* save option index */
1720 NO_EQUIVALENT
, /* '-#' option index */
1721 NO_EQUIVALENT
/* index of default opt */
1723 58 /* full option count */, 55 /* user option count */,
1724 certtool_full_usage
, certtool_short_usage
,
1726 PKGDATADIR
, certtool_packager_info
1734 #include <autoopts/usage-txt.h>
1736 static char* AO_gettext(char const* pz
);
1737 static void coerce_it(void** s
);
1740 * AutoGen specific wrapper function for gettext.
1741 * It relies on the macro _() to convert from English to the target
1742 * language, then strdup-duplicates the result string.
1744 * @param[in] pz the input text used as a lookup key.
1745 * @returns the translated text (if there is one),
1746 * or the original text (if not).
1749 AO_gettext(char const* pz
)
1757 pzRes
= strdup(pzRes
);
1758 if (pzRes
== NULL
) {
1759 fputs(_("No memory for duping translated strings\n"), stderr
);
1760 exit(CERTTOOL_EXIT_FAILURE
);
1765 static void coerce_it(void** s
) { *s
= AO_gettext(*s
);
1769 * Translate all the translatable strings in the certtoolOptions
1770 * structure defined above. This is done only once.
1773 translate_option_strings(void)
1775 tOptions
* const pOpt
= &certtoolOptions
;
1778 * Guard against re-translation. It won't work. The strings will have
1779 * been changed by the first pass through this code. One shot only.
1781 if (option_usage_text
.field_ct
!= 0) {
1783 * Do the translations. The first pointer follows the field count
1784 * field. The field count field is the size of a pointer.
1786 tOptDesc
* pOD
= pOpt
->pOptDesc
;
1787 char ** ppz
= (char**)(void*)&(option_usage_text
);
1788 int ix
= option_usage_text
.field_ct
;
1792 *ppz
= AO_gettext(*ppz
);
1795 coerce_it((void*)&(pOpt
->pzCopyright
));
1796 coerce_it((void*)&(pOpt
->pzCopyNotice
));
1797 coerce_it((void*)&(pOpt
->pzFullVersion
));
1798 coerce_it((void*)&(pOpt
->pzUsageTitle
));
1799 coerce_it((void*)&(pOpt
->pzExplain
));
1800 coerce_it((void*)&(pOpt
->pzDetail
));
1801 coerce_it((void*)&(pOpt
->pzPackager
));
1802 coerce_it((void*)&(pOpt
->pzShortUsage
));
1803 option_usage_text
.field_ct
= 0;
1805 for (ix
= pOpt
->optCt
; ix
> 0; ix
--, pOD
++)
1806 coerce_it((void*)&(pOD
->pzText
));
1809 if ((pOpt
->fOptSet
& OPTPROC_NXLAT_OPT_CFG
) == 0) {
1810 tOptDesc
* pOD
= pOpt
->pOptDesc
;
1813 for (ix
= pOpt
->optCt
; ix
> 0; ix
--, pOD
++) {
1814 coerce_it((void*)&(pOD
->pz_Name
));
1815 coerce_it((void*)&(pOD
->pz_DisableName
));
1816 coerce_it((void*)&(pOD
->pz_DisablePfx
));
1818 /* prevent re-translation */
1819 certtoolOptions
.fOptSet
|= OPTPROC_NXLAT_OPT_CFG
| OPTPROC_NXLAT_OPT
;
1823 #endif /* ENABLE_NLS */
1828 /* certtool-args.c ends here */