gnutls_ocsp_resp_check_crt() accepts the response index.
[gnutls.git] / src / cli-args.c
blob2566d51866a61fe0f2ece9a3b44a069b343e54e1
1 /* -*- buffer-read-only: t -*- vi: set ro:
2 *
3 * DO NOT EDIT THIS FILE (cli-args.c)
4 *
5 * It has been AutoGen-ed September 30, 2012 at 03:25:07 PM by AutoGen 5.16
6 * From the definitions cli-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 gnutls-cli 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
17 * for details.
19 * The gnutls-cli 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 * gnutls-cli 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 * gnutls-cli 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/>.
42 #ifndef __doxygen__
43 #define OPTION_CODE_COMPILE 1
44 #include "cli-args.h"
45 #include <sys/types.h>
47 #include <limits.h>
48 #include <stdio.h>
49 #include <stdlib.h>
50 #include <errno.h>
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
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 (gnutls_cli_opt_strs+0)
60 #define zLicenseDescrip (gnutls_cli_opt_strs+281)
63 #ifndef NULL
64 # define NULL 0
65 #endif
68 * gnutls-cli option static const strings
70 static char const gnutls_cli_opt_strs[3605] =
71 /* 0 */ "gnutls-cli @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 /* 281 */ "gnutls-cli 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 "gnutls-cli is distributed in the hope that it will be useful, but WITHOUT\n"
82 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n"
83 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n"
84 "more details.\n\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 /* 890 */ "Enable debugging.\0"
88 /* 908 */ "DEBUG\0"
89 /* 914 */ "debug\0"
90 /* 920 */ "More verbose output\0"
91 /* 940 */ "VERBOSE\0"
92 /* 948 */ "verbose\0"
93 /* 956 */ "Enable trust on first use authentication\0"
94 /* 997 */ "TOFU\0"
95 /* 1002 */ "no-tofu\0"
96 /* 1010 */ "no\0"
97 /* 1013 */ "Enable OCSP certificate verification\0"
98 /* 1050 */ "OCSP\0"
99 /* 1055 */ "no-ocsp\0"
100 /* 1063 */ "Establish a session and resume\0"
101 /* 1094 */ "RESUME\0"
102 /* 1101 */ "resume\0"
103 /* 1108 */ "Activate heartbeat support\0"
104 /* 1135 */ "HEARTBEAT\0"
105 /* 1145 */ "heartbeat\0"
106 /* 1155 */ "Establish a session and rehandshake\0"
107 /* 1191 */ "REHANDSHAKE\0"
108 /* 1203 */ "rehandshake\0"
109 /* 1215 */ "Don't accept session tickets\0"
110 /* 1244 */ "NOTICKET\0"
111 /* 1253 */ "noticket\0"
112 /* 1262 */ "Enable OCSP status request\0"
113 /* 1289 */ "OCSP_STATUS_REQUEST\0"
114 /* 1309 */ "ocsp-status-request\0"
115 /* 1329 */ "Connect, establish a plain session and start TLS.\0"
116 /* 1379 */ "STARTTLS\0"
117 /* 1388 */ "starttls\0"
118 /* 1397 */ "Use DTLS (datagram TLS) over UDP\0"
119 /* 1430 */ "UDP\0"
120 /* 1434 */ "udp\0"
121 /* 1438 */ "Set MTU for datagram TLS\0"
122 /* 1463 */ "MTU\0"
123 /* 1467 */ "mtu\0"
124 /* 1471 */ "Send CR LF instead of LF\0"
125 /* 1496 */ "CRLF\0"
126 /* 1501 */ "crlf\0"
127 /* 1506 */ "Use DER format for certificates to read from\0"
128 /* 1551 */ "X509FMTDER\0"
129 /* 1562 */ "x509fmtder\0"
130 /* 1573 */ "Send the openpgp fingerprint, instead of the key\0"
131 /* 1622 */ "FINGERPRINT\0"
132 /* 1634 */ "fingerprint\0"
133 /* 1646 */ "Disable all the TLS extensions\0"
134 /* 1677 */ "DISABLE_EXTENSIONS\0"
135 /* 1696 */ "disable-extensions\0"
136 /* 1715 */ "Print peer's certificate in PEM format\0"
137 /* 1754 */ "PRINT_CERT\0"
138 /* 1765 */ "print-cert\0"
139 /* 1776 */ "The maximum record size to advertize\0"
140 /* 1813 */ "RECORDSIZE\0"
141 /* 1824 */ "recordsize\0"
142 /* 1835 */ "The minimum number of bits allowed for DH\0"
143 /* 1877 */ "DH_BITS\0"
144 /* 1885 */ "dh-bits\0"
145 /* 1893 */ "Priorities string\0"
146 /* 1911 */ "PRIORITY\0"
147 /* 1920 */ "priority\0"
148 /* 1929 */ "Certificate file or PKCS #11 URL to use\0"
149 /* 1969 */ "X509CAFILE\0"
150 /* 1980 */ "x509cafile\0"
151 /* 1991 */ "CRL file to use\0"
152 /* 2007 */ "X509CRLFILE\0"
153 /* 2019 */ "x509crlfile\0"
154 /* 2031 */ "PGP Key file to use\0"
155 /* 2051 */ "PGPKEYFILE\0"
156 /* 2062 */ "pgpkeyfile\0"
157 /* 2073 */ "PGP Key ring file to use\0"
158 /* 2098 */ "PGPKEYRING\0"
159 /* 2109 */ "pgpkeyring\0"
160 /* 2120 */ "PGP Public Key (certificate) file to use\0"
161 /* 2161 */ "PGPCERTFILE\0"
162 /* 2173 */ "pgpcertfile\0"
163 /* 2185 */ "X.509 key file or PKCS #11 URL to use\0"
164 /* 2223 */ "X509KEYFILE\0"
165 /* 2235 */ "x509keyfile\0"
166 /* 2247 */ "X.509 Certificate file or PKCS #11 URL to use\0"
167 /* 2293 */ "X509CERTFILE\0"
168 /* 2306 */ "x509certfile\0"
169 /* 2319 */ "PGP subkey to use (hex or auto)\0"
170 /* 2351 */ "PGPSUBKEY\0"
171 /* 2361 */ "pgpsubkey\0"
172 /* 2371 */ "SRP username to use\0"
173 /* 2391 */ "SRPUSERNAME\0"
174 /* 2403 */ "srpusername\0"
175 /* 2415 */ "SRP password to use\0"
176 /* 2435 */ "SRPPASSWD\0"
177 /* 2445 */ "srppasswd\0"
178 /* 2455 */ "PSK username to use\0"
179 /* 2475 */ "PSKUSERNAME\0"
180 /* 2487 */ "pskusername\0"
181 /* 2499 */ "PSK key (in hex) to use\0"
182 /* 2523 */ "PSKKEY\0"
183 /* 2530 */ "pskkey\0"
184 /* 2537 */ "The port or service to connect to\0"
185 /* 2571 */ "PORT\0"
186 /* 2576 */ "port\0"
187 /* 2581 */ "Don't abort program if server certificate can't be validated\0"
188 /* 2642 */ "INSECURE\0"
189 /* 2651 */ "insecure\0"
190 /* 2660 */ "Benchmark individual ciphers\0"
191 /* 2689 */ "BENCHMARK_CIPHERS\0"
192 /* 2707 */ "benchmark-ciphers\0"
193 /* 2725 */ "Benchmark individual software ciphers (no hw acceleration)\0"
194 /* 2784 */ "BENCHMARK_SOFT_CIPHERS\0"
195 /* 2807 */ "benchmark-soft-ciphers\0"
196 /* 2830 */ "Benchmark TLS key exchange methods\0"
197 /* 2865 */ "BENCHMARK_TLS_KX\0"
198 /* 2882 */ "benchmark-tls-kx\0"
199 /* 2899 */ "Benchmark TLS ciphers\0"
200 /* 2921 */ "BENCHMARK_TLS_CIPHERS\0"
201 /* 2943 */ "benchmark-tls-ciphers\0"
202 /* 2965 */ "Print a list of the supported algorithms and modes\0"
203 /* 3016 */ "LIST\0"
204 /* 3021 */ "list\0"
205 /* 3026 */ "Display extended usage information and exit\0"
206 /* 3070 */ "help\0"
207 /* 3075 */ "Extended usage information passed thru pager\0"
208 /* 3120 */ "more-help\0"
209 /* 3130 */ "Output version information and exit\0"
210 /* 3166 */ "version\0"
211 /* 3174 */ "GNUTLS_CLI\0"
212 /* 3185 */ "gnutls-cli - GnuTLS client - Ver. @VERSION@\n"
213 "USAGE: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostname]\n\0"
214 /* 3298 */ "bug-gnutls@gnu.org\0"
215 /* 3317 */ "\n\n\0"
216 /* 3320 */ "\n"
217 "Simple client program to set up a TLS connection to some other computer. It\n"
218 "sets up a TLS connection and forwards data from the standard input to the\n"
219 "secured socket and vice versa.\n\0"
220 /* 3504 */ "gnutls-cli @VERSION@\0"
221 /* 3525 */ "Usage: gnutls-cli [options] hostname\n"
222 "gnutls-cli --help for usage instructions.\n";
225 * debug option description:
227 #define DEBUG_DESC (gnutls_cli_opt_strs+890)
228 #define DEBUG_NAME (gnutls_cli_opt_strs+908)
229 #define DEBUG_name (gnutls_cli_opt_strs+914)
230 #define DEBUG_FLAGS (OPTST_DISABLED \
231 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
234 * verbose option description:
236 #define VERBOSE_DESC (gnutls_cli_opt_strs+920)
237 #define VERBOSE_NAME (gnutls_cli_opt_strs+940)
238 #define VERBOSE_name (gnutls_cli_opt_strs+948)
239 #define VERBOSE_FLAGS (OPTST_DISABLED)
242 * tofu option description:
244 #define TOFU_DESC (gnutls_cli_opt_strs+956)
245 #define TOFU_NAME (gnutls_cli_opt_strs+997)
246 #define NOT_TOFU_name (gnutls_cli_opt_strs+1002)
247 #define NOT_TOFU_PFX (gnutls_cli_opt_strs+1010)
248 #define TOFU_name (NOT_TOFU_name + 3)
249 #define TOFU_FLAGS (OPTST_DISABLED)
252 * ocsp option description:
254 #define OCSP_DESC (gnutls_cli_opt_strs+1013)
255 #define OCSP_NAME (gnutls_cli_opt_strs+1050)
256 #define NOT_OCSP_name (gnutls_cli_opt_strs+1055)
257 #define NOT_OCSP_PFX (gnutls_cli_opt_strs+1010)
258 #define OCSP_name (NOT_OCSP_name + 3)
259 #define OCSP_FLAGS (OPTST_DISABLED)
262 * resume option description:
264 #define RESUME_DESC (gnutls_cli_opt_strs+1063)
265 #define RESUME_NAME (gnutls_cli_opt_strs+1094)
266 #define RESUME_name (gnutls_cli_opt_strs+1101)
267 #define RESUME_FLAGS (OPTST_DISABLED)
270 * heartbeat option description:
272 #define HEARTBEAT_DESC (gnutls_cli_opt_strs+1108)
273 #define HEARTBEAT_NAME (gnutls_cli_opt_strs+1135)
274 #define HEARTBEAT_name (gnutls_cli_opt_strs+1145)
275 #define HEARTBEAT_FLAGS (OPTST_DISABLED)
278 * rehandshake option description:
280 #define REHANDSHAKE_DESC (gnutls_cli_opt_strs+1155)
281 #define REHANDSHAKE_NAME (gnutls_cli_opt_strs+1191)
282 #define REHANDSHAKE_name (gnutls_cli_opt_strs+1203)
283 #define REHANDSHAKE_FLAGS (OPTST_DISABLED)
286 * noticket option description:
288 #define NOTICKET_DESC (gnutls_cli_opt_strs+1215)
289 #define NOTICKET_NAME (gnutls_cli_opt_strs+1244)
290 #define NOTICKET_name (gnutls_cli_opt_strs+1253)
291 #define NOTICKET_FLAGS (OPTST_DISABLED)
294 * ocsp-status-request option description:
296 #define OCSP_STATUS_REQUEST_DESC (gnutls_cli_opt_strs+1262)
297 #define OCSP_STATUS_REQUEST_NAME (gnutls_cli_opt_strs+1289)
298 #define OCSP_STATUS_REQUEST_name (gnutls_cli_opt_strs+1309)
299 #define OCSP_STATUS_REQUEST_FLAGS (OPTST_DISABLED)
302 * starttls option description:
304 #define STARTTLS_DESC (gnutls_cli_opt_strs+1329)
305 #define STARTTLS_NAME (gnutls_cli_opt_strs+1379)
306 #define STARTTLS_name (gnutls_cli_opt_strs+1388)
307 #define STARTTLS_FLAGS (OPTST_DISABLED)
310 * udp option description:
312 #define UDP_DESC (gnutls_cli_opt_strs+1397)
313 #define UDP_NAME (gnutls_cli_opt_strs+1430)
314 #define UDP_name (gnutls_cli_opt_strs+1434)
315 #define UDP_FLAGS (OPTST_DISABLED)
318 * mtu option description:
320 #define MTU_DESC (gnutls_cli_opt_strs+1438)
321 #define MTU_NAME (gnutls_cli_opt_strs+1463)
322 #define MTU_name (gnutls_cli_opt_strs+1467)
323 #define MTU_FLAGS (OPTST_DISABLED \
324 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
327 * crlf option description:
329 #define CRLF_DESC (gnutls_cli_opt_strs+1471)
330 #define CRLF_NAME (gnutls_cli_opt_strs+1496)
331 #define CRLF_name (gnutls_cli_opt_strs+1501)
332 #define CRLF_FLAGS (OPTST_DISABLED)
335 * x509fmtder option description:
337 #define X509FMTDER_DESC (gnutls_cli_opt_strs+1506)
338 #define X509FMTDER_NAME (gnutls_cli_opt_strs+1551)
339 #define X509FMTDER_name (gnutls_cli_opt_strs+1562)
340 #define X509FMTDER_FLAGS (OPTST_DISABLED)
343 * fingerprint option description:
345 #define FINGERPRINT_DESC (gnutls_cli_opt_strs+1573)
346 #define FINGERPRINT_NAME (gnutls_cli_opt_strs+1622)
347 #define FINGERPRINT_name (gnutls_cli_opt_strs+1634)
348 #define FINGERPRINT_FLAGS (OPTST_DISABLED)
351 * disable-extensions option description:
353 #define DISABLE_EXTENSIONS_DESC (gnutls_cli_opt_strs+1646)
354 #define DISABLE_EXTENSIONS_NAME (gnutls_cli_opt_strs+1677)
355 #define DISABLE_EXTENSIONS_name (gnutls_cli_opt_strs+1696)
356 #define DISABLE_EXTENSIONS_FLAGS (OPTST_DISABLED)
359 * print-cert option description:
361 #define PRINT_CERT_DESC (gnutls_cli_opt_strs+1715)
362 #define PRINT_CERT_NAME (gnutls_cli_opt_strs+1754)
363 #define PRINT_CERT_name (gnutls_cli_opt_strs+1765)
364 #define PRINT_CERT_FLAGS (OPTST_DISABLED)
367 * recordsize option description:
369 #define RECORDSIZE_DESC (gnutls_cli_opt_strs+1776)
370 #define RECORDSIZE_NAME (gnutls_cli_opt_strs+1813)
371 #define RECORDSIZE_name (gnutls_cli_opt_strs+1824)
372 #define RECORDSIZE_FLAGS (OPTST_DISABLED \
373 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
376 * dh-bits option description:
378 #define DH_BITS_DESC (gnutls_cli_opt_strs+1835)
379 #define DH_BITS_NAME (gnutls_cli_opt_strs+1877)
380 #define DH_BITS_name (gnutls_cli_opt_strs+1885)
381 #define DH_BITS_FLAGS (OPTST_DISABLED \
382 | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
385 * priority option description:
387 #define PRIORITY_DESC (gnutls_cli_opt_strs+1893)
388 #define PRIORITY_NAME (gnutls_cli_opt_strs+1911)
389 #define PRIORITY_name (gnutls_cli_opt_strs+1920)
390 #define PRIORITY_FLAGS (OPTST_DISABLED \
391 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
394 * x509cafile option description:
396 #define X509CAFILE_DESC (gnutls_cli_opt_strs+1929)
397 #define X509CAFILE_NAME (gnutls_cli_opt_strs+1969)
398 #define X509CAFILE_name (gnutls_cli_opt_strs+1980)
399 #define X509CAFILE_FLAGS (OPTST_DISABLED \
400 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
403 * x509crlfile option description:
405 #define X509CRLFILE_DESC (gnutls_cli_opt_strs+1991)
406 #define X509CRLFILE_NAME (gnutls_cli_opt_strs+2007)
407 #define X509CRLFILE_name (gnutls_cli_opt_strs+2019)
408 #define X509CRLFILE_FLAGS (OPTST_DISABLED \
409 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
412 * pgpkeyfile option description:
414 #define PGPKEYFILE_DESC (gnutls_cli_opt_strs+2031)
415 #define PGPKEYFILE_NAME (gnutls_cli_opt_strs+2051)
416 #define PGPKEYFILE_name (gnutls_cli_opt_strs+2062)
417 #define PGPKEYFILE_FLAGS (OPTST_DISABLED \
418 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
421 * pgpkeyring option description:
423 #define PGPKEYRING_DESC (gnutls_cli_opt_strs+2073)
424 #define PGPKEYRING_NAME (gnutls_cli_opt_strs+2098)
425 #define PGPKEYRING_name (gnutls_cli_opt_strs+2109)
426 #define PGPKEYRING_FLAGS (OPTST_DISABLED \
427 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
430 * pgpcertfile option description:
432 #define PGPCERTFILE_DESC (gnutls_cli_opt_strs+2120)
433 #define PGPCERTFILE_NAME (gnutls_cli_opt_strs+2161)
434 #define PGPCERTFILE_name (gnutls_cli_opt_strs+2173)
435 #define PGPCERTFILE_FLAGS (OPTST_DISABLED \
436 | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
439 * x509keyfile option description:
441 #define X509KEYFILE_DESC (gnutls_cli_opt_strs+2185)
442 #define X509KEYFILE_NAME (gnutls_cli_opt_strs+2223)
443 #define X509KEYFILE_name (gnutls_cli_opt_strs+2235)
444 #define X509KEYFILE_FLAGS (OPTST_DISABLED \
445 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
448 * x509certfile option description:
450 #define X509CERTFILE_DESC (gnutls_cli_opt_strs+2247)
451 #define X509CERTFILE_NAME (gnutls_cli_opt_strs+2293)
452 #define X509CERTFILE_name (gnutls_cli_opt_strs+2306)
453 #define X509CERTFILE_FLAGS (OPTST_DISABLED \
454 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
457 * pgpsubkey option description:
459 #define PGPSUBKEY_DESC (gnutls_cli_opt_strs+2319)
460 #define PGPSUBKEY_NAME (gnutls_cli_opt_strs+2351)
461 #define PGPSUBKEY_name (gnutls_cli_opt_strs+2361)
462 #define PGPSUBKEY_FLAGS (OPTST_DISABLED \
463 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
466 * srpusername option description:
468 #define SRPUSERNAME_DESC (gnutls_cli_opt_strs+2371)
469 #define SRPUSERNAME_NAME (gnutls_cli_opt_strs+2391)
470 #define SRPUSERNAME_name (gnutls_cli_opt_strs+2403)
471 #define SRPUSERNAME_FLAGS (OPTST_DISABLED \
472 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
475 * srppasswd option description:
477 #define SRPPASSWD_DESC (gnutls_cli_opt_strs+2415)
478 #define SRPPASSWD_NAME (gnutls_cli_opt_strs+2435)
479 #define SRPPASSWD_name (gnutls_cli_opt_strs+2445)
480 #define SRPPASSWD_FLAGS (OPTST_DISABLED \
481 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
484 * pskusername option description:
486 #define PSKUSERNAME_DESC (gnutls_cli_opt_strs+2455)
487 #define PSKUSERNAME_NAME (gnutls_cli_opt_strs+2475)
488 #define PSKUSERNAME_name (gnutls_cli_opt_strs+2487)
489 #define PSKUSERNAME_FLAGS (OPTST_DISABLED \
490 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
493 * pskkey option description:
495 #define PSKKEY_DESC (gnutls_cli_opt_strs+2499)
496 #define PSKKEY_NAME (gnutls_cli_opt_strs+2523)
497 #define PSKKEY_name (gnutls_cli_opt_strs+2530)
498 #define PSKKEY_FLAGS (OPTST_DISABLED \
499 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
502 * port option description:
504 #define PORT_DESC (gnutls_cli_opt_strs+2537)
505 #define PORT_NAME (gnutls_cli_opt_strs+2571)
506 #define PORT_name (gnutls_cli_opt_strs+2576)
507 #define PORT_FLAGS (OPTST_DISABLED \
508 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
511 * insecure option description:
513 #define INSECURE_DESC (gnutls_cli_opt_strs+2581)
514 #define INSECURE_NAME (gnutls_cli_opt_strs+2642)
515 #define INSECURE_name (gnutls_cli_opt_strs+2651)
516 #define INSECURE_FLAGS (OPTST_DISABLED)
519 * benchmark-ciphers option description:
521 #define BENCHMARK_CIPHERS_DESC (gnutls_cli_opt_strs+2660)
522 #define BENCHMARK_CIPHERS_NAME (gnutls_cli_opt_strs+2689)
523 #define BENCHMARK_CIPHERS_name (gnutls_cli_opt_strs+2707)
524 #define BENCHMARK_CIPHERS_FLAGS (OPTST_DISABLED)
527 * benchmark-soft-ciphers option description:
529 #define BENCHMARK_SOFT_CIPHERS_DESC (gnutls_cli_opt_strs+2725)
530 #define BENCHMARK_SOFT_CIPHERS_NAME (gnutls_cli_opt_strs+2784)
531 #define BENCHMARK_SOFT_CIPHERS_name (gnutls_cli_opt_strs+2807)
532 #define BENCHMARK_SOFT_CIPHERS_FLAGS (OPTST_DISABLED)
535 * benchmark-tls-kx option description:
537 #define BENCHMARK_TLS_KX_DESC (gnutls_cli_opt_strs+2830)
538 #define BENCHMARK_TLS_KX_NAME (gnutls_cli_opt_strs+2865)
539 #define BENCHMARK_TLS_KX_name (gnutls_cli_opt_strs+2882)
540 #define BENCHMARK_TLS_KX_FLAGS (OPTST_DISABLED)
543 * benchmark-tls-ciphers option description:
545 #define BENCHMARK_TLS_CIPHERS_DESC (gnutls_cli_opt_strs+2899)
546 #define BENCHMARK_TLS_CIPHERS_NAME (gnutls_cli_opt_strs+2921)
547 #define BENCHMARK_TLS_CIPHERS_name (gnutls_cli_opt_strs+2943)
548 #define BENCHMARK_TLS_CIPHERS_FLAGS (OPTST_DISABLED)
551 * list option description:
553 #define LIST_DESC (gnutls_cli_opt_strs+2965)
554 #define LIST_NAME (gnutls_cli_opt_strs+3016)
555 #define LIST_name (gnutls_cli_opt_strs+3021)
556 #define LIST_FLAGS (OPTST_DISABLED)
559 * Help/More_Help/Version option descriptions:
561 #define HELP_DESC (gnutls_cli_opt_strs+3026)
562 #define HELP_name (gnutls_cli_opt_strs+3070)
563 #ifdef HAVE_WORKING_FORK
564 #define MORE_HELP_DESC (gnutls_cli_opt_strs+3075)
565 #define MORE_HELP_name (gnutls_cli_opt_strs+3120)
566 #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
567 #else
568 #define MORE_HELP_DESC NULL
569 #define MORE_HELP_name NULL
570 #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
571 #endif
572 #ifdef NO_OPTIONAL_OPT_ARGS
573 # define VER_FLAGS (OPTST_IMM | OPTST_NO_INIT)
574 #else
575 # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
576 OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
577 #endif
578 #define VER_DESC (gnutls_cli_opt_strs+3130)
579 #define VER_name (gnutls_cli_opt_strs+3166)
581 * Declare option callback procedures
583 extern tOptProc
584 optionBooleanVal, optionNestedVal, optionNumericVal,
585 optionPagedUsage, optionPrintVersion, optionResetOpt,
586 optionStackArg, optionTimeDate, optionTimeVal,
587 optionUnstackArg, optionVendorOption;
588 static tOptProc
589 doOptDebug, doOptMtu, doOptPgpcertfile, doOptPgpkeyfile,
590 doOptPgpkeyring, doOptRecordsize, doOptX509crlfile, doUsageOpt;
591 #define VER_PROC optionPrintVersion
593 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
595 * Define the gnutls-cli Option Descriptions.
596 * This is an array of OPTION_CT entries, one for each
597 * option that the gnutls-cli program responds to.
599 static tOptDesc optDesc[OPTION_CT] = {
600 { /* entry idx, value */ 0, VALUE_OPT_DEBUG,
601 /* equiv idx, value */ 0, VALUE_OPT_DEBUG,
602 /* equivalenced to */ NO_EQUIVALENT,
603 /* min, max, act ct */ 0, 1, 0,
604 /* opt state flags */ DEBUG_FLAGS, 0,
605 /* last opt argumnt */ { NULL }, /* --debug */
606 /* arg list/cookie */ NULL,
607 /* must/cannot opts */ NULL, NULL,
608 /* option proc */ doOptDebug,
609 /* desc, NAME, name */ DEBUG_DESC, DEBUG_NAME, DEBUG_name,
610 /* disablement strs */ NULL, NULL },
612 { /* entry idx, value */ 1, VALUE_OPT_VERBOSE,
613 /* equiv idx, value */ 1, VALUE_OPT_VERBOSE,
614 /* equivalenced to */ NO_EQUIVALENT,
615 /* min, max, act ct */ 0, NOLIMIT, 0,
616 /* opt state flags */ VERBOSE_FLAGS, 0,
617 /* last opt argumnt */ { NULL }, /* --verbose */
618 /* arg list/cookie */ NULL,
619 /* must/cannot opts */ NULL, NULL,
620 /* option proc */ NULL,
621 /* desc, NAME, name */ VERBOSE_DESC, VERBOSE_NAME, VERBOSE_name,
622 /* disablement strs */ NULL, NULL },
624 { /* entry idx, value */ 2, VALUE_OPT_TOFU,
625 /* equiv idx, value */ 2, VALUE_OPT_TOFU,
626 /* equivalenced to */ NO_EQUIVALENT,
627 /* min, max, act ct */ 0, 1, 0,
628 /* opt state flags */ TOFU_FLAGS, 0,
629 /* last opt argumnt */ { NULL }, /* --tofu */
630 /* arg list/cookie */ NULL,
631 /* must/cannot opts */ NULL, NULL,
632 /* option proc */ NULL,
633 /* desc, NAME, name */ TOFU_DESC, TOFU_NAME, TOFU_name,
634 /* disablement strs */ NOT_TOFU_name, NOT_TOFU_PFX },
636 { /* entry idx, value */ 3, VALUE_OPT_OCSP,
637 /* equiv idx, value */ 3, VALUE_OPT_OCSP,
638 /* equivalenced to */ NO_EQUIVALENT,
639 /* min, max, act ct */ 0, 1, 0,
640 /* opt state flags */ OCSP_FLAGS, 0,
641 /* last opt argumnt */ { NULL }, /* --ocsp */
642 /* arg list/cookie */ NULL,
643 /* must/cannot opts */ NULL, NULL,
644 /* option proc */ NULL,
645 /* desc, NAME, name */ OCSP_DESC, OCSP_NAME, OCSP_name,
646 /* disablement strs */ NOT_OCSP_name, NOT_OCSP_PFX },
648 { /* entry idx, value */ 4, VALUE_OPT_RESUME,
649 /* equiv idx, value */ 4, VALUE_OPT_RESUME,
650 /* equivalenced to */ NO_EQUIVALENT,
651 /* min, max, act ct */ 0, 1, 0,
652 /* opt state flags */ RESUME_FLAGS, 0,
653 /* last opt argumnt */ { NULL }, /* --resume */
654 /* arg list/cookie */ NULL,
655 /* must/cannot opts */ NULL, NULL,
656 /* option proc */ NULL,
657 /* desc, NAME, name */ RESUME_DESC, RESUME_NAME, RESUME_name,
658 /* disablement strs */ NULL, NULL },
660 { /* entry idx, value */ 5, VALUE_OPT_HEARTBEAT,
661 /* equiv idx, value */ 5, VALUE_OPT_HEARTBEAT,
662 /* equivalenced to */ NO_EQUIVALENT,
663 /* min, max, act ct */ 0, 1, 0,
664 /* opt state flags */ HEARTBEAT_FLAGS, 0,
665 /* last opt argumnt */ { NULL }, /* --heartbeat */
666 /* arg list/cookie */ NULL,
667 /* must/cannot opts */ NULL, NULL,
668 /* option proc */ NULL,
669 /* desc, NAME, name */ HEARTBEAT_DESC, HEARTBEAT_NAME, HEARTBEAT_name,
670 /* disablement strs */ NULL, NULL },
672 { /* entry idx, value */ 6, VALUE_OPT_REHANDSHAKE,
673 /* equiv idx, value */ 6, VALUE_OPT_REHANDSHAKE,
674 /* equivalenced to */ NO_EQUIVALENT,
675 /* min, max, act ct */ 0, 1, 0,
676 /* opt state flags */ REHANDSHAKE_FLAGS, 0,
677 /* last opt argumnt */ { NULL }, /* --rehandshake */
678 /* arg list/cookie */ NULL,
679 /* must/cannot opts */ NULL, NULL,
680 /* option proc */ NULL,
681 /* desc, NAME, name */ REHANDSHAKE_DESC, REHANDSHAKE_NAME, REHANDSHAKE_name,
682 /* disablement strs */ NULL, NULL },
684 { /* entry idx, value */ 7, VALUE_OPT_NOTICKET,
685 /* equiv idx, value */ 7, VALUE_OPT_NOTICKET,
686 /* equivalenced to */ NO_EQUIVALENT,
687 /* min, max, act ct */ 0, 1, 0,
688 /* opt state flags */ NOTICKET_FLAGS, 0,
689 /* last opt argumnt */ { NULL }, /* --noticket */
690 /* arg list/cookie */ NULL,
691 /* must/cannot opts */ NULL, NULL,
692 /* option proc */ NULL,
693 /* desc, NAME, name */ NOTICKET_DESC, NOTICKET_NAME, NOTICKET_name,
694 /* disablement strs */ NULL, NULL },
696 { /* entry idx, value */ 8, VALUE_OPT_OCSP_STATUS_REQUEST,
697 /* equiv idx, value */ 8, VALUE_OPT_OCSP_STATUS_REQUEST,
698 /* equivalenced to */ NO_EQUIVALENT,
699 /* min, max, act ct */ 0, 1, 0,
700 /* opt state flags */ OCSP_STATUS_REQUEST_FLAGS, 0,
701 /* last opt argumnt */ { NULL }, /* --ocsp-status-request */
702 /* arg list/cookie */ NULL,
703 /* must/cannot opts */ NULL, NULL,
704 /* option proc */ NULL,
705 /* desc, NAME, name */ OCSP_STATUS_REQUEST_DESC, OCSP_STATUS_REQUEST_NAME, OCSP_STATUS_REQUEST_name,
706 /* disablement strs */ NULL, NULL },
708 { /* entry idx, value */ 9, VALUE_OPT_STARTTLS,
709 /* equiv idx, value */ 9, VALUE_OPT_STARTTLS,
710 /* equivalenced to */ NO_EQUIVALENT,
711 /* min, max, act ct */ 0, 1, 0,
712 /* opt state flags */ STARTTLS_FLAGS, 0,
713 /* last opt argumnt */ { NULL }, /* --starttls */
714 /* arg list/cookie */ NULL,
715 /* must/cannot opts */ NULL, NULL,
716 /* option proc */ NULL,
717 /* desc, NAME, name */ STARTTLS_DESC, STARTTLS_NAME, STARTTLS_name,
718 /* disablement strs */ NULL, NULL },
720 { /* entry idx, value */ 10, VALUE_OPT_UDP,
721 /* equiv idx, value */ 10, VALUE_OPT_UDP,
722 /* equivalenced to */ NO_EQUIVALENT,
723 /* min, max, act ct */ 0, 1, 0,
724 /* opt state flags */ UDP_FLAGS, 0,
725 /* last opt argumnt */ { NULL }, /* --udp */
726 /* arg list/cookie */ NULL,
727 /* must/cannot opts */ NULL, NULL,
728 /* option proc */ NULL,
729 /* desc, NAME, name */ UDP_DESC, UDP_NAME, UDP_name,
730 /* disablement strs */ NULL, NULL },
732 { /* entry idx, value */ 11, VALUE_OPT_MTU,
733 /* equiv idx, value */ 11, VALUE_OPT_MTU,
734 /* equivalenced to */ NO_EQUIVALENT,
735 /* min, max, act ct */ 0, 1, 0,
736 /* opt state flags */ MTU_FLAGS, 0,
737 /* last opt argumnt */ { NULL }, /* --mtu */
738 /* arg list/cookie */ NULL,
739 /* must/cannot opts */ NULL, NULL,
740 /* option proc */ doOptMtu,
741 /* desc, NAME, name */ MTU_DESC, MTU_NAME, MTU_name,
742 /* disablement strs */ NULL, NULL },
744 { /* entry idx, value */ 12, VALUE_OPT_CRLF,
745 /* equiv idx, value */ 12, VALUE_OPT_CRLF,
746 /* equivalenced to */ NO_EQUIVALENT,
747 /* min, max, act ct */ 0, 1, 0,
748 /* opt state flags */ CRLF_FLAGS, 0,
749 /* last opt argumnt */ { NULL }, /* --crlf */
750 /* arg list/cookie */ NULL,
751 /* must/cannot opts */ NULL, NULL,
752 /* option proc */ NULL,
753 /* desc, NAME, name */ CRLF_DESC, CRLF_NAME, CRLF_name,
754 /* disablement strs */ NULL, NULL },
756 { /* entry idx, value */ 13, VALUE_OPT_X509FMTDER,
757 /* equiv idx, value */ 13, VALUE_OPT_X509FMTDER,
758 /* equivalenced to */ NO_EQUIVALENT,
759 /* min, max, act ct */ 0, 1, 0,
760 /* opt state flags */ X509FMTDER_FLAGS, 0,
761 /* last opt argumnt */ { NULL }, /* --x509fmtder */
762 /* arg list/cookie */ NULL,
763 /* must/cannot opts */ NULL, NULL,
764 /* option proc */ NULL,
765 /* desc, NAME, name */ X509FMTDER_DESC, X509FMTDER_NAME, X509FMTDER_name,
766 /* disablement strs */ NULL, NULL },
768 { /* entry idx, value */ 14, VALUE_OPT_FINGERPRINT,
769 /* equiv idx, value */ 14, VALUE_OPT_FINGERPRINT,
770 /* equivalenced to */ NO_EQUIVALENT,
771 /* min, max, act ct */ 0, 1, 0,
772 /* opt state flags */ FINGERPRINT_FLAGS, 0,
773 /* last opt argumnt */ { NULL }, /* --fingerprint */
774 /* arg list/cookie */ NULL,
775 /* must/cannot opts */ NULL, NULL,
776 /* option proc */ NULL,
777 /* desc, NAME, name */ FINGERPRINT_DESC, FINGERPRINT_NAME, FINGERPRINT_name,
778 /* disablement strs */ NULL, NULL },
780 { /* entry idx, value */ 15, VALUE_OPT_DISABLE_EXTENSIONS,
781 /* equiv idx, value */ 15, VALUE_OPT_DISABLE_EXTENSIONS,
782 /* equivalenced to */ NO_EQUIVALENT,
783 /* min, max, act ct */ 0, 1, 0,
784 /* opt state flags */ DISABLE_EXTENSIONS_FLAGS, 0,
785 /* last opt argumnt */ { NULL }, /* --disable-extensions */
786 /* arg list/cookie */ NULL,
787 /* must/cannot opts */ NULL, NULL,
788 /* option proc */ NULL,
789 /* desc, NAME, name */ DISABLE_EXTENSIONS_DESC, DISABLE_EXTENSIONS_NAME, DISABLE_EXTENSIONS_name,
790 /* disablement strs */ NULL, NULL },
792 { /* entry idx, value */ 16, VALUE_OPT_PRINT_CERT,
793 /* equiv idx, value */ 16, VALUE_OPT_PRINT_CERT,
794 /* equivalenced to */ NO_EQUIVALENT,
795 /* min, max, act ct */ 0, 1, 0,
796 /* opt state flags */ PRINT_CERT_FLAGS, 0,
797 /* last opt argumnt */ { NULL }, /* --print-cert */
798 /* arg list/cookie */ NULL,
799 /* must/cannot opts */ NULL, NULL,
800 /* option proc */ NULL,
801 /* desc, NAME, name */ PRINT_CERT_DESC, PRINT_CERT_NAME, PRINT_CERT_name,
802 /* disablement strs */ NULL, NULL },
804 { /* entry idx, value */ 17, VALUE_OPT_RECORDSIZE,
805 /* equiv idx, value */ 17, VALUE_OPT_RECORDSIZE,
806 /* equivalenced to */ NO_EQUIVALENT,
807 /* min, max, act ct */ 0, 1, 0,
808 /* opt state flags */ RECORDSIZE_FLAGS, 0,
809 /* last opt argumnt */ { NULL }, /* --recordsize */
810 /* arg list/cookie */ NULL,
811 /* must/cannot opts */ NULL, NULL,
812 /* option proc */ doOptRecordsize,
813 /* desc, NAME, name */ RECORDSIZE_DESC, RECORDSIZE_NAME, RECORDSIZE_name,
814 /* disablement strs */ NULL, NULL },
816 { /* entry idx, value */ 18, VALUE_OPT_DH_BITS,
817 /* equiv idx, value */ 18, VALUE_OPT_DH_BITS,
818 /* equivalenced to */ NO_EQUIVALENT,
819 /* min, max, act ct */ 0, 1, 0,
820 /* opt state flags */ DH_BITS_FLAGS, 0,
821 /* last opt argumnt */ { NULL }, /* --dh-bits */
822 /* arg list/cookie */ NULL,
823 /* must/cannot opts */ NULL, NULL,
824 /* option proc */ optionNumericVal,
825 /* desc, NAME, name */ DH_BITS_DESC, DH_BITS_NAME, DH_BITS_name,
826 /* disablement strs */ NULL, NULL },
828 { /* entry idx, value */ 19, VALUE_OPT_PRIORITY,
829 /* equiv idx, value */ 19, VALUE_OPT_PRIORITY,
830 /* equivalenced to */ NO_EQUIVALENT,
831 /* min, max, act ct */ 0, 1, 0,
832 /* opt state flags */ PRIORITY_FLAGS, 0,
833 /* last opt argumnt */ { NULL }, /* --priority */
834 /* arg list/cookie */ NULL,
835 /* must/cannot opts */ NULL, NULL,
836 /* option proc */ NULL,
837 /* desc, NAME, name */ PRIORITY_DESC, PRIORITY_NAME, PRIORITY_name,
838 /* disablement strs */ NULL, NULL },
840 { /* entry idx, value */ 20, VALUE_OPT_X509CAFILE,
841 /* equiv idx, value */ 20, VALUE_OPT_X509CAFILE,
842 /* equivalenced to */ NO_EQUIVALENT,
843 /* min, max, act ct */ 0, 1, 0,
844 /* opt state flags */ X509CAFILE_FLAGS, 0,
845 /* last opt argumnt */ { NULL }, /* --x509cafile */
846 /* arg list/cookie */ NULL,
847 /* must/cannot opts */ NULL, NULL,
848 /* option proc */ NULL,
849 /* desc, NAME, name */ X509CAFILE_DESC, X509CAFILE_NAME, X509CAFILE_name,
850 /* disablement strs */ NULL, NULL },
852 { /* entry idx, value */ 21, VALUE_OPT_X509CRLFILE,
853 /* equiv idx, value */ 21, VALUE_OPT_X509CRLFILE,
854 /* equivalenced to */ NO_EQUIVALENT,
855 /* min, max, act ct */ 0, 1, 0,
856 /* opt state flags */ X509CRLFILE_FLAGS, 0,
857 /* last opt argumnt */ { NULL }, /* --x509crlfile */
858 /* arg list/cookie */ NULL,
859 /* must/cannot opts */ NULL, NULL,
860 /* option proc */ doOptX509crlfile,
861 /* desc, NAME, name */ X509CRLFILE_DESC, X509CRLFILE_NAME, X509CRLFILE_name,
862 /* disablement strs */ NULL, NULL },
864 { /* entry idx, value */ 22, VALUE_OPT_PGPKEYFILE,
865 /* equiv idx, value */ 22, VALUE_OPT_PGPKEYFILE,
866 /* equivalenced to */ NO_EQUIVALENT,
867 /* min, max, act ct */ 0, 1, 0,
868 /* opt state flags */ PGPKEYFILE_FLAGS, 0,
869 /* last opt argumnt */ { NULL }, /* --pgpkeyfile */
870 /* arg list/cookie */ NULL,
871 /* must/cannot opts */ NULL, NULL,
872 /* option proc */ doOptPgpkeyfile,
873 /* desc, NAME, name */ PGPKEYFILE_DESC, PGPKEYFILE_NAME, PGPKEYFILE_name,
874 /* disablement strs */ NULL, NULL },
876 { /* entry idx, value */ 23, VALUE_OPT_PGPKEYRING,
877 /* equiv idx, value */ 23, VALUE_OPT_PGPKEYRING,
878 /* equivalenced to */ NO_EQUIVALENT,
879 /* min, max, act ct */ 0, 1, 0,
880 /* opt state flags */ PGPKEYRING_FLAGS, 0,
881 /* last opt argumnt */ { NULL }, /* --pgpkeyring */
882 /* arg list/cookie */ NULL,
883 /* must/cannot opts */ NULL, NULL,
884 /* option proc */ doOptPgpkeyring,
885 /* desc, NAME, name */ PGPKEYRING_DESC, PGPKEYRING_NAME, PGPKEYRING_name,
886 /* disablement strs */ NULL, NULL },
888 { /* entry idx, value */ 24, VALUE_OPT_PGPCERTFILE,
889 /* equiv idx, value */ 24, VALUE_OPT_PGPCERTFILE,
890 /* equivalenced to */ NO_EQUIVALENT,
891 /* min, max, act ct */ 0, 1, 0,
892 /* opt state flags */ PGPCERTFILE_FLAGS, 0,
893 /* last opt argumnt */ { NULL }, /* --pgpcertfile */
894 /* arg list/cookie */ NULL,
895 /* must/cannot opts */ NULL, NULL,
896 /* option proc */ doOptPgpcertfile,
897 /* desc, NAME, name */ PGPCERTFILE_DESC, PGPCERTFILE_NAME, PGPCERTFILE_name,
898 /* disablement strs */ NULL, NULL },
900 { /* entry idx, value */ 25, VALUE_OPT_X509KEYFILE,
901 /* equiv idx, value */ 25, VALUE_OPT_X509KEYFILE,
902 /* equivalenced to */ NO_EQUIVALENT,
903 /* min, max, act ct */ 0, 1, 0,
904 /* opt state flags */ X509KEYFILE_FLAGS, 0,
905 /* last opt argumnt */ { NULL }, /* --x509keyfile */
906 /* arg list/cookie */ NULL,
907 /* must/cannot opts */ NULL, NULL,
908 /* option proc */ NULL,
909 /* desc, NAME, name */ X509KEYFILE_DESC, X509KEYFILE_NAME, X509KEYFILE_name,
910 /* disablement strs */ NULL, NULL },
912 { /* entry idx, value */ 26, VALUE_OPT_X509CERTFILE,
913 /* equiv idx, value */ 26, VALUE_OPT_X509CERTFILE,
914 /* equivalenced to */ NO_EQUIVALENT,
915 /* min, max, act ct */ 0, 1, 0,
916 /* opt state flags */ X509CERTFILE_FLAGS, 0,
917 /* last opt argumnt */ { NULL }, /* --x509certfile */
918 /* arg list/cookie */ NULL,
919 /* must/cannot opts */ NULL, NULL,
920 /* option proc */ NULL,
921 /* desc, NAME, name */ X509CERTFILE_DESC, X509CERTFILE_NAME, X509CERTFILE_name,
922 /* disablement strs */ NULL, NULL },
924 { /* entry idx, value */ 27, VALUE_OPT_PGPSUBKEY,
925 /* equiv idx, value */ 27, VALUE_OPT_PGPSUBKEY,
926 /* equivalenced to */ NO_EQUIVALENT,
927 /* min, max, act ct */ 0, 1, 0,
928 /* opt state flags */ PGPSUBKEY_FLAGS, 0,
929 /* last opt argumnt */ { NULL }, /* --pgpsubkey */
930 /* arg list/cookie */ NULL,
931 /* must/cannot opts */ NULL, NULL,
932 /* option proc */ NULL,
933 /* desc, NAME, name */ PGPSUBKEY_DESC, PGPSUBKEY_NAME, PGPSUBKEY_name,
934 /* disablement strs */ NULL, NULL },
936 { /* entry idx, value */ 28, VALUE_OPT_SRPUSERNAME,
937 /* equiv idx, value */ 28, VALUE_OPT_SRPUSERNAME,
938 /* equivalenced to */ NO_EQUIVALENT,
939 /* min, max, act ct */ 0, 1, 0,
940 /* opt state flags */ SRPUSERNAME_FLAGS, 0,
941 /* last opt argumnt */ { NULL }, /* --srpusername */
942 /* arg list/cookie */ NULL,
943 /* must/cannot opts */ NULL, NULL,
944 /* option proc */ NULL,
945 /* desc, NAME, name */ SRPUSERNAME_DESC, SRPUSERNAME_NAME, SRPUSERNAME_name,
946 /* disablement strs */ NULL, NULL },
948 { /* entry idx, value */ 29, VALUE_OPT_SRPPASSWD,
949 /* equiv idx, value */ 29, VALUE_OPT_SRPPASSWD,
950 /* equivalenced to */ NO_EQUIVALENT,
951 /* min, max, act ct */ 0, 1, 0,
952 /* opt state flags */ SRPPASSWD_FLAGS, 0,
953 /* last opt argumnt */ { NULL }, /* --srppasswd */
954 /* arg list/cookie */ NULL,
955 /* must/cannot opts */ NULL, NULL,
956 /* option proc */ NULL,
957 /* desc, NAME, name */ SRPPASSWD_DESC, SRPPASSWD_NAME, SRPPASSWD_name,
958 /* disablement strs */ NULL, NULL },
960 { /* entry idx, value */ 30, VALUE_OPT_PSKUSERNAME,
961 /* equiv idx, value */ 30, VALUE_OPT_PSKUSERNAME,
962 /* equivalenced to */ NO_EQUIVALENT,
963 /* min, max, act ct */ 0, 1, 0,
964 /* opt state flags */ PSKUSERNAME_FLAGS, 0,
965 /* last opt argumnt */ { NULL }, /* --pskusername */
966 /* arg list/cookie */ NULL,
967 /* must/cannot opts */ NULL, NULL,
968 /* option proc */ NULL,
969 /* desc, NAME, name */ PSKUSERNAME_DESC, PSKUSERNAME_NAME, PSKUSERNAME_name,
970 /* disablement strs */ NULL, NULL },
972 { /* entry idx, value */ 31, VALUE_OPT_PSKKEY,
973 /* equiv idx, value */ 31, VALUE_OPT_PSKKEY,
974 /* equivalenced to */ NO_EQUIVALENT,
975 /* min, max, act ct */ 0, 1, 0,
976 /* opt state flags */ PSKKEY_FLAGS, 0,
977 /* last opt argumnt */ { NULL }, /* --pskkey */
978 /* arg list/cookie */ NULL,
979 /* must/cannot opts */ NULL, NULL,
980 /* option proc */ NULL,
981 /* desc, NAME, name */ PSKKEY_DESC, PSKKEY_NAME, PSKKEY_name,
982 /* disablement strs */ NULL, NULL },
984 { /* entry idx, value */ 32, VALUE_OPT_PORT,
985 /* equiv idx, value */ 32, VALUE_OPT_PORT,
986 /* equivalenced to */ NO_EQUIVALENT,
987 /* min, max, act ct */ 0, 1, 0,
988 /* opt state flags */ PORT_FLAGS, 0,
989 /* last opt argumnt */ { NULL }, /* --port */
990 /* arg list/cookie */ NULL,
991 /* must/cannot opts */ NULL, NULL,
992 /* option proc */ NULL,
993 /* desc, NAME, name */ PORT_DESC, PORT_NAME, PORT_name,
994 /* disablement strs */ NULL, NULL },
996 { /* entry idx, value */ 33, VALUE_OPT_INSECURE,
997 /* equiv idx, value */ 33, VALUE_OPT_INSECURE,
998 /* equivalenced to */ NO_EQUIVALENT,
999 /* min, max, act ct */ 0, 1, 0,
1000 /* opt state flags */ INSECURE_FLAGS, 0,
1001 /* last opt argumnt */ { NULL }, /* --insecure */
1002 /* arg list/cookie */ NULL,
1003 /* must/cannot opts */ NULL, NULL,
1004 /* option proc */ NULL,
1005 /* desc, NAME, name */ INSECURE_DESC, INSECURE_NAME, INSECURE_name,
1006 /* disablement strs */ NULL, NULL },
1008 { /* entry idx, value */ 34, VALUE_OPT_BENCHMARK_CIPHERS,
1009 /* equiv idx, value */ 34, VALUE_OPT_BENCHMARK_CIPHERS,
1010 /* equivalenced to */ NO_EQUIVALENT,
1011 /* min, max, act ct */ 0, 1, 0,
1012 /* opt state flags */ BENCHMARK_CIPHERS_FLAGS, 0,
1013 /* last opt argumnt */ { NULL }, /* --benchmark-ciphers */
1014 /* arg list/cookie */ NULL,
1015 /* must/cannot opts */ NULL, NULL,
1016 /* option proc */ NULL,
1017 /* desc, NAME, name */ BENCHMARK_CIPHERS_DESC, BENCHMARK_CIPHERS_NAME, BENCHMARK_CIPHERS_name,
1018 /* disablement strs */ NULL, NULL },
1020 { /* entry idx, value */ 35, VALUE_OPT_BENCHMARK_SOFT_CIPHERS,
1021 /* equiv idx, value */ 35, VALUE_OPT_BENCHMARK_SOFT_CIPHERS,
1022 /* equivalenced to */ NO_EQUIVALENT,
1023 /* min, max, act ct */ 0, 1, 0,
1024 /* opt state flags */ BENCHMARK_SOFT_CIPHERS_FLAGS, 0,
1025 /* last opt argumnt */ { NULL }, /* --benchmark-soft-ciphers */
1026 /* arg list/cookie */ NULL,
1027 /* must/cannot opts */ NULL, NULL,
1028 /* option proc */ NULL,
1029 /* desc, NAME, name */ BENCHMARK_SOFT_CIPHERS_DESC, BENCHMARK_SOFT_CIPHERS_NAME, BENCHMARK_SOFT_CIPHERS_name,
1030 /* disablement strs */ NULL, NULL },
1032 { /* entry idx, value */ 36, VALUE_OPT_BENCHMARK_TLS_KX,
1033 /* equiv idx, value */ 36, VALUE_OPT_BENCHMARK_TLS_KX,
1034 /* equivalenced to */ NO_EQUIVALENT,
1035 /* min, max, act ct */ 0, 1, 0,
1036 /* opt state flags */ BENCHMARK_TLS_KX_FLAGS, 0,
1037 /* last opt argumnt */ { NULL }, /* --benchmark-tls-kx */
1038 /* arg list/cookie */ NULL,
1039 /* must/cannot opts */ NULL, NULL,
1040 /* option proc */ NULL,
1041 /* desc, NAME, name */ BENCHMARK_TLS_KX_DESC, BENCHMARK_TLS_KX_NAME, BENCHMARK_TLS_KX_name,
1042 /* disablement strs */ NULL, NULL },
1044 { /* entry idx, value */ 37, VALUE_OPT_BENCHMARK_TLS_CIPHERS,
1045 /* equiv idx, value */ 37, VALUE_OPT_BENCHMARK_TLS_CIPHERS,
1046 /* equivalenced to */ NO_EQUIVALENT,
1047 /* min, max, act ct */ 0, 1, 0,
1048 /* opt state flags */ BENCHMARK_TLS_CIPHERS_FLAGS, 0,
1049 /* last opt argumnt */ { NULL }, /* --benchmark-tls-ciphers */
1050 /* arg list/cookie */ NULL,
1051 /* must/cannot opts */ NULL, NULL,
1052 /* option proc */ NULL,
1053 /* desc, NAME, name */ BENCHMARK_TLS_CIPHERS_DESC, BENCHMARK_TLS_CIPHERS_NAME, BENCHMARK_TLS_CIPHERS_name,
1054 /* disablement strs */ NULL, NULL },
1056 { /* entry idx, value */ 38, VALUE_OPT_LIST,
1057 /* equiv idx, value */ 38, VALUE_OPT_LIST,
1058 /* equivalenced to */ NO_EQUIVALENT,
1059 /* min, max, act ct */ 0, 1, 0,
1060 /* opt state flags */ LIST_FLAGS, 0,
1061 /* last opt argumnt */ { NULL }, /* --list */
1062 /* arg list/cookie */ NULL,
1063 /* must/cannot opts */ NULL, NULL,
1064 /* option proc */ NULL,
1065 /* desc, NAME, name */ LIST_DESC, LIST_NAME, LIST_name,
1066 /* disablement strs */ NULL, NULL },
1068 { /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
1069 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_VERSION,
1070 /* equivalenced to */ NO_EQUIVALENT,
1071 /* min, max, act ct */ 0, 1, 0,
1072 /* opt state flags */ VER_FLAGS, 0,
1073 /* last opt argumnt */ { NULL },
1074 /* arg list/cookie */ NULL,
1075 /* must/cannot opts */ NULL, NULL,
1076 /* option proc */ VER_PROC,
1077 /* desc, NAME, name */ VER_DESC, NULL, VER_name,
1078 /* disablement strs */ NULL, NULL },
1082 { /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
1083 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_HELP,
1084 /* equivalenced to */ NO_EQUIVALENT,
1085 /* min, max, act ct */ 0, 1, 0,
1086 /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, 0,
1087 /* last opt argumnt */ { NULL },
1088 /* arg list/cookie */ NULL,
1089 /* must/cannot opts */ NULL, NULL,
1090 /* option proc */ doUsageOpt,
1091 /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
1092 /* disablement strs */ NULL, NULL },
1094 { /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
1095 /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
1096 /* equivalenced to */ NO_EQUIVALENT,
1097 /* min, max, act ct */ 0, 1, 0,
1098 /* opt state flags */ MORE_HELP_FLAGS, 0,
1099 /* last opt argumnt */ { NULL },
1100 /* arg list/cookie */ NULL,
1101 /* must/cannot opts */ NULL, NULL,
1102 /* option proc */ optionPagedUsage,
1103 /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
1104 /* disablement strs */ NULL, NULL }
1108 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1110 * Define the gnutls-cli Option Environment
1112 #define zPROGNAME (gnutls_cli_opt_strs+3174)
1113 #define zUsageTitle (gnutls_cli_opt_strs+3185)
1114 #define zRcName NULL
1115 #define apzHomeList NULL
1116 #define zBugsAddr (gnutls_cli_opt_strs+3298)
1117 #define zExplain (gnutls_cli_opt_strs+3317)
1118 #define zDetail (gnutls_cli_opt_strs+3320)
1119 #define zFullVersion (gnutls_cli_opt_strs+3504)
1120 /* extracted from optcode.tlib near line 350 */
1122 #if defined(ENABLE_NLS)
1123 # define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
1124 static tOptionXlateProc translate_option_strings;
1125 #else
1126 # define OPTPROC_BASE OPTPROC_NONE
1127 # define translate_option_strings NULL
1128 #endif /* ENABLE_NLS */
1131 #define gnutls_cli_full_usage (NULL)
1133 #define gnutls_cli_short_usage (gnutls_cli_opt_strs+3525)
1135 #endif /* not defined __doxygen__ */
1138 * Create the static procedure(s) declared above.
1141 * The callout function that invokes the optionUsage function.
1143 * @param pOptions the AutoOpts option description structure
1144 * @param pOptDesc the descriptor for the "help" (usage) option.
1145 * @noreturn
1147 static void
1148 doUsageOpt(tOptions * pOptions, tOptDesc * pOptDesc)
1150 optionUsage(&gnutls_cliOptions, GNUTLS_CLI_EXIT_SUCCESS);
1151 /* NOTREACHED */
1152 (void)pOptDesc;
1153 (void)pOptions;
1156 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1158 * Code to handle the debug option.
1160 * @param pOptions the gnutls-cli options data structure
1161 * @param pOptDesc the option descriptor for this option.
1163 static void
1164 doOptDebug(tOptions* pOptions, tOptDesc* pOptDesc)
1166 static struct {long rmin, rmax;} const rng[1] = {
1167 { 0 , 9999 } };
1168 int ix;
1170 if (pOptions <= OPTPROC_EMIT_LIMIT)
1171 goto emit_ranges;
1172 optionNumericVal(pOptions, pOptDesc);
1174 for (ix = 0; ix < 1; ix++) {
1175 if (pOptDesc->optArg.argInt < rng[ix].rmin)
1176 continue; /* ranges need not be ordered. */
1177 if (pOptDesc->optArg.argInt == rng[ix].rmin)
1178 return;
1179 if (rng[ix].rmax == LONG_MIN)
1180 continue;
1181 if (pOptDesc->optArg.argInt <= rng[ix].rmax)
1182 return;
1185 option_usage_fp = stderr;
1187 emit_ranges:
1189 optionShowRange(pOptions, pOptDesc, (void *)rng, 1);
1192 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1194 * Code to handle the mtu option.
1196 * @param pOptions the gnutls-cli options data structure
1197 * @param pOptDesc the option descriptor for this option.
1199 static void
1200 doOptMtu(tOptions* pOptions, tOptDesc* pOptDesc)
1202 static struct {long rmin, rmax;} const rng[1] = {
1203 { 0, 17000 } };
1204 int ix;
1206 if (pOptions <= OPTPROC_EMIT_LIMIT)
1207 goto emit_ranges;
1208 optionNumericVal(pOptions, pOptDesc);
1210 for (ix = 0; ix < 1; ix++) {
1211 if (pOptDesc->optArg.argInt < rng[ix].rmin)
1212 continue; /* ranges need not be ordered. */
1213 if (pOptDesc->optArg.argInt == rng[ix].rmin)
1214 return;
1215 if (rng[ix].rmax == LONG_MIN)
1216 continue;
1217 if (pOptDesc->optArg.argInt <= rng[ix].rmax)
1218 return;
1221 option_usage_fp = stderr;
1223 emit_ranges:
1225 optionShowRange(pOptions, pOptDesc, (void *)rng, 1);
1228 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1230 * Code to handle the recordsize option.
1232 * @param pOptions the gnutls-cli options data structure
1233 * @param pOptDesc the option descriptor for this option.
1235 static void
1236 doOptRecordsize(tOptions* pOptions, tOptDesc* pOptDesc)
1238 static struct {long rmin, rmax;} const rng[1] = {
1239 { 0, 4096 } };
1240 int ix;
1242 if (pOptions <= OPTPROC_EMIT_LIMIT)
1243 goto emit_ranges;
1244 optionNumericVal(pOptions, pOptDesc);
1246 for (ix = 0; ix < 1; ix++) {
1247 if (pOptDesc->optArg.argInt < rng[ix].rmin)
1248 continue; /* ranges need not be ordered. */
1249 if (pOptDesc->optArg.argInt == rng[ix].rmin)
1250 return;
1251 if (rng[ix].rmax == LONG_MIN)
1252 continue;
1253 if (pOptDesc->optArg.argInt <= rng[ix].rmax)
1254 return;
1257 option_usage_fp = stderr;
1259 emit_ranges:
1261 optionShowRange(pOptions, pOptDesc, (void *)rng, 1);
1264 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1266 * Code to handle the x509crlfile option.
1268 * @param pOptions the gnutls-cli options data structure
1269 * @param pOptDesc the option descriptor for this option.
1271 static void
1272 doOptX509crlfile(tOptions* pOptions, tOptDesc* pOptDesc)
1274 static teOptFileType const type =
1275 FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
1276 static tuFileMode mode;
1277 #ifndef O_CLOEXEC
1278 # define O_CLOEXEC 0
1279 #endif
1280 mode.file_flags = O_CLOEXEC;
1282 optionFileCheck(pOptions, pOptDesc, type, mode);
1285 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1287 * Code to handle the pgpkeyfile option.
1289 * @param pOptions the gnutls-cli options data structure
1290 * @param pOptDesc the option descriptor for this option.
1292 static void
1293 doOptPgpkeyfile(tOptions* pOptions, tOptDesc* pOptDesc)
1295 static teOptFileType const type =
1296 FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
1297 static tuFileMode mode;
1298 #ifndef O_CLOEXEC
1299 # define O_CLOEXEC 0
1300 #endif
1301 mode.file_flags = O_CLOEXEC;
1303 optionFileCheck(pOptions, pOptDesc, type, mode);
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1308 * Code to handle the pgpkeyring option.
1310 * @param pOptions the gnutls-cli options data structure
1311 * @param pOptDesc the option descriptor for this option.
1313 static void
1314 doOptPgpkeyring(tOptions* pOptions, tOptDesc* pOptDesc)
1316 static teOptFileType const type =
1317 FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
1318 static tuFileMode mode;
1319 #ifndef O_CLOEXEC
1320 # define O_CLOEXEC 0
1321 #endif
1322 mode.file_flags = O_CLOEXEC;
1324 optionFileCheck(pOptions, pOptDesc, type, mode);
1327 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1329 * Code to handle the pgpcertfile option.
1331 * @param pOptions the gnutls-cli options data structure
1332 * @param pOptDesc the option descriptor for this option.
1334 static void
1335 doOptPgpcertfile(tOptions* pOptions, tOptDesc* pOptDesc)
1337 static teOptFileType const type =
1338 FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
1339 static tuFileMode mode;
1340 #ifndef O_CLOEXEC
1341 # define O_CLOEXEC 0
1342 #endif
1343 mode.file_flags = O_CLOEXEC;
1345 optionFileCheck(pOptions, pOptDesc, type, mode);
1347 /* extracted from optmain.tlib near line 1113 */
1350 * The directory containing the data associated with gnutls-cli.
1352 #ifndef PKGDATADIR
1353 # define PKGDATADIR ""
1354 #endif
1357 * Information about the person or institution that packaged gnutls-cli
1358 * for the current distribution.
1360 #ifndef WITH_PACKAGER
1361 # define gnutls_cli_packager_info NULL
1362 #else
1363 static char const gnutls_cli_packager_info[] =
1364 "Packaged by " WITH_PACKAGER
1366 # ifdef WITH_PACKAGER_VERSION
1367 " ("WITH_PACKAGER_VERSION")"
1368 # endif
1370 # ifdef WITH_PACKAGER_BUG_REPORTS
1371 "\nReport gnutls_cli bugs to " WITH_PACKAGER_BUG_REPORTS
1372 # endif
1373 "\n";
1374 #endif
1375 #ifndef __doxygen__
1377 #endif /* __doxygen__ */
1379 * The option definitions for gnutls-cli. The one structure that
1380 * binds them all.
1382 tOptions gnutls_cliOptions = {
1383 OPTIONS_STRUCT_VERSION,
1384 0, NULL, /* original argc + argv */
1385 ( OPTPROC_BASE
1386 + OPTPROC_ERRSTOP
1387 + OPTPROC_SHORTOPT
1388 + OPTPROC_LONGOPT
1389 + OPTPROC_NO_REQ_OPT
1390 + OPTPROC_NEGATIONS
1391 + OPTPROC_REORDER
1392 + OPTPROC_GNUUSAGE
1393 + OPTPROC_MISUSE ),
1394 0, NULL, /* current option index, current option */
1395 NULL, NULL, zPROGNAME,
1396 zRcName, zCopyright, zLicenseDescrip,
1397 zFullVersion, apzHomeList, zUsageTitle,
1398 zExplain, zDetail, optDesc,
1399 zBugsAddr, /* address to send bugs to */
1400 NULL, NULL, /* extensions/saved state */
1401 optionUsage, /* usage procedure */
1402 translate_option_strings, /* translation procedure */
1404 * Indexes to special options
1406 { INDEX_OPT_MORE_HELP, /* more-help option index */
1407 NO_EQUIVALENT, /* save option index */
1408 NO_EQUIVALENT, /* '-#' option index */
1409 NO_EQUIVALENT /* index of default opt */
1411 42 /* full option count */, 39 /* user option count */,
1412 gnutls_cli_full_usage, gnutls_cli_short_usage,
1413 NULL, NULL,
1414 PKGDATADIR, gnutls_cli_packager_info
1417 #if ENABLE_NLS
1418 #include <stdio.h>
1419 #include <stdlib.h>
1420 #include <string.h>
1421 #include <unistd.h>
1422 #include <autoopts/usage-txt.h>
1424 static char* AO_gettext(char const* pz);
1425 static void coerce_it(void** s);
1428 * AutoGen specific wrapper function for gettext.
1429 * It relies on the macro _() to convert from English to the target
1430 * language, then strdup-duplicates the result string.
1432 * @param[in] pz the input text used as a lookup key.
1433 * @returns the translated text (if there is one),
1434 * or the original text (if not).
1436 static char *
1437 AO_gettext(char const* pz)
1439 char* pzRes;
1440 if (pz == NULL)
1441 return NULL;
1442 pzRes = _(pz);
1443 if (pzRes == pz)
1444 return pzRes;
1445 pzRes = strdup(pzRes);
1446 if (pzRes == NULL) {
1447 fputs(_("No memory for duping translated strings\n"), stderr);
1448 exit(GNUTLS_CLI_EXIT_FAILURE);
1450 return pzRes;
1453 static void coerce_it(void** s) { *s = AO_gettext(*s);
1457 * Translate all the translatable strings in the gnutls_cliOptions
1458 * structure defined above. This is done only once.
1460 static void
1461 translate_option_strings(void)
1463 tOptions * const pOpt = &gnutls_cliOptions;
1466 * Guard against re-translation. It won't work. The strings will have
1467 * been changed by the first pass through this code. One shot only.
1469 if (option_usage_text.field_ct != 0) {
1471 * Do the translations. The first pointer follows the field count
1472 * field. The field count field is the size of a pointer.
1474 tOptDesc * pOD = pOpt->pOptDesc;
1475 char ** ppz = (char**)(void*)&(option_usage_text);
1476 int ix = option_usage_text.field_ct;
1478 do {
1479 ppz++;
1480 *ppz = AO_gettext(*ppz);
1481 } while (--ix > 0);
1483 coerce_it((void*)&(pOpt->pzCopyright));
1484 coerce_it((void*)&(pOpt->pzCopyNotice));
1485 coerce_it((void*)&(pOpt->pzFullVersion));
1486 coerce_it((void*)&(pOpt->pzUsageTitle));
1487 coerce_it((void*)&(pOpt->pzExplain));
1488 coerce_it((void*)&(pOpt->pzDetail));
1489 coerce_it((void*)&(pOpt->pzPackager));
1490 coerce_it((void*)&(pOpt->pzShortUsage));
1491 option_usage_text.field_ct = 0;
1493 for (ix = pOpt->optCt; ix > 0; ix--, pOD++)
1494 coerce_it((void*)&(pOD->pzText));
1497 if ((pOpt->fOptSet & OPTPROC_NXLAT_OPT_CFG) == 0) {
1498 tOptDesc * pOD = pOpt->pOptDesc;
1499 int ix;
1501 for (ix = pOpt->optCt; ix > 0; ix--, pOD++) {
1502 coerce_it((void*)&(pOD->pz_Name));
1503 coerce_it((void*)&(pOD->pz_DisableName));
1504 coerce_it((void*)&(pOD->pz_DisablePfx));
1506 /* prevent re-translation */
1507 gnutls_cliOptions.fOptSet |= OPTPROC_NXLAT_OPT_CFG | OPTPROC_NXLAT_OPT;
1511 #endif /* ENABLE_NLS */
1513 #ifdef __cplusplus
1515 #endif
1516 /* cli-args.c ends here */