/* -*- buffer-read-only: t -*- vi: set ro: * * DO NOT EDIT THIS FILE (cli-args.c) * * It has been AutoGen-ed * From the definitions cli-args.def * and the template file options * * Generated from AutoOpts 41:1:16 templates. * * AutoOpts is a copyrighted work. This source file is not encumbered * by AutoOpts licensing, but is provided under the licensing terms chosen * by the gnutls-cli author or copyright holder. AutoOpts is * licensed under the terms of the LGPL. The redistributable library * (``libopts'') is licensed under the terms of either the LGPL or, at the * users discretion, the BSD license. See the AutoOpts and/or libopts sources * for details. * * The gnutls-cli program is copyrighted and licensed * under the following terms: * * Copyright (C) 2000-@YEAR@ Free Software Foundation, and others, all rights reserved. * This is free software. It is licensed for use, modification and * redistribution under the terms of the GNU General Public License, * version 3 or later * * gnutls-cli is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * gnutls-cli is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef __doxygen__ #define OPTION_CODE_COMPILE 1 #include "cli-args.h" #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif extern FILE * option_usage_fp; #define zCopyright (gnutls_cli_opt_strs+0) #define zLicenseDescrip (gnutls_cli_opt_strs+291) #ifndef NULL # define NULL 0 #endif /** * static const strings for gnutls-cli options */ static char const gnutls_cli_opt_strs[4829] = /* 0 */ "gnutls-cli @VERSION@\n" "Copyright (C) 2000-@YEAR@ Free Software Foundation, and others, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the GNU General Public License,\n" "version 3 or later \n\0" /* 291 */ "gnutls-cli is free software: you can redistribute it and/or modify it under\n" "the terms of the GNU General Public License as published by the Free\n" "Software Foundation, either version 3 of the License, or (at your option)\n" "any later version.\n\n" "gnutls-cli is distributed in the hope that it will be useful, but WITHOUT\n" "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n" "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n" "more details.\n\n" "You should have received a copy of the GNU General Public License along\n" "with this program. If not, see .\n\0" /* 900 */ "Enable debugging\0" /* 917 */ "DEBUG\0" /* 923 */ "debug\0" /* 929 */ "More verbose output\0" /* 949 */ "VERBOSE\0" /* 957 */ "verbose\0" /* 965 */ "Enable trust on first use authentication\0" /* 1006 */ "TOFU\0" /* 1011 */ "no-tofu\0" /* 1019 */ "no\0" /* 1022 */ "Fail to connect if a known certificate has changed\0" /* 1073 */ "STRICT_TOFU\0" /* 1085 */ "no-strict-tofu\0" /* 1100 */ "Enable DANE certificate verification (DNSSEC)\0" /* 1146 */ "DANE\0" /* 1151 */ "no-dane\0" /* 1159 */ "Use the local DNS server for DNSSEC resolving\0" /* 1205 */ "LOCAL_DNS\0" /* 1215 */ "no-local-dns\0" /* 1228 */ "Enable CA certificate verification\0" /* 1263 */ "CA_VERIFICATION\0" /* 1279 */ "no-ca-verification\0" /* 1298 */ "Enable OCSP certificate verification\0" /* 1335 */ "OCSP\0" /* 1340 */ "no-ocsp\0" /* 1348 */ "Establish a session and resume\0" /* 1379 */ "RESUME\0" /* 1386 */ "resume\0" /* 1393 */ "Establish a session and rehandshake\0" /* 1429 */ "REHANDSHAKE\0" /* 1441 */ "rehandshake\0" /* 1453 */ "Server's hostname for server name indication extension\0" /* 1508 */ "SNI_HOSTNAME\0" /* 1521 */ "sni-hostname\0" /* 1534 */ "Connect, establish a plain session and start TLS\0" /* 1583 */ "STARTTLS\0" /* 1592 */ "starttls\0" /* 1601 */ "an alias for the 'starttls-proto' option\0" /* 1642 */ "app-proto\0" /* 1652 */ "The application protocol to be used to obtain the server's certificate\n" "(https, ftp, smtp, imap, ldap, xmpp, lmtp, pop3, nntp, sieve, postgres)\0" /* 1795 */ "STARTTLS_PROTO\0" /* 1810 */ "starttls-proto\0" /* 1825 */ "Use DTLS (datagram TLS) over UDP\0" /* 1858 */ "UDP\0" /* 1862 */ "udp\0" /* 1866 */ "Set MTU for datagram TLS\0" /* 1891 */ "MTU\0" /* 1895 */ "mtu\0" /* 1899 */ "Send CR LF instead of LF\0" /* 1924 */ "CRLF\0" /* 1929 */ "crlf\0" /* 1934 */ "Enable TCP Fast Open\0" /* 1955 */ "FASTOPEN\0" /* 1964 */ "fastopen\0" /* 1973 */ "Use DER format for certificates to read from\0" /* 2018 */ "X509FMTDER\0" /* 2029 */ "x509fmtder\0" /* 2040 */ "Print peer's certificate in PEM format\0" /* 2079 */ "PRINT_CERT\0" /* 2090 */ "print-cert\0" /* 2101 */ "Save the peer's certificate chain in the specified file in PEM format\0" /* 2171 */ "SAVE_CERT\0" /* 2181 */ "save-cert\0" /* 2191 */ "Save the peer's OCSP status response in the provided file\0" /* 2249 */ "SAVE_OCSP\0" /* 2259 */ "save-ocsp\0" /* 2269 */ "Save the server-side TLS message trace in the provided file\0" /* 2329 */ "SAVE_SERVER_TRACE\0" /* 2347 */ "save-server-trace\0" /* 2365 */ "Save the client-side TLS message trace in the provided file\0" /* 2425 */ "SAVE_CLIENT_TRACE\0" /* 2443 */ "save-client-trace\0" /* 2461 */ "The minimum number of bits allowed for DH\0" /* 2503 */ "DH_BITS\0" /* 2511 */ "dh-bits\0" /* 2519 */ "Priorities string\0" /* 2537 */ "PRIORITY\0" /* 2546 */ "priority\0" /* 2555 */ "Certificate file or PKCS #11 URL to use\0" /* 2595 */ "X509CAFILE\0" /* 2606 */ "x509cafile\0" /* 2617 */ "CRL file to use\0" /* 2633 */ "X509CRLFILE\0" /* 2645 */ "x509crlfile\0" /* 2657 */ "X.509 key file or PKCS #11 URL to use\0" /* 2695 */ "X509KEYFILE\0" /* 2707 */ "x509keyfile\0" /* 2719 */ "X.509 Certificate file or PKCS #11 URL to use\0" /* 2765 */ "X509CERTFILE\0" /* 2778 */ "x509certfile\0" /* 2791 */ "SRP username to use\0" /* 2811 */ "SRPUSERNAME\0" /* 2823 */ "srpusername\0" /* 2835 */ "SRP password to use\0" /* 2855 */ "SRPPASSWD\0" /* 2865 */ "srppasswd\0" /* 2875 */ "PSK username to use\0" /* 2895 */ "PSKUSERNAME\0" /* 2907 */ "pskusername\0" /* 2919 */ "PSK key (in hex) to use\0" /* 2943 */ "PSKKEY\0" /* 2950 */ "pskkey\0" /* 2957 */ "The port or service to connect to\0" /* 2991 */ "PORT\0" /* 2996 */ "port\0" /* 3001 */ "Don't abort program if server certificate can't be validated\0" /* 3062 */ "INSECURE\0" /* 3071 */ "insecure\0" /* 3080 */ "Allow broken algorithms, such as MD5 for certificate verification\0" /* 3146 */ "VERIFY_ALLOW_BROKEN\0" /* 3166 */ "verify-allow-broken\0" /* 3186 */ "Use length-hiding padding to prevent traffic analysis\0" /* 3240 */ "RANGES\0" /* 3247 */ "ranges\0" /* 3254 */ "Benchmark individual ciphers\0" /* 3283 */ "BENCHMARK_CIPHERS\0" /* 3301 */ "benchmark-ciphers\0" /* 3319 */ "Benchmark TLS key exchange methods\0" /* 3354 */ "BENCHMARK_TLS_KX\0" /* 3371 */ "benchmark-tls-kx\0" /* 3388 */ "Benchmark TLS ciphers\0" /* 3410 */ "BENCHMARK_TLS_CIPHERS\0" /* 3432 */ "benchmark-tls-ciphers\0" /* 3454 */ "Print a list of the supported algorithms and modes\0" /* 3505 */ "LIST\0" /* 3510 */ "list\0" /* 3515 */ "Print a list of the supported priority strings\0" /* 3562 */ "PRIORITY_LIST\0" /* 3576 */ "priority-list\0" /* 3590 */ "Don't allow session tickets\0" /* 3618 */ "NOTICKET\0" /* 3627 */ "noticket\0" /* 3636 */ "Offer SRTP profiles\0" /* 3656 */ "SRTP_PROFILES\0" /* 3670 */ "srtp-profiles\0" /* 3684 */ "Application layer protocol\0" /* 3711 */ "ALPN\0" /* 3716 */ "alpn\0" /* 3721 */ "Activate heartbeat support\0" /* 3748 */ "HEARTBEAT\0" /* 3758 */ "heartbeat\0" /* 3768 */ "The maximum record size to advertize\0" /* 3805 */ "RECORDSIZE\0" /* 3816 */ "recordsize\0" /* 3827 */ "Do not send a Server Name Indication (SNI)\0" /* 3870 */ "DISABLE_SNI\0" /* 3882 */ "disable-sni\0" /* 3894 */ "Disable all the TLS extensions\0" /* 3925 */ "DISABLE_EXTENSIONS\0" /* 3944 */ "disable-extensions\0" /* 3963 */ "Inline commands of the form ^^\0" /* 3999 */ "INLINE_COMMANDS\0" /* 4015 */ "inline-commands\0" /* 4031 */ "Change the default delimiter for inline commands.\0" /* 4081 */ "INLINE_COMMANDS_PREFIX\0" /* 4104 */ "inline-commands-prefix\0" /* 4127 */ "Specify the PKCS #11 provider library\0" /* 4165 */ "PROVIDER\0" /* 4174 */ "provider\0" /* 4183 */ "Reports the status of the FIPS140-2 mode in gnutls library\0" /* 4242 */ "FIPS140_MODE\0" /* 4255 */ "fips140-mode\0" /* 4268 */ "display extended usage information and exit\0" /* 4312 */ "help\0" /* 4317 */ "extended usage information passed thru pager\0" /* 4362 */ "more-help\0" /* 4372 */ "output version information and exit\0" /* 4408 */ "version\0" /* 4416 */ "GNUTLS_CLI\0" /* 4427 */ "gnutls-cli - GnuTLS client\n" "Usage: %s [ - [] | --[{=| }] ]... [hostname]\n\0" /* 4523 */ "@PACKAGE_BUGREPORT@\0" /* 4543 */ "\n\0" /* 4545 */ "Simple client program to set up a TLS connection to some other computer. It\n" "sets up a TLS connection and forwards data from the standard input to the\n" "secured socket and vice versa.\n\0" /* 4728 */ "gnutls-cli @VERSION@\0" /* 4749 */ "Usage: gnutls-cli [options] hostname\n" "gnutls-cli --help for usage instructions.\n"; /** * debug option description: */ /** Descriptive text for the debug option */ #define DEBUG_DESC (gnutls_cli_opt_strs+900) /** Upper-cased name for the debug option */ #define DEBUG_NAME (gnutls_cli_opt_strs+917) /** Name string for the debug option */ #define DEBUG_name (gnutls_cli_opt_strs+923) /** Compiled in flag settings for the debug option */ #define DEBUG_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) /** * verbose option description: */ /** Descriptive text for the verbose option */ #define VERBOSE_DESC (gnutls_cli_opt_strs+929) /** Upper-cased name for the verbose option */ #define VERBOSE_NAME (gnutls_cli_opt_strs+949) /** Name string for the verbose option */ #define VERBOSE_name (gnutls_cli_opt_strs+957) /** Compiled in flag settings for the verbose option */ #define VERBOSE_FLAGS (OPTST_DISABLED) /** * tofu option description: */ /** Descriptive text for the tofu option */ #define TOFU_DESC (gnutls_cli_opt_strs+965) /** Upper-cased name for the tofu option */ #define TOFU_NAME (gnutls_cli_opt_strs+1006) /** disablement name for the tofu option */ #define NOT_TOFU_name (gnutls_cli_opt_strs+1011) /** disablement prefix for the tofu option */ #define NOT_TOFU_PFX (gnutls_cli_opt_strs+1019) /** Name string for the tofu option */ #define TOFU_name (NOT_TOFU_name + 3) /** Compiled in flag settings for the tofu option */ #define TOFU_FLAGS (OPTST_DISABLED) /** * strict-tofu option description: */ /** Descriptive text for the strict-tofu option */ #define STRICT_TOFU_DESC (gnutls_cli_opt_strs+1022) /** Upper-cased name for the strict-tofu option */ #define STRICT_TOFU_NAME (gnutls_cli_opt_strs+1073) /** disablement name for the strict-tofu option */ #define NOT_STRICT_TOFU_name (gnutls_cli_opt_strs+1085) /** disablement prefix for the strict-tofu option */ #define NOT_STRICT_TOFU_PFX (gnutls_cli_opt_strs+1019) /** Name string for the strict-tofu option */ #define STRICT_TOFU_name (NOT_STRICT_TOFU_name + 3) /** Compiled in flag settings for the strict-tofu option */ #define STRICT_TOFU_FLAGS (OPTST_DISABLED) /** * dane option description: */ /** Descriptive text for the dane option */ #define DANE_DESC (gnutls_cli_opt_strs+1100) /** Upper-cased name for the dane option */ #define DANE_NAME (gnutls_cli_opt_strs+1146) /** disablement name for the dane option */ #define NOT_DANE_name (gnutls_cli_opt_strs+1151) /** disablement prefix for the dane option */ #define NOT_DANE_PFX (gnutls_cli_opt_strs+1019) /** Name string for the dane option */ #define DANE_name (NOT_DANE_name + 3) /** Compiled in flag settings for the dane option */ #define DANE_FLAGS (OPTST_DISABLED) /** * local-dns option description: */ /** Descriptive text for the local-dns option */ #define LOCAL_DNS_DESC (gnutls_cli_opt_strs+1159) /** Upper-cased name for the local-dns option */ #define LOCAL_DNS_NAME (gnutls_cli_opt_strs+1205) /** disablement name for the local-dns option */ #define NOT_LOCAL_DNS_name (gnutls_cli_opt_strs+1215) /** disablement prefix for the local-dns option */ #define NOT_LOCAL_DNS_PFX (gnutls_cli_opt_strs+1019) /** Name string for the local-dns option */ #define LOCAL_DNS_name (NOT_LOCAL_DNS_name + 3) /** Compiled in flag settings for the local-dns option */ #define LOCAL_DNS_FLAGS (OPTST_DISABLED) /** * ca-verification option description: */ /** Descriptive text for the ca-verification option */ #define CA_VERIFICATION_DESC (gnutls_cli_opt_strs+1228) /** Upper-cased name for the ca-verification option */ #define CA_VERIFICATION_NAME (gnutls_cli_opt_strs+1263) /** disablement name for the ca-verification option */ #define NOT_CA_VERIFICATION_name (gnutls_cli_opt_strs+1279) /** disablement prefix for the ca-verification option */ #define NOT_CA_VERIFICATION_PFX (gnutls_cli_opt_strs+1019) /** Name string for the ca-verification option */ #define CA_VERIFICATION_name (NOT_CA_VERIFICATION_name + 3) /** Compiled in flag settings for the ca-verification option */ #define CA_VERIFICATION_FLAGS (OPTST_INITENABLED) /** * ocsp option description: */ /** Descriptive text for the ocsp option */ #define OCSP_DESC (gnutls_cli_opt_strs+1298) /** Upper-cased name for the ocsp option */ #define OCSP_NAME (gnutls_cli_opt_strs+1335) /** disablement name for the ocsp option */ #define NOT_OCSP_name (gnutls_cli_opt_strs+1340) /** disablement prefix for the ocsp option */ #define NOT_OCSP_PFX (gnutls_cli_opt_strs+1019) /** Name string for the ocsp option */ #define OCSP_name (NOT_OCSP_name + 3) /** Compiled in flag settings for the ocsp option */ #define OCSP_FLAGS (OPTST_DISABLED) /** * resume option description: */ /** Descriptive text for the resume option */ #define RESUME_DESC (gnutls_cli_opt_strs+1348) /** Upper-cased name for the resume option */ #define RESUME_NAME (gnutls_cli_opt_strs+1379) /** Name string for the resume option */ #define RESUME_name (gnutls_cli_opt_strs+1386) /** Compiled in flag settings for the resume option */ #define RESUME_FLAGS (OPTST_DISABLED) /** * rehandshake option description: */ /** Descriptive text for the rehandshake option */ #define REHANDSHAKE_DESC (gnutls_cli_opt_strs+1393) /** Upper-cased name for the rehandshake option */ #define REHANDSHAKE_NAME (gnutls_cli_opt_strs+1429) /** Name string for the rehandshake option */ #define REHANDSHAKE_name (gnutls_cli_opt_strs+1441) /** Compiled in flag settings for the rehandshake option */ #define REHANDSHAKE_FLAGS (OPTST_DISABLED) /** * sni-hostname option description: */ /** Descriptive text for the sni-hostname option */ #define SNI_HOSTNAME_DESC (gnutls_cli_opt_strs+1453) /** Upper-cased name for the sni-hostname option */ #define SNI_HOSTNAME_NAME (gnutls_cli_opt_strs+1508) /** Name string for the sni-hostname option */ #define SNI_HOSTNAME_name (gnutls_cli_opt_strs+1521) /** Compiled in flag settings for the sni-hostname option */ #define SNI_HOSTNAME_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * starttls option description: */ /** Descriptive text for the starttls option */ #define STARTTLS_DESC (gnutls_cli_opt_strs+1534) /** Upper-cased name for the starttls option */ #define STARTTLS_NAME (gnutls_cli_opt_strs+1583) /** Name string for the starttls option */ #define STARTTLS_name (gnutls_cli_opt_strs+1592) /** Compiled in flag settings for the starttls option */ #define STARTTLS_FLAGS (OPTST_DISABLED) /** * app-proto option description: */ /** Descriptive text for the app-proto option */ #define APP_PROTO_DESC (gnutls_cli_opt_strs+1601) #define APP_PROTO_NAME NULL /** Unmodified name string for the app-proto option */ #define APP_PROTO_name (gnutls_cli_opt_strs+1642) /** Compiled in flag settings for the app-proto option */ #define APP_PROTO_FLAGS (STARTTLS_PROTO_FLAGS | OPTST_ALIAS) /** * starttls-proto option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the starttls-proto option */ #define STARTTLS_PROTO_DESC (gnutls_cli_opt_strs+1652) /** Upper-cased name for the starttls-proto option */ #define STARTTLS_PROTO_NAME (gnutls_cli_opt_strs+1795) /** Name string for the starttls-proto option */ #define STARTTLS_PROTO_name (gnutls_cli_opt_strs+1810) /** Other options that appear in conjunction with the starttls-proto option */ static int const aStarttls_ProtoCantList[] = { INDEX_OPT_STARTTLS, NO_EQUIVALENT }; /** Compiled in flag settings for the starttls-proto option */ #define STARTTLS_PROTO_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * udp option description: */ /** Descriptive text for the udp option */ #define UDP_DESC (gnutls_cli_opt_strs+1825) /** Upper-cased name for the udp option */ #define UDP_NAME (gnutls_cli_opt_strs+1858) /** Name string for the udp option */ #define UDP_name (gnutls_cli_opt_strs+1862) /** Compiled in flag settings for the udp option */ #define UDP_FLAGS (OPTST_DISABLED) /** * mtu option description: */ /** Descriptive text for the mtu option */ #define MTU_DESC (gnutls_cli_opt_strs+1866) /** Upper-cased name for the mtu option */ #define MTU_NAME (gnutls_cli_opt_strs+1891) /** Name string for the mtu option */ #define MTU_name (gnutls_cli_opt_strs+1895) /** Compiled in flag settings for the mtu option */ #define MTU_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) /** * crlf option description: */ /** Descriptive text for the crlf option */ #define CRLF_DESC (gnutls_cli_opt_strs+1899) /** Upper-cased name for the crlf option */ #define CRLF_NAME (gnutls_cli_opt_strs+1924) /** Name string for the crlf option */ #define CRLF_name (gnutls_cli_opt_strs+1929) /** Compiled in flag settings for the crlf option */ #define CRLF_FLAGS (OPTST_DISABLED) /** * fastopen option description: */ /** Descriptive text for the fastopen option */ #define FASTOPEN_DESC (gnutls_cli_opt_strs+1934) /** Upper-cased name for the fastopen option */ #define FASTOPEN_NAME (gnutls_cli_opt_strs+1955) /** Name string for the fastopen option */ #define FASTOPEN_name (gnutls_cli_opt_strs+1964) /** Compiled in flag settings for the fastopen option */ #define FASTOPEN_FLAGS (OPTST_DISABLED) /** * x509fmtder option description: */ /** Descriptive text for the x509fmtder option */ #define X509FMTDER_DESC (gnutls_cli_opt_strs+1973) /** Upper-cased name for the x509fmtder option */ #define X509FMTDER_NAME (gnutls_cli_opt_strs+2018) /** Name string for the x509fmtder option */ #define X509FMTDER_name (gnutls_cli_opt_strs+2029) /** Compiled in flag settings for the x509fmtder option */ #define X509FMTDER_FLAGS (OPTST_DISABLED) /** * print-cert option description: */ /** Descriptive text for the print-cert option */ #define PRINT_CERT_DESC (gnutls_cli_opt_strs+2040) /** Upper-cased name for the print-cert option */ #define PRINT_CERT_NAME (gnutls_cli_opt_strs+2079) /** Name string for the print-cert option */ #define PRINT_CERT_name (gnutls_cli_opt_strs+2090) /** Compiled in flag settings for the print-cert option */ #define PRINT_CERT_FLAGS (OPTST_DISABLED) /** * save-cert option description: */ /** Descriptive text for the save-cert option */ #define SAVE_CERT_DESC (gnutls_cli_opt_strs+2101) /** Upper-cased name for the save-cert option */ #define SAVE_CERT_NAME (gnutls_cli_opt_strs+2171) /** Name string for the save-cert option */ #define SAVE_CERT_name (gnutls_cli_opt_strs+2181) /** Compiled in flag settings for the save-cert option */ #define SAVE_CERT_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * save-ocsp option description: */ /** Descriptive text for the save-ocsp option */ #define SAVE_OCSP_DESC (gnutls_cli_opt_strs+2191) /** Upper-cased name for the save-ocsp option */ #define SAVE_OCSP_NAME (gnutls_cli_opt_strs+2249) /** Name string for the save-ocsp option */ #define SAVE_OCSP_name (gnutls_cli_opt_strs+2259) /** Compiled in flag settings for the save-ocsp option */ #define SAVE_OCSP_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * save-server-trace option description: */ /** Descriptive text for the save-server-trace option */ #define SAVE_SERVER_TRACE_DESC (gnutls_cli_opt_strs+2269) /** Upper-cased name for the save-server-trace option */ #define SAVE_SERVER_TRACE_NAME (gnutls_cli_opt_strs+2329) /** Name string for the save-server-trace option */ #define SAVE_SERVER_TRACE_name (gnutls_cli_opt_strs+2347) /** Compiled in flag settings for the save-server-trace option */ #define SAVE_SERVER_TRACE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * save-client-trace option description: */ /** Descriptive text for the save-client-trace option */ #define SAVE_CLIENT_TRACE_DESC (gnutls_cli_opt_strs+2365) /** Upper-cased name for the save-client-trace option */ #define SAVE_CLIENT_TRACE_NAME (gnutls_cli_opt_strs+2425) /** Name string for the save-client-trace option */ #define SAVE_CLIENT_TRACE_name (gnutls_cli_opt_strs+2443) /** Compiled in flag settings for the save-client-trace option */ #define SAVE_CLIENT_TRACE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * dh-bits option description: */ /** Descriptive text for the dh-bits option */ #define DH_BITS_DESC (gnutls_cli_opt_strs+2461) /** Upper-cased name for the dh-bits option */ #define DH_BITS_NAME (gnutls_cli_opt_strs+2503) /** Name string for the dh-bits option */ #define DH_BITS_name (gnutls_cli_opt_strs+2511) /** Compiled in flag settings for the dh-bits option */ #define DH_BITS_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) /** * priority option description: */ /** Descriptive text for the priority option */ #define PRIORITY_DESC (gnutls_cli_opt_strs+2519) /** Upper-cased name for the priority option */ #define PRIORITY_NAME (gnutls_cli_opt_strs+2537) /** Name string for the priority option */ #define PRIORITY_name (gnutls_cli_opt_strs+2546) /** Compiled in flag settings for the priority option */ #define PRIORITY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * x509cafile option description: */ /** Descriptive text for the x509cafile option */ #define X509CAFILE_DESC (gnutls_cli_opt_strs+2555) /** Upper-cased name for the x509cafile option */ #define X509CAFILE_NAME (gnutls_cli_opt_strs+2595) /** Name string for the x509cafile option */ #define X509CAFILE_name (gnutls_cli_opt_strs+2606) /** Compiled in flag settings for the x509cafile option */ #define X509CAFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * x509crlfile option description: */ /** Descriptive text for the x509crlfile option */ #define X509CRLFILE_DESC (gnutls_cli_opt_strs+2617) /** Upper-cased name for the x509crlfile option */ #define X509CRLFILE_NAME (gnutls_cli_opt_strs+2633) /** Name string for the x509crlfile option */ #define X509CRLFILE_name (gnutls_cli_opt_strs+2645) /** Compiled in flag settings for the x509crlfile option */ #define X509CRLFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE)) /** * x509keyfile option description: */ /** Descriptive text for the x509keyfile option */ #define X509KEYFILE_DESC (gnutls_cli_opt_strs+2657) /** Upper-cased name for the x509keyfile option */ #define X509KEYFILE_NAME (gnutls_cli_opt_strs+2695) /** Name string for the x509keyfile option */ #define X509KEYFILE_name (gnutls_cli_opt_strs+2707) /** Compiled in flag settings for the x509keyfile option */ #define X509KEYFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * x509certfile option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the x509certfile option */ #define X509CERTFILE_DESC (gnutls_cli_opt_strs+2719) /** Upper-cased name for the x509certfile option */ #define X509CERTFILE_NAME (gnutls_cli_opt_strs+2765) /** Name string for the x509certfile option */ #define X509CERTFILE_name (gnutls_cli_opt_strs+2778) /** Other options that are required by the x509certfile option */ static int const aX509certfileMustList[] = { INDEX_OPT_X509KEYFILE, NO_EQUIVALENT }; /** Compiled in flag settings for the x509certfile option */ #define X509CERTFILE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * srpusername option description: */ /** Descriptive text for the srpusername option */ #define SRPUSERNAME_DESC (gnutls_cli_opt_strs+2791) /** Upper-cased name for the srpusername option */ #define SRPUSERNAME_NAME (gnutls_cli_opt_strs+2811) /** Name string for the srpusername option */ #define SRPUSERNAME_name (gnutls_cli_opt_strs+2823) /** Compiled in flag settings for the srpusername option */ #define SRPUSERNAME_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * srppasswd option description: */ /** Descriptive text for the srppasswd option */ #define SRPPASSWD_DESC (gnutls_cli_opt_strs+2835) /** Upper-cased name for the srppasswd option */ #define SRPPASSWD_NAME (gnutls_cli_opt_strs+2855) /** Name string for the srppasswd option */ #define SRPPASSWD_name (gnutls_cli_opt_strs+2865) /** Compiled in flag settings for the srppasswd option */ #define SRPPASSWD_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * pskusername option description: */ /** Descriptive text for the pskusername option */ #define PSKUSERNAME_DESC (gnutls_cli_opt_strs+2875) /** Upper-cased name for the pskusername option */ #define PSKUSERNAME_NAME (gnutls_cli_opt_strs+2895) /** Name string for the pskusername option */ #define PSKUSERNAME_name (gnutls_cli_opt_strs+2907) /** Compiled in flag settings for the pskusername option */ #define PSKUSERNAME_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * pskkey option description: */ /** Descriptive text for the pskkey option */ #define PSKKEY_DESC (gnutls_cli_opt_strs+2919) /** Upper-cased name for the pskkey option */ #define PSKKEY_NAME (gnutls_cli_opt_strs+2943) /** Name string for the pskkey option */ #define PSKKEY_name (gnutls_cli_opt_strs+2950) /** Compiled in flag settings for the pskkey option */ #define PSKKEY_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * port option description: */ /** Descriptive text for the port option */ #define PORT_DESC (gnutls_cli_opt_strs+2957) /** Upper-cased name for the port option */ #define PORT_NAME (gnutls_cli_opt_strs+2991) /** Name string for the port option */ #define PORT_name (gnutls_cli_opt_strs+2996) /** Compiled in flag settings for the port option */ #define PORT_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * insecure option description: */ /** Descriptive text for the insecure option */ #define INSECURE_DESC (gnutls_cli_opt_strs+3001) /** Upper-cased name for the insecure option */ #define INSECURE_NAME (gnutls_cli_opt_strs+3062) /** Name string for the insecure option */ #define INSECURE_name (gnutls_cli_opt_strs+3071) /** Compiled in flag settings for the insecure option */ #define INSECURE_FLAGS (OPTST_DISABLED) /** * verify-allow-broken option description: */ /** Descriptive text for the verify-allow-broken option */ #define VERIFY_ALLOW_BROKEN_DESC (gnutls_cli_opt_strs+3080) /** Upper-cased name for the verify-allow-broken option */ #define VERIFY_ALLOW_BROKEN_NAME (gnutls_cli_opt_strs+3146) /** Name string for the verify-allow-broken option */ #define VERIFY_ALLOW_BROKEN_name (gnutls_cli_opt_strs+3166) /** Compiled in flag settings for the verify-allow-broken option */ #define VERIFY_ALLOW_BROKEN_FLAGS (OPTST_DISABLED) /** * ranges option description: */ /** Descriptive text for the ranges option */ #define RANGES_DESC (gnutls_cli_opt_strs+3186) /** Upper-cased name for the ranges option */ #define RANGES_NAME (gnutls_cli_opt_strs+3240) /** Name string for the ranges option */ #define RANGES_name (gnutls_cli_opt_strs+3247) /** Compiled in flag settings for the ranges option */ #define RANGES_FLAGS (OPTST_DISABLED) /** * benchmark-ciphers option description: */ /** Descriptive text for the benchmark-ciphers option */ #define BENCHMARK_CIPHERS_DESC (gnutls_cli_opt_strs+3254) /** Upper-cased name for the benchmark-ciphers option */ #define BENCHMARK_CIPHERS_NAME (gnutls_cli_opt_strs+3283) /** Name string for the benchmark-ciphers option */ #define BENCHMARK_CIPHERS_name (gnutls_cli_opt_strs+3301) /** Compiled in flag settings for the benchmark-ciphers option */ #define BENCHMARK_CIPHERS_FLAGS (OPTST_DISABLED) /** * benchmark-tls-kx option description: */ /** Descriptive text for the benchmark-tls-kx option */ #define BENCHMARK_TLS_KX_DESC (gnutls_cli_opt_strs+3319) /** Upper-cased name for the benchmark-tls-kx option */ #define BENCHMARK_TLS_KX_NAME (gnutls_cli_opt_strs+3354) /** Name string for the benchmark-tls-kx option */ #define BENCHMARK_TLS_KX_name (gnutls_cli_opt_strs+3371) /** Compiled in flag settings for the benchmark-tls-kx option */ #define BENCHMARK_TLS_KX_FLAGS (OPTST_DISABLED) /** * benchmark-tls-ciphers option description: */ /** Descriptive text for the benchmark-tls-ciphers option */ #define BENCHMARK_TLS_CIPHERS_DESC (gnutls_cli_opt_strs+3388) /** Upper-cased name for the benchmark-tls-ciphers option */ #define BENCHMARK_TLS_CIPHERS_NAME (gnutls_cli_opt_strs+3410) /** Name string for the benchmark-tls-ciphers option */ #define BENCHMARK_TLS_CIPHERS_name (gnutls_cli_opt_strs+3432) /** Compiled in flag settings for the benchmark-tls-ciphers option */ #define BENCHMARK_TLS_CIPHERS_FLAGS (OPTST_DISABLED) /** * list option description with * "Must also have options" and "Incompatible options": */ /** Descriptive text for the list option */ #define LIST_DESC (gnutls_cli_opt_strs+3454) /** Upper-cased name for the list option */ #define LIST_NAME (gnutls_cli_opt_strs+3505) /** Name string for the list option */ #define LIST_name (gnutls_cli_opt_strs+3510) /** Other options that appear in conjunction with the list option */ static int const aListCantList[] = { INDEX_OPT_PORT, NO_EQUIVALENT }; /** Compiled in flag settings for the list option */ #define LIST_FLAGS (OPTST_DISABLED) /** * priority-list option description: */ /** Descriptive text for the priority-list option */ #define PRIORITY_LIST_DESC (gnutls_cli_opt_strs+3515) /** Upper-cased name for the priority-list option */ #define PRIORITY_LIST_NAME (gnutls_cli_opt_strs+3562) /** Name string for the priority-list option */ #define PRIORITY_LIST_name (gnutls_cli_opt_strs+3576) /** Compiled in flag settings for the priority-list option */ #define PRIORITY_LIST_FLAGS (OPTST_DISABLED) /** * noticket option description: */ /** Descriptive text for the noticket option */ #define NOTICKET_DESC (gnutls_cli_opt_strs+3590) /** Upper-cased name for the noticket option */ #define NOTICKET_NAME (gnutls_cli_opt_strs+3618) /** Name string for the noticket option */ #define NOTICKET_name (gnutls_cli_opt_strs+3627) /** Compiled in flag settings for the noticket option */ #define NOTICKET_FLAGS (OPTST_DISABLED) /** * srtp_profiles option description: */ /** Descriptive text for the srtp_profiles option */ #define SRTP_PROFILES_DESC (gnutls_cli_opt_strs+3636) /** Upper-cased name for the srtp_profiles option */ #define SRTP_PROFILES_NAME (gnutls_cli_opt_strs+3656) /** Name string for the srtp_profiles option */ #define SRTP_PROFILES_name (gnutls_cli_opt_strs+3670) /** Compiled in flag settings for the srtp_profiles option */ #define SRTP_PROFILES_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * alpn option description: */ /** Descriptive text for the alpn option */ #define ALPN_DESC (gnutls_cli_opt_strs+3684) /** Upper-cased name for the alpn option */ #define ALPN_NAME (gnutls_cli_opt_strs+3711) /** Name string for the alpn option */ #define ALPN_name (gnutls_cli_opt_strs+3716) /** Compiled in flag settings for the alpn option */ #define ALPN_FLAGS (OPTST_DISABLED | OPTST_STACKED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * heartbeat option description: */ /** Descriptive text for the heartbeat option */ #define HEARTBEAT_DESC (gnutls_cli_opt_strs+3721) /** Upper-cased name for the heartbeat option */ #define HEARTBEAT_NAME (gnutls_cli_opt_strs+3748) /** Name string for the heartbeat option */ #define HEARTBEAT_name (gnutls_cli_opt_strs+3758) /** Compiled in flag settings for the heartbeat option */ #define HEARTBEAT_FLAGS (OPTST_DISABLED) /** * recordsize option description: */ /** Descriptive text for the recordsize option */ #define RECORDSIZE_DESC (gnutls_cli_opt_strs+3768) /** Upper-cased name for the recordsize option */ #define RECORDSIZE_NAME (gnutls_cli_opt_strs+3805) /** Name string for the recordsize option */ #define RECORDSIZE_name (gnutls_cli_opt_strs+3816) /** Compiled in flag settings for the recordsize option */ #define RECORDSIZE_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC)) /** * disable-sni option description: */ /** Descriptive text for the disable-sni option */ #define DISABLE_SNI_DESC (gnutls_cli_opt_strs+3827) /** Upper-cased name for the disable-sni option */ #define DISABLE_SNI_NAME (gnutls_cli_opt_strs+3870) /** Name string for the disable-sni option */ #define DISABLE_SNI_name (gnutls_cli_opt_strs+3882) /** Compiled in flag settings for the disable-sni option */ #define DISABLE_SNI_FLAGS (OPTST_DISABLED) /** * disable-extensions option description: */ /** Descriptive text for the disable-extensions option */ #define DISABLE_EXTENSIONS_DESC (gnutls_cli_opt_strs+3894) /** Upper-cased name for the disable-extensions option */ #define DISABLE_EXTENSIONS_NAME (gnutls_cli_opt_strs+3925) /** Name string for the disable-extensions option */ #define DISABLE_EXTENSIONS_name (gnutls_cli_opt_strs+3944) /** Compiled in flag settings for the disable-extensions option */ #define DISABLE_EXTENSIONS_FLAGS (OPTST_DISABLED) /** * inline-commands option description: */ /** Descriptive text for the inline-commands option */ #define INLINE_COMMANDS_DESC (gnutls_cli_opt_strs+3963) /** Upper-cased name for the inline-commands option */ #define INLINE_COMMANDS_NAME (gnutls_cli_opt_strs+3999) /** Name string for the inline-commands option */ #define INLINE_COMMANDS_name (gnutls_cli_opt_strs+4015) /** Compiled in flag settings for the inline-commands option */ #define INLINE_COMMANDS_FLAGS (OPTST_DISABLED) /** * inline-commands-prefix option description: */ /** Descriptive text for the inline-commands-prefix option */ #define INLINE_COMMANDS_PREFIX_DESC (gnutls_cli_opt_strs+4031) /** Upper-cased name for the inline-commands-prefix option */ #define INLINE_COMMANDS_PREFIX_NAME (gnutls_cli_opt_strs+4081) /** Name string for the inline-commands-prefix option */ #define INLINE_COMMANDS_PREFIX_name (gnutls_cli_opt_strs+4104) /** Compiled in flag settings for the inline-commands-prefix option */ #define INLINE_COMMANDS_PREFIX_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)) /** * provider option description: */ /** Descriptive text for the provider option */ #define PROVIDER_DESC (gnutls_cli_opt_strs+4127) /** Upper-cased name for the provider option */ #define PROVIDER_NAME (gnutls_cli_opt_strs+4165) /** Name string for the provider option */ #define PROVIDER_name (gnutls_cli_opt_strs+4174) /** Compiled in flag settings for the provider option */ #define PROVIDER_FLAGS (OPTST_DISABLED \ | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE)) /** * fips140-mode option description: */ /** Descriptive text for the fips140-mode option */ #define FIPS140_MODE_DESC (gnutls_cli_opt_strs+4183) /** Upper-cased name for the fips140-mode option */ #define FIPS140_MODE_NAME (gnutls_cli_opt_strs+4242) /** Name string for the fips140-mode option */ #define FIPS140_MODE_name (gnutls_cli_opt_strs+4255) /** Compiled in flag settings for the fips140-mode option */ #define FIPS140_MODE_FLAGS (OPTST_DISABLED) /* * Help/More_Help/Version option descriptions: */ #define HELP_DESC (gnutls_cli_opt_strs+4268) #define HELP_name (gnutls_cli_opt_strs+4312) #ifdef HAVE_WORKING_FORK #define MORE_HELP_DESC (gnutls_cli_opt_strs+4317) #define MORE_HELP_name (gnutls_cli_opt_strs+4362) #define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else #define MORE_HELP_DESC HELP_DESC #define MORE_HELP_name HELP_name #define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #endif #ifdef NO_OPTIONAL_OPT_ARGS # define VER_FLAGS (OPTST_IMM | OPTST_NO_INIT) #else # define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \ OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT) #endif #define VER_DESC (gnutls_cli_opt_strs+4372) #define VER_name (gnutls_cli_opt_strs+4408) /** * Declare option callback procedures */ extern tOptProc optionBooleanVal, optionNestedVal, optionNumericVal, optionPagedUsage, optionPrintVersion, optionResetOpt, optionStackArg, optionTimeDate, optionTimeVal, optionUnstackArg, optionVendorOption; static tOptProc doOptApp_Proto, doOptDebug, doOptMtu, doOptProvider, doOptRecordsize, doOptX509crlfile, doUsageOpt; #define VER_PROC optionPrintVersion /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Define the gnutls-cli Option Descriptions. * This is an array of OPTION_CT entries, one for each * option that the gnutls-cli program responds to. */ static tOptDesc optDesc[OPTION_CT] = { { /* entry idx, value */ 0, VALUE_OPT_DEBUG, /* equiv idx, value */ 0, VALUE_OPT_DEBUG, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ DEBUG_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --debug */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptDebug, /* desc, NAME, name */ DEBUG_DESC, DEBUG_NAME, DEBUG_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 1, VALUE_OPT_VERBOSE, /* equiv idx, value */ 1, VALUE_OPT_VERBOSE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, NOLIMIT, 0, /* opt state flags */ VERBOSE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --verbose */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ VERBOSE_DESC, VERBOSE_NAME, VERBOSE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 2, VALUE_OPT_TOFU, /* equiv idx, value */ 2, VALUE_OPT_TOFU, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ TOFU_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --tofu */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ TOFU_DESC, TOFU_NAME, TOFU_name, /* disablement strs */ NOT_TOFU_name, NOT_TOFU_PFX }, { /* entry idx, value */ 3, VALUE_OPT_STRICT_TOFU, /* equiv idx, value */ 3, VALUE_OPT_STRICT_TOFU, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ STRICT_TOFU_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --strict-tofu */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ STRICT_TOFU_DESC, STRICT_TOFU_NAME, STRICT_TOFU_name, /* disablement strs */ NOT_STRICT_TOFU_name, NOT_STRICT_TOFU_PFX }, { /* entry idx, value */ 4, VALUE_OPT_DANE, /* equiv idx, value */ 4, VALUE_OPT_DANE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ DANE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --dane */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ DANE_DESC, DANE_NAME, DANE_name, /* disablement strs */ NOT_DANE_name, NOT_DANE_PFX }, { /* entry idx, value */ 5, VALUE_OPT_LOCAL_DNS, /* equiv idx, value */ 5, VALUE_OPT_LOCAL_DNS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ LOCAL_DNS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --local-dns */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ LOCAL_DNS_DESC, LOCAL_DNS_NAME, LOCAL_DNS_name, /* disablement strs */ NOT_LOCAL_DNS_name, NOT_LOCAL_DNS_PFX }, { /* entry idx, value */ 6, VALUE_OPT_CA_VERIFICATION, /* equiv idx, value */ 6, VALUE_OPT_CA_VERIFICATION, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ CA_VERIFICATION_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --ca-verification */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ CA_VERIFICATION_DESC, CA_VERIFICATION_NAME, CA_VERIFICATION_name, /* disablement strs */ NOT_CA_VERIFICATION_name, NOT_CA_VERIFICATION_PFX }, { /* entry idx, value */ 7, VALUE_OPT_OCSP, /* equiv idx, value */ 7, VALUE_OPT_OCSP, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ OCSP_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --ocsp */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ OCSP_DESC, OCSP_NAME, OCSP_name, /* disablement strs */ NOT_OCSP_name, NOT_OCSP_PFX }, { /* entry idx, value */ 8, VALUE_OPT_RESUME, /* equiv idx, value */ 8, VALUE_OPT_RESUME, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ RESUME_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --resume */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ RESUME_DESC, RESUME_NAME, RESUME_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 9, VALUE_OPT_REHANDSHAKE, /* equiv idx, value */ 9, VALUE_OPT_REHANDSHAKE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ REHANDSHAKE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --rehandshake */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ REHANDSHAKE_DESC, REHANDSHAKE_NAME, REHANDSHAKE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 10, VALUE_OPT_SNI_HOSTNAME, /* equiv idx, value */ 10, VALUE_OPT_SNI_HOSTNAME, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SNI_HOSTNAME_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --sni-hostname */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SNI_HOSTNAME_DESC, SNI_HOSTNAME_NAME, SNI_HOSTNAME_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 11, VALUE_OPT_STARTTLS, /* equiv idx, value */ 11, VALUE_OPT_STARTTLS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ STARTTLS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --starttls */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ STARTTLS_DESC, STARTTLS_NAME, STARTTLS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 12, VALUE_OPT_APP_PROTO, /* equiv idx, value */ 12, VALUE_OPT_APP_PROTO, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ APP_PROTO_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --app-proto */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptApp_Proto, /* desc, NAME, name */ APP_PROTO_DESC, APP_PROTO_NAME, APP_PROTO_name, /* disablement strs */ 0, 0 }, { /* entry idx, value */ 13, VALUE_OPT_STARTTLS_PROTO, /* equiv idx, value */ 13, VALUE_OPT_STARTTLS_PROTO, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ STARTTLS_PROTO_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --starttls-proto */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, aStarttls_ProtoCantList, /* option proc */ NULL, /* desc, NAME, name */ STARTTLS_PROTO_DESC, STARTTLS_PROTO_NAME, STARTTLS_PROTO_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 14, VALUE_OPT_UDP, /* equiv idx, value */ 14, VALUE_OPT_UDP, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ UDP_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --udp */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ UDP_DESC, UDP_NAME, UDP_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 15, VALUE_OPT_MTU, /* equiv idx, value */ 15, VALUE_OPT_MTU, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ MTU_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --mtu */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptMtu, /* desc, NAME, name */ MTU_DESC, MTU_NAME, MTU_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 16, VALUE_OPT_CRLF, /* equiv idx, value */ 16, VALUE_OPT_CRLF, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ CRLF_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --crlf */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ CRLF_DESC, CRLF_NAME, CRLF_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 17, VALUE_OPT_FASTOPEN, /* equiv idx, value */ 17, VALUE_OPT_FASTOPEN, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ FASTOPEN_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --fastopen */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ FASTOPEN_DESC, FASTOPEN_NAME, FASTOPEN_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 18, VALUE_OPT_X509FMTDER, /* equiv idx, value */ 18, VALUE_OPT_X509FMTDER, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ X509FMTDER_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --x509fmtder */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ X509FMTDER_DESC, X509FMTDER_NAME, X509FMTDER_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 19, VALUE_OPT_PRINT_CERT, /* equiv idx, value */ 19, VALUE_OPT_PRINT_CERT, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PRINT_CERT_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --print-cert */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PRINT_CERT_DESC, PRINT_CERT_NAME, PRINT_CERT_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 20, VALUE_OPT_SAVE_CERT, /* equiv idx, value */ 20, VALUE_OPT_SAVE_CERT, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SAVE_CERT_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --save-cert */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SAVE_CERT_DESC, SAVE_CERT_NAME, SAVE_CERT_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 21, VALUE_OPT_SAVE_OCSP, /* equiv idx, value */ 21, VALUE_OPT_SAVE_OCSP, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SAVE_OCSP_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --save-ocsp */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SAVE_OCSP_DESC, SAVE_OCSP_NAME, SAVE_OCSP_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 22, VALUE_OPT_SAVE_SERVER_TRACE, /* equiv idx, value */ 22, VALUE_OPT_SAVE_SERVER_TRACE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SAVE_SERVER_TRACE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --save-server-trace */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SAVE_SERVER_TRACE_DESC, SAVE_SERVER_TRACE_NAME, SAVE_SERVER_TRACE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 23, VALUE_OPT_SAVE_CLIENT_TRACE, /* equiv idx, value */ 23, VALUE_OPT_SAVE_CLIENT_TRACE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SAVE_CLIENT_TRACE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --save-client-trace */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SAVE_CLIENT_TRACE_DESC, SAVE_CLIENT_TRACE_NAME, SAVE_CLIENT_TRACE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 24, VALUE_OPT_DH_BITS, /* equiv idx, value */ 24, VALUE_OPT_DH_BITS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ DH_BITS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --dh-bits */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ optionNumericVal, /* desc, NAME, name */ DH_BITS_DESC, DH_BITS_NAME, DH_BITS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 25, VALUE_OPT_PRIORITY, /* equiv idx, value */ 25, VALUE_OPT_PRIORITY, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PRIORITY_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --priority */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PRIORITY_DESC, PRIORITY_NAME, PRIORITY_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 26, VALUE_OPT_X509CAFILE, /* equiv idx, value */ 26, VALUE_OPT_X509CAFILE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ X509CAFILE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --x509cafile */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ X509CAFILE_DESC, X509CAFILE_NAME, X509CAFILE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 27, VALUE_OPT_X509CRLFILE, /* equiv idx, value */ 27, VALUE_OPT_X509CRLFILE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ X509CRLFILE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --x509crlfile */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptX509crlfile, /* desc, NAME, name */ X509CRLFILE_DESC, X509CRLFILE_NAME, X509CRLFILE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 28, VALUE_OPT_X509KEYFILE, /* equiv idx, value */ 28, VALUE_OPT_X509KEYFILE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ X509KEYFILE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --x509keyfile */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ X509KEYFILE_DESC, X509KEYFILE_NAME, X509KEYFILE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 29, VALUE_OPT_X509CERTFILE, /* equiv idx, value */ 29, VALUE_OPT_X509CERTFILE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ X509CERTFILE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --x509certfile */ /* arg list/cookie */ NULL, /* must/cannot opts */ aX509certfileMustList, NULL, /* option proc */ NULL, /* desc, NAME, name */ X509CERTFILE_DESC, X509CERTFILE_NAME, X509CERTFILE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 30, VALUE_OPT_SRPUSERNAME, /* equiv idx, value */ 30, VALUE_OPT_SRPUSERNAME, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SRPUSERNAME_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --srpusername */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SRPUSERNAME_DESC, SRPUSERNAME_NAME, SRPUSERNAME_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 31, VALUE_OPT_SRPPASSWD, /* equiv idx, value */ 31, VALUE_OPT_SRPPASSWD, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SRPPASSWD_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --srppasswd */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SRPPASSWD_DESC, SRPPASSWD_NAME, SRPPASSWD_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 32, VALUE_OPT_PSKUSERNAME, /* equiv idx, value */ 32, VALUE_OPT_PSKUSERNAME, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PSKUSERNAME_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --pskusername */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PSKUSERNAME_DESC, PSKUSERNAME_NAME, PSKUSERNAME_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 33, VALUE_OPT_PSKKEY, /* equiv idx, value */ 33, VALUE_OPT_PSKKEY, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PSKKEY_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --pskkey */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PSKKEY_DESC, PSKKEY_NAME, PSKKEY_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 34, VALUE_OPT_PORT, /* equiv idx, value */ 34, VALUE_OPT_PORT, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PORT_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --port */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PORT_DESC, PORT_NAME, PORT_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 35, VALUE_OPT_INSECURE, /* equiv idx, value */ 35, VALUE_OPT_INSECURE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ INSECURE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --insecure */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ INSECURE_DESC, INSECURE_NAME, INSECURE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 36, VALUE_OPT_VERIFY_ALLOW_BROKEN, /* equiv idx, value */ 36, VALUE_OPT_VERIFY_ALLOW_BROKEN, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ VERIFY_ALLOW_BROKEN_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --verify-allow-broken */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ VERIFY_ALLOW_BROKEN_DESC, VERIFY_ALLOW_BROKEN_NAME, VERIFY_ALLOW_BROKEN_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 37, VALUE_OPT_RANGES, /* equiv idx, value */ 37, VALUE_OPT_RANGES, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ RANGES_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --ranges */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ RANGES_DESC, RANGES_NAME, RANGES_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 38, VALUE_OPT_BENCHMARK_CIPHERS, /* equiv idx, value */ 38, VALUE_OPT_BENCHMARK_CIPHERS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ BENCHMARK_CIPHERS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --benchmark-ciphers */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ BENCHMARK_CIPHERS_DESC, BENCHMARK_CIPHERS_NAME, BENCHMARK_CIPHERS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 39, VALUE_OPT_BENCHMARK_TLS_KX, /* equiv idx, value */ 39, VALUE_OPT_BENCHMARK_TLS_KX, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ BENCHMARK_TLS_KX_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --benchmark-tls-kx */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ BENCHMARK_TLS_KX_DESC, BENCHMARK_TLS_KX_NAME, BENCHMARK_TLS_KX_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 40, VALUE_OPT_BENCHMARK_TLS_CIPHERS, /* equiv idx, value */ 40, VALUE_OPT_BENCHMARK_TLS_CIPHERS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ BENCHMARK_TLS_CIPHERS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --benchmark-tls-ciphers */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ BENCHMARK_TLS_CIPHERS_DESC, BENCHMARK_TLS_CIPHERS_NAME, BENCHMARK_TLS_CIPHERS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 41, VALUE_OPT_LIST, /* equiv idx, value */ 41, VALUE_OPT_LIST, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ LIST_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --list */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, aListCantList, /* option proc */ NULL, /* desc, NAME, name */ LIST_DESC, LIST_NAME, LIST_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 42, VALUE_OPT_PRIORITY_LIST, /* equiv idx, value */ 42, VALUE_OPT_PRIORITY_LIST, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PRIORITY_LIST_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --priority-list */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ PRIORITY_LIST_DESC, PRIORITY_LIST_NAME, PRIORITY_LIST_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 43, VALUE_OPT_NOTICKET, /* equiv idx, value */ 43, VALUE_OPT_NOTICKET, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ NOTICKET_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --noticket */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ NOTICKET_DESC, NOTICKET_NAME, NOTICKET_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 44, VALUE_OPT_SRTP_PROFILES, /* equiv idx, value */ 44, VALUE_OPT_SRTP_PROFILES, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ SRTP_PROFILES_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --srtp_profiles */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ SRTP_PROFILES_DESC, SRTP_PROFILES_NAME, SRTP_PROFILES_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 45, VALUE_OPT_ALPN, /* equiv idx, value */ 45, VALUE_OPT_ALPN, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, NOLIMIT, 0, /* opt state flags */ ALPN_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --alpn */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ optionStackArg, /* desc, NAME, name */ ALPN_DESC, ALPN_NAME, ALPN_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 46, VALUE_OPT_HEARTBEAT, /* equiv idx, value */ 46, VALUE_OPT_HEARTBEAT, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ HEARTBEAT_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --heartbeat */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ HEARTBEAT_DESC, HEARTBEAT_NAME, HEARTBEAT_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 47, VALUE_OPT_RECORDSIZE, /* equiv idx, value */ 47, VALUE_OPT_RECORDSIZE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ RECORDSIZE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --recordsize */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptRecordsize, /* desc, NAME, name */ RECORDSIZE_DESC, RECORDSIZE_NAME, RECORDSIZE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 48, VALUE_OPT_DISABLE_SNI, /* equiv idx, value */ 48, VALUE_OPT_DISABLE_SNI, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ DISABLE_SNI_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --disable-sni */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ DISABLE_SNI_DESC, DISABLE_SNI_NAME, DISABLE_SNI_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 49, VALUE_OPT_DISABLE_EXTENSIONS, /* equiv idx, value */ 49, VALUE_OPT_DISABLE_EXTENSIONS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ DISABLE_EXTENSIONS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --disable-extensions */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ DISABLE_EXTENSIONS_DESC, DISABLE_EXTENSIONS_NAME, DISABLE_EXTENSIONS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 50, VALUE_OPT_INLINE_COMMANDS, /* equiv idx, value */ 50, VALUE_OPT_INLINE_COMMANDS, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ INLINE_COMMANDS_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --inline-commands */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ INLINE_COMMANDS_DESC, INLINE_COMMANDS_NAME, INLINE_COMMANDS_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 51, VALUE_OPT_INLINE_COMMANDS_PREFIX, /* equiv idx, value */ 51, VALUE_OPT_INLINE_COMMANDS_PREFIX, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ INLINE_COMMANDS_PREFIX_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --inline-commands-prefix */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ INLINE_COMMANDS_PREFIX_DESC, INLINE_COMMANDS_PREFIX_NAME, INLINE_COMMANDS_PREFIX_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 52, VALUE_OPT_PROVIDER, /* equiv idx, value */ 52, VALUE_OPT_PROVIDER, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ PROVIDER_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --provider */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doOptProvider, /* desc, NAME, name */ PROVIDER_DESC, PROVIDER_NAME, PROVIDER_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 53, VALUE_OPT_FIPS140_MODE, /* equiv idx, value */ 53, VALUE_OPT_FIPS140_MODE, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ FIPS140_MODE_FLAGS, 0, /* last opt argumnt */ { NULL }, /* --fips140-mode */ /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ NULL, /* desc, NAME, name */ FIPS140_MODE_DESC, FIPS140_MODE_NAME, FIPS140_MODE_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION, /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_VERSION, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ VER_FLAGS, AOUSE_VERSION, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ VER_PROC, /* desc, NAME, name */ VER_DESC, NULL, VER_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP, /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_HELP, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ doUsageOpt, /* desc, NAME, name */ HELP_DESC, NULL, HELP_name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP, /* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ MORE_HELP_FLAGS, AOUSE_MORE_HELP, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, /* must/cannot opts */ NULL, NULL, /* option proc */ optionPagedUsage, /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name, /* disablement strs */ NULL, NULL } }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** Reference to the upper cased version of gnutls-cli. */ #define zPROGNAME (gnutls_cli_opt_strs+4416) /** Reference to the title line for gnutls-cli usage. */ #define zUsageTitle (gnutls_cli_opt_strs+4427) /** There is no gnutls-cli configuration file. */ #define zRcName NULL /** There are no directories to search for gnutls-cli config files. */ #define apzHomeList NULL /** The gnutls-cli program bug email address. */ #define zBugsAddr (gnutls_cli_opt_strs+4523) /** Clarification/explanation of what gnutls-cli does. */ #define zExplain (gnutls_cli_opt_strs+4543) /** Extra detail explaining what gnutls-cli does. */ #define zDetail (gnutls_cli_opt_strs+4545) /** The full version string for gnutls-cli. */ #define zFullVersion (gnutls_cli_opt_strs+4728) /* extracted from optcode.tlib near line 364 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT static tOptionXlateProc translate_option_strings; #else # define OPTPROC_BASE OPTPROC_NONE # define translate_option_strings NULL #endif /* ENABLE_NLS */ #define gnutls_cli_full_usage (NULL) #define gnutls_cli_short_usage (gnutls_cli_opt_strs+4749) #endif /* not defined __doxygen__ */ /* * Create the static procedure(s) declared above. */ /** * The callout function that invokes the optionUsage function. * * @param[in] opts the AutoOpts option description structure * @param[in] od the descriptor for the "help" (usage) option. * @noreturn */ static void doUsageOpt(tOptions * opts, tOptDesc * od) { int ex_code; ex_code = GNUTLS_CLI_EXIT_SUCCESS; optionUsage(&gnutls_cliOptions, ex_code); /* NOTREACHED */ exit(GNUTLS_CLI_EXIT_FAILURE); (void)opts; (void)od; } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the debug option. * Specifies the debug level. * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptDebug(tOptions* pOptions, tOptDesc* pOptDesc) { static struct {long rmin, rmax;} const rng[1] = { { 0 , 9999 } }; int ix; if (pOptions <= OPTPROC_EMIT_LIMIT) goto emit_ranges; optionNumericVal(pOptions, pOptDesc); for (ix = 0; ix < 1; ix++) { if (pOptDesc->optArg.argInt < rng[ix].rmin) continue; /* ranges need not be ordered. */ if (pOptDesc->optArg.argInt == rng[ix].rmin) return; if (rng[ix].rmax == LONG_MIN) continue; if (pOptDesc->optArg.argInt <= rng[ix].rmax) return; } option_usage_fp = stderr; emit_ranges: optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the app-proto option. * * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptApp_Proto(tOptions* pOptions, tOptDesc* pOptDesc) { int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_STARTTLS_PROTO); if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0)) USAGE(GNUTLS_CLI_EXIT_USAGE_ERROR); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the mtu option. * * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptMtu(tOptions* pOptions, tOptDesc* pOptDesc) { static struct {long rmin, rmax;} const rng[1] = { { 0, 17000 } }; int ix; if (pOptions <= OPTPROC_EMIT_LIMIT) goto emit_ranges; optionNumericVal(pOptions, pOptDesc); for (ix = 0; ix < 1; ix++) { if (pOptDesc->optArg.argInt < rng[ix].rmin) continue; /* ranges need not be ordered. */ if (pOptDesc->optArg.argInt == rng[ix].rmin) return; if (rng[ix].rmax == LONG_MIN) continue; if (pOptDesc->optArg.argInt <= rng[ix].rmax) return; } option_usage_fp = stderr; emit_ranges: optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the x509crlfile option. * * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptX509crlfile(tOptions* pOptions, tOptDesc* pOptDesc) { static teOptFileType const type = FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN; static tuFileMode mode; #ifndef O_CLOEXEC # define O_CLOEXEC 0 #endif mode.file_flags = O_CLOEXEC; /* * This function handles special invalid values for "pOptions" */ optionFileCheck(pOptions, pOptDesc, type, mode); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the recordsize option. * * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptRecordsize(tOptions* pOptions, tOptDesc* pOptDesc) { static struct {long rmin, rmax;} const rng[1] = { { 0, 4096 } }; int ix; if (pOptions <= OPTPROC_EMIT_LIMIT) goto emit_ranges; optionNumericVal(pOptions, pOptDesc); for (ix = 0; ix < 1; ix++) { if (pOptDesc->optArg.argInt < rng[ix].rmin) continue; /* ranges need not be ordered. */ if (pOptDesc->optArg.argInt == rng[ix].rmin) return; if (rng[ix].rmax == LONG_MIN) continue; if (pOptDesc->optArg.argInt <= rng[ix].rmax) return; } option_usage_fp = stderr; emit_ranges: optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1); } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** * Code to handle the provider option. * This will override the default options in /etc/gnutls/pkcs11.conf * @param[in] pOptions the gnutls-cli options data structure * @param[in,out] pOptDesc the option descriptor for this option. */ static void doOptProvider(tOptions* pOptions, tOptDesc* pOptDesc) { static teOptFileType const type = FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN; static tuFileMode mode; #ifndef O_CLOEXEC # define O_CLOEXEC 0 #endif mode.file_flags = O_CLOEXEC; /* * This function handles special invalid values for "pOptions" */ optionFileCheck(pOptions, pOptDesc, type, mode); } /* extracted from optmain.tlib near line 1250 */ /** * The directory containing the data associated with gnutls-cli. */ #ifndef PKGDATADIR # define PKGDATADIR "" #endif /** * Information about the person or institution that packaged gnutls-cli * for the current distribution. */ #ifndef WITH_PACKAGER # define gnutls_cli_packager_info NULL #else /** Packager information for gnutls-cli. */ static char const gnutls_cli_packager_info[] = "Packaged by " WITH_PACKAGER # ifdef WITH_PACKAGER_VERSION " ("WITH_PACKAGER_VERSION")" # endif # ifdef WITH_PACKAGER_BUG_REPORTS "\nReport gnutls_cli bugs to " WITH_PACKAGER_BUG_REPORTS # endif "\n"; #endif #ifndef __doxygen__ #endif /* __doxygen__ */ /** * The option definitions for gnutls-cli. The one structure that * binds them all. */ tOptions gnutls_cliOptions = { OPTIONS_STRUCT_VERSION, 0, NULL, /* original argc + argv */ ( OPTPROC_BASE + OPTPROC_ERRSTOP + OPTPROC_SHORTOPT + OPTPROC_LONGOPT + OPTPROC_NO_REQ_OPT + OPTPROC_NEGATIONS + OPTPROC_REORDER + OPTPROC_GNUUSAGE + OPTPROC_MISUSE ), 0, NULL, /* current option index, current option */ NULL, NULL, zPROGNAME, zRcName, zCopyright, zLicenseDescrip, zFullVersion, apzHomeList, zUsageTitle, zExplain, zDetail, optDesc, zBugsAddr, /* address to send bugs to */ NULL, NULL, /* extensions/saved state */ optionUsage, /* usage procedure */ translate_option_strings, /* translation procedure */ /* * Indexes to special options */ { INDEX_OPT_MORE_HELP, /* more-help option index */ NO_EQUIVALENT, /* save option index */ NO_EQUIVALENT, /* '-#' option index */ NO_EQUIVALENT /* index of default opt */ }, 57 /* full option count */, 54 /* user option count */, gnutls_cli_full_usage, gnutls_cli_short_usage, NULL, NULL, PKGDATADIR, gnutls_cli_packager_info }; #if ENABLE_NLS /** * This code is designed to translate translatable option text for the * gnutls-cli program. These translations happen upon entry * to optionProcess(). */ #include #include #include #include #ifdef HAVE_DCGETTEXT # include #endif #include static char * AO_gettext(char const * pz); static void coerce_it(void ** s); /** * AutoGen specific wrapper function for gettext. It relies on the macro _() * to convert from English to the target language, then strdup-duplicates the * result string. It tries the "libopts" domain first, then whatever has been * set via the \a textdomain(3) call. * * @param[in] pz the input text used as a lookup key. * @returns the translated text (if there is one), * or the original text (if not). */ static char * AO_gettext(char const * pz) { char * res; if (pz == NULL) return NULL; #ifdef HAVE_DCGETTEXT /* * While processing the option_xlateable_txt data, try to use the * "libopts" domain. Once we switch to the option descriptor data, * do *not* use that domain. */ if (option_xlateable_txt.field_ct != 0) { res = dgettext("libopts", pz); if (res == pz) res = (char *)VOIDP(_(pz)); } else res = (char *)VOIDP(_(pz)); #else res = (char *)VOIDP(_(pz)); #endif if (res == pz) return res; res = strdup(res); if (res == NULL) { fputs(_("No memory for duping translated strings\n"), stderr); exit(GNUTLS_CLI_EXIT_FAILURE); } return res; } /** * All the pointers we use are marked "* const", but they are stored in * writable memory. Coerce the mutability and set the pointer. */ static void coerce_it(void ** s) { *s = AO_gettext(*s); } /** * Translate all the translatable strings in the gnutls_cliOptions * structure defined above. This is done only once. */ static void translate_option_strings(void) { tOptions * const opts = &gnutls_cliOptions; /* * Guard against re-translation. It won't work. The strings will have * been changed by the first pass through this code. One shot only. */ if (option_xlateable_txt.field_ct != 0) { /* * Do the translations. The first pointer follows the field count * field. The field count field is the size of a pointer. */ char ** ppz = (char**)VOIDP(&(option_xlateable_txt)); int ix = option_xlateable_txt.field_ct; do { ppz++; /* skip over field_ct */ *ppz = AO_gettext(*ppz); } while (--ix > 0); /* prevent re-translation and disable "libopts" domain lookup */ option_xlateable_txt.field_ct = 0; coerce_it(VOIDP(&(opts->pzCopyright))); coerce_it(VOIDP(&(opts->pzCopyNotice))); coerce_it(VOIDP(&(opts->pzFullVersion))); coerce_it(VOIDP(&(opts->pzUsageTitle))); coerce_it(VOIDP(&(opts->pzExplain))); coerce_it(VOIDP(&(opts->pzDetail))); { tOptDesc * od = opts->pOptDesc; for (ix = opts->optCt; ix > 0; ix--, od++) coerce_it(VOIDP(&(od->pzText))); } } } #endif /* ENABLE_NLS */ #ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT /** I18N function strictly for xgettext. Do not compile. */ static void bogus_function(void) { /* TRANSLATORS: The following dummy function was crated solely so that xgettext can extract the correct strings. These strings are actually referenced by a field name in the gnutls_cliOptions structure noted in the comments below. The literal text is defined in gnutls_cli_opt_strs. NOTE: the strings below are segmented with respect to the source string gnutls_cli_opt_strs. The strings above are handed off for translation at run time a paragraph at a time. Consequently, they are presented here for translation a paragraph at a time. ALSO: often the description for an option will reference another option by name. These are set off with apostrophe quotes (I hope). Do not translate option names. */ /* referenced via gnutls_cliOptions.pzCopyright */ puts(_("gnutls-cli @VERSION@\n\ Copyright (C) 2000-@YEAR@ Free Software Foundation, and others, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the GNU General Public License,\n\ version 3 or later \n")); /* referenced via gnutls_cliOptions.pzCopyNotice */ puts(_("gnutls-cli is free software: you can redistribute it and/or modify it under\n\ the terms of the GNU General Public License as published by the Free\n\ Software Foundation, either version 3 of the License, or (at your option)\n\ any later version.\n\n")); puts(_("gnutls-cli is distributed in the hope that it will be useful, but WITHOUT\n\ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n\ more details.\n\n")); puts(_("You should have received a copy of the GNU General Public License along\n\ with this program. If not, see .\n")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable debugging")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("More verbose output")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable trust on first use authentication")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Fail to connect if a known certificate has changed")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable DANE certificate verification (DNSSEC)")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Use the local DNS server for DNSSEC resolving")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable CA certificate verification")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable OCSP certificate verification")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Establish a session and resume")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Establish a session and rehandshake")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Server's hostname for server name indication extension")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Connect, establish a plain session and start TLS")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("an alias for the 'starttls-proto' option")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("The application protocol to be used to obtain the server's certificate\n\ (https, ftp, smtp, imap, ldap, xmpp, lmtp, pop3, nntp, sieve, postgres)")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Use DTLS (datagram TLS) over UDP")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Set MTU for datagram TLS")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Send CR LF instead of LF")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Enable TCP Fast Open")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Use DER format for certificates to read from")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Print peer's certificate in PEM format")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Save the peer's certificate chain in the specified file in PEM format")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Save the peer's OCSP status response in the provided file")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Save the server-side TLS message trace in the provided file")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Save the client-side TLS message trace in the provided file")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("The minimum number of bits allowed for DH")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Priorities string")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Certificate file or PKCS #11 URL to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("CRL file to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("X.509 key file or PKCS #11 URL to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("X.509 Certificate file or PKCS #11 URL to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("SRP username to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("SRP password to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("PSK username to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("PSK key (in hex) to use")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("The port or service to connect to")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Don't abort program if server certificate can't be validated")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Allow broken algorithms, such as MD5 for certificate verification")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Use length-hiding padding to prevent traffic analysis")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Benchmark individual ciphers")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Benchmark TLS key exchange methods")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Benchmark TLS ciphers")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Print a list of the supported algorithms and modes")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Print a list of the supported priority strings")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Don't allow session tickets")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Offer SRTP profiles")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Application layer protocol")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Activate heartbeat support")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("The maximum record size to advertize")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Do not send a Server Name Indication (SNI)")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Disable all the TLS extensions")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Inline commands of the form ^^")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Change the default delimiter for inline commands.")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Specify the PKCS #11 provider library")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("Reports the status of the FIPS140-2 mode in gnutls library")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("display extended usage information and exit")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("extended usage information passed thru pager")); /* referenced via gnutls_cliOptions.pOptDesc->pzText */ puts(_("output version information and exit")); /* referenced via gnutls_cliOptions.pzUsageTitle */ puts(_("gnutls-cli - GnuTLS client\n\ Usage: %s [ - [] | --[{=| }] ]... [hostname]\n")); /* referenced via gnutls_cliOptions.pzExplain */ puts(_("\n")); /* referenced via gnutls_cliOptions.pzDetail */ puts(_("Simple client program to set up a TLS connection to some other computer. It\n\ sets up a TLS connection and forwards data from the standard input to the\n\ secured socket and vice versa.\n")); /* referenced via gnutls_cliOptions.pzFullVersion */ puts(_("gnutls-cli @VERSION@")); /* referenced via gnutls_cliOptions.pzFullUsage */ puts(_("<<>>")); /* referenced via gnutls_cliOptions.pzShortUsage */ puts(_("Usage: gnutls-cli [options] hostname\n\ gnutls-cli --help for usage instructions.\n")); /* LIBOPTS-MESSAGES: */ #line 67 "../autoopts.c" puts(_("allocation of %d bytes failed\n")); #line 93 "../autoopts.c" puts(_("allocation of %d bytes failed\n")); #line 53 "../init.c" puts(_("AutoOpts function called without option descriptor\n")); #line 86 "../init.c" puts(_("\tThis exceeds the compiled library version: ")); #line 84 "../init.c" puts(_("Automated Options Processing Error!\n" "\t%s called AutoOpts function with structure version %d:%d:%d.\n")); #line 80 "../autoopts.c" puts(_("realloc of %d bytes at 0x%p failed\n")); #line 88 "../init.c" puts(_("\tThis is less than the minimum library version: ")); #line 121 "../version.c" puts(_("Automated Options version %s\n" "\tCopyright (C) 1999-2014 by Bruce Korb - all rights reserved\n")); #line 87 "../makeshell.c" puts(_("(AutoOpts bug): %s.\n")); #line 90 "../reset.c" puts(_("optionResetOpt() called, but reset-option not configured")); #line 295 "../usage.c" puts(_("could not locate the 'help' option")); #line 336 "../autoopts.c" puts(_("optionProcess() was called with invalid data")); #line 751 "../usage.c" puts(_("invalid argument type specified")); #line 598 "../find.c" puts(_("defaulted to option with optional arg")); #line 76 "../alias.c" puts(_("aliasing option is out of range.")); #line 235 "../enum.c" puts(_("%s error: the keyword '%s' is ambiguous for %s\n")); #line 108 "../find.c" puts(_(" The following options match:\n")); #line 293 "../find.c" puts(_("%s: ambiguous option name: %s (matches %d options)\n")); #line 161 "../check.c" puts(_("%s: Command line arguments required\n")); #line 43 "../alias.c" puts(_("%d %s%s options allowed\n")); #line 94 "../makeshell.c" puts(_("%s error %d (%s) calling %s for '%s'\n")); #line 306 "../makeshell.c" puts(_("interprocess pipe")); #line 168 "../version.c" puts(_("error: version option argument '%c' invalid. Use:\n" "\t'v' - version only\n" "\t'c' - version and copyright\n" "\t'n' - version and full copyright notice\n")); #line 58 "../check.c" puts(_("%s error: the '%s' and '%s' options conflict\n")); #line 217 "../find.c" puts(_("%s: The '%s' option has been disabled.")); #line 430 "../find.c" puts(_("%s: The '%s' option has been disabled.")); #line 38 "../alias.c" puts(_("-equivalence")); #line 469 "../find.c" puts(_("%s: illegal option -- %c\n")); #line 110 "../reset.c" puts(_("%s: illegal option -- %c\n")); #line 271 "../find.c" puts(_("%s: illegal option -- %s\n")); #line 755 "../find.c" puts(_("%s: illegal option -- %s\n")); #line 118 "../reset.c" puts(_("%s: illegal option -- %s\n")); #line 335 "../find.c" puts(_("%s: unknown vendor extension option -- %s\n")); #line 160 "../enum.c" puts(_(" or an integer from %d through %d\n")); #line 170 "../enum.c" puts(_(" or an integer from %d through %d\n")); #line 750 "../usage.c" puts(_("%s error: invalid option descriptor for %s\n")); #line 1084 "../usage.c" puts(_("%s error: invalid option descriptor for %s\n")); #line 385 "../find.c" puts(_("%s: invalid option name: %s\n")); #line 527 "../find.c" puts(_("%s: The '%s' option requires an argument.\n")); #line 156 "../autoopts.c" puts(_("(AutoOpts bug): Equivalenced option '%s' was equivalenced to both\n" "\t'%s' and '%s'.")); #line 94 "../check.c" puts(_("%s error: The %s option is required\n")); #line 632 "../find.c" puts(_("%s: The '%s' option cannot have an argument.\n")); #line 151 "../check.c" puts(_("%s: Command line arguments are not allowed.\n")); #line 536 "../save.c" puts(_("error %d (%s) creating %s\n")); #line 235 "../enum.c" puts(_("%s error: '%s' does not match any %s keywords.\n")); #line 93 "../reset.c" puts(_("%s error: The '%s' option requires an argument.\n")); #line 186 "../save.c" puts(_("error %d (%s) stat-ing %s\n")); #line 239 "../save.c" puts(_("error %d (%s) stat-ing %s\n")); #line 143 "../restore.c" puts(_("%s error: no saved option state\n")); #line 231 "../autoopts.c" puts(_("'%s' is not a command line option.\n")); #line 113 "../time.c" puts(_("%s error: '%s' is not a recognizable date/time.\n")); #line 131 "../save.c" puts(_("'%s' not defined\n")); #line 50 "../time.c" puts(_("%s error: '%s' is not a recognizable time duration.\n")); #line 92 "../check.c" puts(_("%s error: The %s option must appear %d times.\n")); #line 165 "../numeric.c" puts(_("%s error: '%s' is not a recognizable number.\n")); #line 201 "../enum.c" puts(_("%s error: %s exceeds %s keyword count\n")); #line 333 "../usage.c" puts(_("Try '%s %s' for more information.\n")); #line 45 "../alias.c" puts(_("one %s%s option allowed\n")); #line 208 "../makeshell.c" puts(_("standard output")); #line 943 "../makeshell.c" puts(_("standard output")); #line 277 "../usage.c" puts(_("standard output")); #line 418 "../usage.c" puts(_("standard output")); #line 628 "../usage.c" puts(_("standard output")); #line 175 "../version.c" puts(_("standard output")); #line 277 "../usage.c" puts(_("standard error")); #line 418 "../usage.c" puts(_("standard error")); #line 628 "../usage.c" puts(_("standard error")); #line 175 "../version.c" puts(_("standard error")); #line 208 "../makeshell.c" puts(_("write")); #line 943 "../makeshell.c" puts(_("write")); #line 276 "../usage.c" puts(_("write")); #line 417 "../usage.c" puts(_("write")); #line 627 "../usage.c" puts(_("write")); #line 174 "../version.c" puts(_("write")); #line 60 "../numeric.c" puts(_("%s error: %s option value %ld is out of range.\n")); #line 44 "../check.c" puts(_("%s error: %s option requires the %s option\n")); #line 130 "../save.c" puts(_("%s warning: cannot save options - %s not regular file\n")); #line 185 "../save.c" puts(_("%s warning: cannot save options - %s not regular file\n")); #line 238 "../save.c" puts(_("%s warning: cannot save options - %s not regular file\n")); #line 257 "../save.c" puts(_("%s warning: cannot save options - %s not regular file\n")); #line 535 "../save.c" puts(_("%s warning: cannot save options - %s not regular file\n")); /* END-LIBOPTS-MESSAGES */ /* USAGE-TEXT: */ #line 876 "../usage.c" puts(_("\t\t\t\t- an alternate for '%s'\n")); #line 1151 "../usage.c" puts(_("Version, usage and configuration options:")); #line 927 "../usage.c" puts(_("\t\t\t\t- default option for unnamed options\n")); #line 840 "../usage.c" puts(_("\t\t\t\t- disabled as '--%s'\n")); #line 1120 "../usage.c" puts(_(" --- %-14s %s\n")); #line 1118 "../usage.c" puts(_("This option has been disabled")); #line 867 "../usage.c" puts(_("\t\t\t\t- enabled by default\n")); #line 40 "../alias.c" puts(_("%s error: only ")); #line 1197 "../usage.c" puts(_(" - examining environment variables named %s_*\n")); #line 168 "../file.c" puts(_("\t\t\t\t- file must not pre-exist\n")); #line 172 "../file.c" puts(_("\t\t\t\t- file must pre-exist\n")); #line 383 "../usage.c" puts(_("Options are specified by doubled hyphens and their name or by a single\n" "hyphen and the flag character.\n")); #line 921 "../makeshell.c" puts(_("\n" "= = = = = = = =\n\n" "This incarnation of genshell will produce\n" "a shell script to parse the options for %s:\n\n")); #line 167 "../enum.c" puts(_(" or an integer mask with any of the lower %d bits set\n")); #line 900 "../usage.c" puts(_("\t\t\t\t- is a set membership option\n")); #line 921 "../usage.c" puts(_("\t\t\t\t- must appear between %d and %d times\n")); #line 385 "../usage.c" puts(_("Options are specified by single or double hyphens and their name.\n")); #line 907 "../usage.c" puts(_("\t\t\t\t- may appear multiple times\n")); #line 894 "../usage.c" puts(_("\t\t\t\t- may not be preset\n")); #line 1312 "../usage.c" puts(_(" Arg Option-Name Description\n")); #line 1248 "../usage.c" puts(_(" Flg Arg Option-Name Description\n")); #line 1306 "../usage.c" puts(_(" Flg Arg Option-Name Description\n")); #line 1307 "../usage.c" puts(_(" %3s %s")); #line 1313 "../usage.c" puts(_(" %3s %s")); #line 390 "../usage.c" puts(_("The '-#' option may omit the hash char\n")); #line 386 "../usage.c" puts(_("All arguments are named options.\n")); #line 974 "../usage.c" puts(_(" - reading file %s")); #line 412 "../usage.c" puts(_("\n" "Please send bug reports to: <%s>\n")); #line 100 "../version.c" puts(_("\n" "Please send bug reports to: <%s>\n")); #line 129 "../version.c" puts(_("\n" "Please send bug reports to: <%s>\n")); #line 906 "../usage.c" puts(_("\t\t\t\t- may NOT appear - preset only\n")); #line 947 "../usage.c" puts(_("\n" "The following option preset mechanisms are supported:\n")); #line 1195 "../usage.c" puts(_("\n" "The following option preset mechanisms are supported:\n")); #line 685 "../usage.c" puts(_("prohibits these options:\n")); #line 680 "../usage.c" puts(_("prohibits the option '%s'\n")); #line 81 "../numeric.c" puts(_("%s%ld to %ld")); #line 79 "../numeric.c" puts(_("%sgreater than or equal to %ld")); #line 75 "../numeric.c" puts(_("%s%ld exactly")); #line 68 "../numeric.c" puts(_("%sit must lie in one of the ranges:\n")); #line 68 "../numeric.c" puts(_("%sit must be in the range:\n")); #line 88 "../numeric.c" puts(_(", or\n")); #line 66 "../numeric.c" puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n")); #line 77 "../numeric.c" puts(_("%sless than or equal to %ld")); #line 393 "../usage.c" puts(_("Operands and options may be intermixed. They will be reordered.\n")); #line 655 "../usage.c" puts(_("requires the option '%s'\n")); #line 658 "../usage.c" puts(_("requires these options:\n")); #line 1324 "../usage.c" puts(_(" Arg Option-Name Req? Description\n")); #line 1318 "../usage.c" puts(_(" Flg Arg Option-Name Req? Description\n")); #line 168 "../enum.c" puts(_("or you may use a numeric representation. Preceding these with a '!'\n" "will clear the bits, specifying 'none' will clear all bits, and 'all'\n" "will set them all. Multiple entries may be passed as an option\n" "argument list.\n")); #line 913 "../usage.c" puts(_("\t\t\t\t- may appear up to %d times\n")); #line 77 "../enum.c" puts(_("The valid \"%s\" option keywords are:\n")); #line 1155 "../usage.c" puts(_("The next option supports vendor supported extra options:")); #line 776 "../usage.c" puts(_("These additional options are:")); /* END-USAGE-TEXT */ } #endif /* uncompilable code */ #ifdef __cplusplus } #endif /* cli-args.c ends here */