Blame src/p11tool-args.c.bak

Packit aea12f
/*   -*- buffer-read-only: t -*- vi: set ro:
Packit aea12f
 *
Packit aea12f
 *  DO NOT EDIT THIS FILE   (p11tool-args.c)
Packit aea12f
 *
Packit aea12f
 *  It has been AutoGen-ed
Packit aea12f
 *  From the definitions    p11tool-args.def
Packit aea12f
 *  and the template file   options
Packit aea12f
 *
Packit Service 991b93
 * Generated from AutoOpts 42:1:17 templates.
Packit aea12f
 *
Packit aea12f
 *  AutoOpts is a copyrighted work.  This source file is not encumbered
Packit aea12f
 *  by AutoOpts licensing, but is provided under the licensing terms chosen
Packit aea12f
 *  by the p11tool author or copyright holder.  AutoOpts is
Packit aea12f
 *  licensed under the terms of the LGPL.  The redistributable library
Packit aea12f
 *  (``libopts'') is licensed under the terms of either the LGPL or, at the
Packit aea12f
 *  users discretion, the BSD license.  See the AutoOpts and/or libopts sources
Packit aea12f
 *  for details.
Packit aea12f
 *
Packit aea12f
 * The p11tool program is copyrighted and licensed
Packit aea12f
 * under the following terms:
Packit aea12f
 *
Packit Service 991b93
 *  Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.
Packit aea12f
 *  This is free software. It is licensed for use, modification and
Packit aea12f
 *  redistribution under the terms of the GNU General Public License,
Packit aea12f
 *  version 3 or later <http://gnu.org/licenses/gpl.html>
Packit aea12f
 *
Packit aea12f
 *  p11tool is free software: you can redistribute it and/or modify it
Packit aea12f
 *  under the terms of the GNU General Public License as published by the
Packit aea12f
 *  Free Software Foundation, either version 3 of the License, or
Packit aea12f
 *  (at your option) any later version.
Packit aea12f
 *
Packit aea12f
 *  p11tool is distributed in the hope that it will be useful, but
Packit aea12f
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit aea12f
 *  See the GNU General Public License for more details.
Packit aea12f
 *
Packit aea12f
 *  You should have received a copy of the GNU General Public License along
Packit aea12f
 *  with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit aea12f
 */
Packit aea12f
Packit aea12f
#ifndef __doxygen__
Packit aea12f
#define OPTION_CODE_COMPILE 1
Packit aea12f
#include "p11tool-args.h"
Packit aea12f
#include <sys/types.h>
Packit Service 991b93
#include <sys/stat.h>
Packit aea12f
Packit Service 991b93
#include <errno.h>
Packit Service 991b93
#include <fcntl.h>
Packit aea12f
#include <limits.h>
Packit aea12f
#include <stdio.h>
Packit aea12f
#include <stdlib.h>
Packit Service 991b93
#include <string.h>
Packit Service 991b93
#include <unistd.h>
Packit aea12f
Packit aea12f
#ifdef  __cplusplus
Packit aea12f
extern "C" {
Packit aea12f
#endif
Packit aea12f
extern FILE * option_usage_fp;
Packit aea12f
#define zCopyright      (p11tool_opt_strs+0)
Packit Service 991b93
#define zLicenseDescrip (p11tool_opt_strs+283)
Packit aea12f
Packit aea12f
Packit aea12f
#ifndef NULL
Packit aea12f
#  define NULL 0
Packit aea12f
#endif
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  static const strings for p11tool options
Packit aea12f
 */
Packit Service 991b93
static char const p11tool_opt_strs[5984] =
Packit Service 991b93
/*     0 */ "p11tool 3.6.14\n"
Packit Service 991b93
            "Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.\n"
Packit aea12f
            "This is free software. It is licensed for use, modification and\n"
Packit aea12f
            "redistribution under the terms of the GNU General Public License,\n"
Packit aea12f
            "version 3 or later <http://gnu.org/licenses/gpl.html>\n\0"
Packit Service 991b93
/*   283 */ "p11tool is free software: you can redistribute it and/or modify it under\n"
Packit aea12f
            "the terms of the GNU General Public License as published by the Free\n"
Packit aea12f
            "Software Foundation, either version 3 of the License, or (at your option)\n"
Packit aea12f
            "any later version.\n\n"
Packit aea12f
            "p11tool is distributed in the hope that it will be useful, but WITHOUT ANY\n"
Packit aea12f
            "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n"
Packit aea12f
            "FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more\n"
Packit aea12f
            "details.\n\n"
Packit aea12f
            "You should have received a copy of the GNU General Public License along\n"
Packit aea12f
            "with this program.  If not, see <http://www.gnu.org/licenses/>.\n\0"
Packit Service 991b93
/*   886 */ "Tokens:\0"
Packit Service 991b93
/*   894 */ "List all available tokens\0"
Packit Service 991b93
/*   920 */ "LIST_TOKENS\0"
Packit Service 991b93
/*   932 */ "list-tokens\0"
Packit Service 991b93
/*   944 */ "List the URLs available tokens\0"
Packit Service 991b93
/*   975 */ "LIST_TOKEN_URLS\0"
Packit Service 991b93
/*   991 */ "list-token-urls\0"
Packit Service 991b93
/*  1007 */ "List all available mechanisms in a token\0"
Packit Service 991b93
/*  1048 */ "LIST_MECHANISMS\0"
Packit Service 991b93
/*  1064 */ "list-mechanisms\0"
Packit Service 991b93
/*  1080 */ "Initializes a PKCS #11 token\0"
Packit Service 991b93
/*  1109 */ "INITIALIZE\0"
Packit Service 991b93
/*  1120 */ "initialize\0"
Packit Service 991b93
/*  1131 */ "Initializes/Resets a PKCS #11 token user PIN\0"
Packit Service 991b93
/*  1176 */ "INITIALIZE_PIN\0"
Packit Service 991b93
/*  1191 */ "initialize-pin\0"
Packit Service 991b93
/*  1206 */ "Initializes/Resets a PKCS #11 token security officer PIN.\0"
Packit Service 991b93
/*  1264 */ "INITIALIZE_SO_PIN\0"
Packit Service 991b93
/*  1282 */ "initialize-so-pin\0"
Packit Service 991b93
/*  1300 */ "Specify the PIN to use on token operations\0"
Packit Service 991b93
/*  1343 */ "SET_PIN\0"
Packit Service 991b93
/*  1351 */ "set-pin\0"
Packit Service 991b93
/*  1359 */ "Specify the Security Officer's PIN to use on token initialization\0"
Packit Service 991b93
/*  1425 */ "SET_SO_PIN\0"
Packit Service 991b93
/*  1436 */ "set-so-pin\0"
Packit Service 991b93
/*  1447 */ "Object listing:\0"
Packit Service 991b93
/*  1463 */ "List all available objects in a token\0"
Packit Service 991b93
/*  1501 */ "LIST_ALL\0"
Packit Service 991b93
/*  1510 */ "list-all\0"
Packit Service 991b93
/*  1519 */ "List all available certificates in a token\0"
Packit Service 991b93
/*  1562 */ "LIST_ALL_CERTS\0"
Packit Service 991b93
/*  1577 */ "list-all-certs\0"
Packit Service 991b93
/*  1592 */ "List all certificates that have an associated private key\0"
Packit Service 991b93
/*  1650 */ "LIST_CERTS\0"
Packit Service 991b93
/*  1661 */ "list-certs\0"
Packit Service 991b93
/*  1672 */ "List all available private keys in a token\0"
Packit Service 991b93
/*  1715 */ "LIST_ALL_PRIVKEYS\0"
Packit Service 991b93
/*  1733 */ "list-all-privkeys\0"
Packit Service 991b93
/*  1751 */ "an alias for the 'list-all-privkeys' option\0"
Packit Service 991b93
/*  1795 */ "list-privkeys\0"
Packit Service 991b93
/*  1809 */ "list-keys\0"
Packit Service 991b93
/*  1819 */ "List all available certificates marked as trusted\0"
Packit Service 991b93
/*  1869 */ "LIST_ALL_TRUSTED\0"
Packit Service 991b93
/*  1886 */ "list-all-trusted\0"
Packit Service 991b93
/*  1903 */ "Export the object specified by the URL\0"
Packit Service 991b93
/*  1942 */ "EXPORT\0"
Packit Service 991b93
/*  1949 */ "export\0"
Packit Service 991b93
/*  1956 */ "Export the certificate object specified by the URL\0"
Packit Service 991b93
/*  2007 */ "EXPORT_STAPLED\0"
Packit Service 991b93
/*  2022 */ "export-stapled\0"
Packit Service 991b93
/*  2037 */ "Export the certificate specified by the URL and its chain of trust\0"
Packit Service 991b93
/*  2104 */ "EXPORT_CHAIN\0"
Packit Service 991b93
/*  2117 */ "export-chain\0"
Packit Service 991b93
/*  2130 */ "Export the public key for a private key\0"
Packit Service 991b93
/*  2170 */ "EXPORT_PUBKEY\0"
Packit Service 991b93
/*  2184 */ "export-pubkey\0"
Packit Service 991b93
/*  2198 */ "List information on an available object in a token\0"
Packit Service 991b93
/*  2249 */ "INFO\0"
Packit Service 991b93
/*  2254 */ "info\0"
Packit Service 991b93
/*  2259 */ "an alias for the 'mark-trusted' option\0"
Packit Service 991b93
/*  2298 */ "trusted\0"
Packit Service 991b93
/*  2306 */ "an alias for the 'mark-distrusted' option\0"
Packit Service 991b93
/*  2348 */ "distrusted\0"
Packit Service 991b93
/*  2359 */ "Key generation:\0"
Packit Service 991b93
/*  2375 */ "Generate private-public key pair of given type\0"
Packit Service 991b93
/*  2422 */ "GENERATE_PRIVKEY\0"
Packit Service 991b93
/*  2439 */ "generate-privkey\0"
Packit Service 991b93
/*  2456 */ "Generate an RSA private-public key pair (deprecated)\0"
Packit Service 991b93
/*  2509 */ "GENERATE_RSA\0"
Packit Service 991b93
/*  2522 */ "generate-rsa\0"
Packit Service 991b93
/*  2535 */ "Generate a DSA private-public key pair (deprecated)\0"
Packit Service 991b93
/*  2587 */ "GENERATE_DSA\0"
Packit Service 991b93
/*  2600 */ "generate-dsa\0"
Packit Service 991b93
/*  2613 */ "Generate an ECDSA private-public key pair (deprecated)\0"
Packit Service 991b93
/*  2668 */ "GENERATE_ECC\0"
Packit Service 991b93
/*  2681 */ "generate-ecc\0"
Packit Service 991b93
/*  2694 */ "Specify the number of bits for the key generate\0"
Packit Service 991b93
/*  2742 */ "BITS\0"
Packit Service 991b93
/*  2747 */ "bits\0"
Packit Service 991b93
/*  2752 */ "Specify the curve used for EC key generation\0"
Packit Service 991b93
/*  2797 */ "CURVE\0"
Packit Service 991b93
/*  2803 */ "curve\0"
Packit Service 991b93
/*  2809 */ "Specify the security level\0"
Packit Service 991b93
/*  2836 */ "SEC_PARAM\0"
Packit Service 991b93
/*  2846 */ "sec-param\0"
Packit Service 991b93
/*  2856 */ "Writing objects:\0"
Packit Service 991b93
/*  2873 */ "Set the CKA_ID (in hex) for the specified by the URL object\0"
Packit Service 991b93
/*  2933 */ "SET_ID\0"
Packit Service 991b93
/*  2940 */ "set-id\0"
Packit Service 991b93
/*  2947 */ "Set the CKA_LABEL for the specified by the URL object\0"
Packit Service 991b93
/*  3001 */ "SET_LABEL\0"
Packit Service 991b93
/*  3011 */ "set-label\0"
Packit Service 991b93
/*  3021 */ "Writes the loaded objects to a PKCS #11 token\0"
Packit Service 991b93
/*  3067 */ "WRITE\0"
Packit Service 991b93
/*  3073 */ "write\0"
Packit Service 991b93
/*  3079 */ "Deletes the objects matching the given PKCS #11 URL\0"
Packit Service 991b93
/*  3131 */ "DELETE\0"
Packit Service 991b93
/*  3138 */ "delete\0"
Packit Service 991b93
/*  3145 */ "Sets a label for the write operation\0"
Packit Service 991b93
/*  3182 */ "LABEL\0"
Packit Service 991b93
/*  3188 */ "label\0"
Packit Service 991b93
/*  3194 */ "Sets an ID for the write operation\0"
Packit Service 991b93
/*  3229 */ "ID\0"
Packit Service 991b93
/*  3232 */ "id\0"
Packit Service 991b93
/*  3235 */ "Marks the generated key to be a wrapping key\0"
Packit Service 991b93
/*  3280 */ "MARK_WRAP\0"
Packit Service 991b93
/*  3290 */ "no-mark-wrap\0"
Packit Service 991b93
/*  3303 */ "no\0"
Packit Service 991b93
/*  3306 */ "Marks the object to be written as trusted\0"
Packit Service 991b93
/*  3348 */ "MARK_TRUSTED\0"
Packit Service 991b93
/*  3361 */ "no-mark-trusted\0"
Packit Service 991b93
/*  3377 */ "When retrieving objects, it requires the objects to be distrusted\n"
Packit aea12f
            "(blacklisted)\0"
Packit Service 991b93
/*  3457 */ "MARK_DISTRUSTED\0"
Packit Service 991b93
/*  3473 */ "mark-distrusted\0"
Packit Service 991b93
/*  3489 */ "Marks the object to be written for decryption\0"
Packit Service 991b93
/*  3535 */ "MARK_DECRYPT\0"
Packit Service 991b93
/*  3548 */ "no-mark-decrypt\0"
Packit Service 991b93
/*  3564 */ "Marks the object to be written for signature generation\0"
Packit Service 991b93
/*  3620 */ "MARK_SIGN\0"
Packit Service 991b93
/*  3630 */ "no-mark-sign\0"
Packit Service 991b93
/*  3643 */ "Marks the object to be written as a CA\0"
Packit Service 991b93
/*  3682 */ "MARK_CA\0"
Packit Service 991b93
/*  3690 */ "no-mark-ca\0"
Packit Service 991b93
/*  3701 */ "Marks the object to be written as private\0"
Packit Service 991b93
/*  3743 */ "MARK_PRIVATE\0"
Packit Service 991b93
/*  3756 */ "no-mark-private\0"
Packit Service 991b93
/*  3772 */ "an alias for the 'mark-ca' option\0"
Packit Service 991b93
/*  3806 */ "ca\0"
Packit Service 991b93
/*  3809 */ "an alias for the 'mark-private' option\0"
Packit Service 991b93
/*  3848 */ "private\0"
Packit Service 991b93
/*  3856 */ "Provide a hex encoded secret key\0"
Packit Service 991b93
/*  3889 */ "SECRET_KEY\0"
Packit Service 991b93
/*  3900 */ "secret-key\0"
Packit Service 991b93
/*  3911 */ "Private key file to use\0"
Packit Service 991b93
/*  3935 */ "LOAD_PRIVKEY\0"
Packit Service 991b93
/*  3948 */ "load-privkey\0"
Packit Service 991b93
/*  3961 */ "Public key file to use\0"
Packit Service 991b93
/*  3984 */ "LOAD_PUBKEY\0"
Packit Service 991b93
/*  3996 */ "load-pubkey\0"
Packit Service 991b93
/*  4008 */ "Certificate file to use\0"
Packit Service 991b93
/*  4032 */ "LOAD_CERTIFICATE\0"
Packit Service 991b93
/*  4049 */ "load-certificate\0"
Packit Service 991b93
/*  4066 */ "Other options:\0"
Packit Service 991b93
/*  4081 */ "Enable debugging\0"
Packit Service 991b93
/*  4098 */ "DEBUG\0"
Packit Service 991b93
/*  4104 */ "debug\0"
Packit Service 991b93
/*  4110 */ "Output file\0"
Packit Service 991b93
/*  4122 */ "OUTFILE\0"
Packit Service 991b93
/*  4130 */ "outfile\0"
Packit Service 991b93
/*  4138 */ "Force (user) login to token\0"
Packit Service 991b93
/*  4166 */ "LOGIN\0"
Packit Service 991b93
/*  4172 */ "no-login\0"
Packit Service 991b93
/*  4181 */ "Force security officer login to token\0"
Packit Service 991b93
/*  4219 */ "SO_LOGIN\0"
Packit Service 991b93
/*  4228 */ "no-so-login\0"
Packit Service 991b93
/*  4240 */ "an alias for the 'so-login' option\0"
Packit Service 991b93
/*  4275 */ "admin-login\0"
Packit Service 991b93
/*  4287 */ "Tests the signature operation of the provided object\0"
Packit Service 991b93
/*  4340 */ "TEST_SIGN\0"
Packit Service 991b93
/*  4350 */ "test-sign\0"
Packit Service 991b93
/*  4360 */ "Sign with a specific signature algorithm\0"
Packit Service 991b93
/*  4401 */ "SIGN_PARAMS\0"
Packit Service 991b93
/*  4413 */ "sign-params\0"
Packit Service 991b93
/*  4425 */ "Hash algorithm to use for signing\0"
Packit Service 991b93
/*  4459 */ "HASH\0"
Packit Service 991b93
/*  4464 */ "hash\0"
Packit Service 991b93
/*  4469 */ "Generate random data\0"
Packit Service 991b93
/*  4490 */ "GENERATE_RANDOM\0"
Packit Service 991b93
/*  4506 */ "generate-random\0"
Packit Service 991b93
/*  4522 */ "Use PKCS #8 format for private keys\0"
Packit Service 991b93
/*  4558 */ "PKCS8\0"
Packit Service 991b93
/*  4564 */ "pkcs8\0"
Packit Service 991b93
/*  4570 */ "Use DER/RAW format for input\0"
Packit Service 991b93
/*  4599 */ "INDER\0"
Packit Service 991b93
/*  4605 */ "no-inder\0"
Packit Service 991b93
/*  4614 */ "an alias for the 'inder' option\0"
Packit Service 991b93
/*  4646 */ "inraw\0"
Packit Service 991b93
/*  4652 */ "Use DER format for output certificates, private keys, and DH parameters\0"
Packit Service 991b93
/*  4724 */ "OUTDER\0"
Packit Service 991b93
/*  4731 */ "no-outder\0"
Packit Service 991b93
/*  4741 */ "an alias for the 'outder' option\0"
Packit Service 991b93
/*  4774 */ "outraw\0"
Packit Service 991b93
/*  4781 */ "Specify the PKCS #11 provider library\0"
Packit Service 991b93
/*  4819 */ "PROVIDER\0"
Packit Service 991b93
/*  4828 */ "provider\0"
Packit Service 991b93
/*  4837 */ "Specify parameters for the PKCS #11 provider library (deprecated)\0"
Packit Service 991b93
/*  4903 */ "PROVIDER_OPTS\0"
Packit Service 991b93
/*  4917 */ "provider-opts\0"
Packit Service 991b93
/*  4931 */ "Print detailed URLs\0"
Packit Service 991b93
/*  4951 */ "DETAILED_URL\0"
Packit Service 991b93
/*  4964 */ "no-detailed-url\0"
Packit Service 991b93
/*  4980 */ "Print a compact listing using only the URLs\0"
Packit Service 991b93
/*  5024 */ "ONLY_URLS\0"
Packit Service 991b93
/*  5034 */ "only-urls\0"
Packit Service 991b93
/*  5044 */ "Disable all interaction with the tool\0"
Packit Service 991b93
/*  5082 */ "BATCH\0"
Packit Service 991b93
/*  5088 */ "batch\0"
Packit Service 991b93
/*  5094 */ "display extended usage information and exit\0"
Packit Service 991b93
/*  5138 */ "help\0"
Packit Service 991b93
/*  5143 */ "extended usage information passed thru pager\0"
Packit Service 991b93
/*  5188 */ "more-help\0"
Packit Service 991b93
/*  5198 */ "output version information and exit\0"
Packit Service 991b93
/*  5234 */ "version\0"
Packit Service 991b93
/*  5242 */ "P11TOOL\0"
Packit Service 991b93
/*  5250 */ "p11tool - GnuTLS PKCS #11 tool\n"
Packit aea12f
            "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [url]\n\0"
Packit Service 991b93
/*  5345 */ "bugs@gnutls.org\0"
Packit Service 991b93
/*  5361 */ "\n\0"
Packit Service 991b93
/*  5363 */ "Program that allows operations on PKCS #11 smart cards and security\n"
Packit aea12f
            "modules.\n\n"
Packit aea12f
            "To use PKCS #11 tokens with GnuTLS the p11-kit configuration files need to\n"
Packit aea12f
            "be setup.  That is create a .module file in /etc/pkcs11/modules with the\n"
Packit aea12f
            "contents 'module: /path/to/pkcs11.so'.  Alternatively the configuration\n"
Packit aea12f
            "file /etc/gnutls/pkcs11.conf has to exist and contain a number of lines of\n"
Packit aea12f
            "the form 'load=/usr/lib/opensc-pkcs11.so'.\n\n"
Packit aea12f
            "You can provide the PIN to be used for the PKCS #11 operations with the\n"
Packit aea12f
            "environment variables GNUTLS_PIN and GNUTLS_SO_PIN.\n\0"
Packit Service 991b93
/*  5905 */ "p11tool 3.6.14\0"
Packit Service 991b93
/*  5920 */ "p11tool [options] [url]\n"
Packit aea12f
            "p11tool --help for usage instructions.\n";
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  token_related_options option description:
Packit aea12f
 */
Packit aea12f
/** token_related_options option separation text */
Packit Service 991b93
#define TOKEN_RELATED_OPTIONS_DESC      (p11tool_opt_strs+886)
Packit aea12f
#define TOKEN_RELATED_OPTIONS_FLAGS     (OPTST_DOCUMENT | OPTST_NO_INIT)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-tokens option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-tokens option */
Packit Service 991b93
#define LIST_TOKENS_DESC      (p11tool_opt_strs+894)
Packit aea12f
/** Upper-cased name for the list-tokens option */
Packit Service 991b93
#define LIST_TOKENS_NAME      (p11tool_opt_strs+920)
Packit aea12f
/** Name string for the list-tokens option */
Packit Service 991b93
#define LIST_TOKENS_name      (p11tool_opt_strs+932)
Packit aea12f
/** Compiled in flag settings for the list-tokens option */
Packit aea12f
#define LIST_TOKENS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-token-urls option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-token-urls option */
Packit Service 991b93
#define LIST_TOKEN_URLS_DESC      (p11tool_opt_strs+944)
Packit aea12f
/** Upper-cased name for the list-token-urls option */
Packit Service 991b93
#define LIST_TOKEN_URLS_NAME      (p11tool_opt_strs+975)
Packit aea12f
/** Name string for the list-token-urls option */
Packit Service 991b93
#define LIST_TOKEN_URLS_name      (p11tool_opt_strs+991)
Packit aea12f
/** Compiled in flag settings for the list-token-urls option */
Packit aea12f
#define LIST_TOKEN_URLS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-mechanisms option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-mechanisms option */
Packit Service 991b93
#define LIST_MECHANISMS_DESC      (p11tool_opt_strs+1007)
Packit aea12f
/** Upper-cased name for the list-mechanisms option */
Packit Service 991b93
#define LIST_MECHANISMS_NAME      (p11tool_opt_strs+1048)
Packit aea12f
/** Name string for the list-mechanisms option */
Packit Service 991b93
#define LIST_MECHANISMS_name      (p11tool_opt_strs+1064)
Packit aea12f
/** Compiled in flag settings for the list-mechanisms option */
Packit aea12f
#define LIST_MECHANISMS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  initialize option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the initialize option */
Packit Service 991b93
#define INITIALIZE_DESC      (p11tool_opt_strs+1080)
Packit aea12f
/** Upper-cased name for the initialize option */
Packit Service 991b93
#define INITIALIZE_NAME      (p11tool_opt_strs+1109)
Packit aea12f
/** Name string for the initialize option */
Packit Service 991b93
#define INITIALIZE_name      (p11tool_opt_strs+1120)
Packit aea12f
/** Compiled in flag settings for the initialize option */
Packit aea12f
#define INITIALIZE_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  initialize-pin option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the initialize-pin option */
Packit Service 991b93
#define INITIALIZE_PIN_DESC      (p11tool_opt_strs+1131)
Packit aea12f
/** Upper-cased name for the initialize-pin option */
Packit Service 991b93
#define INITIALIZE_PIN_NAME      (p11tool_opt_strs+1176)
Packit aea12f
/** Name string for the initialize-pin option */
Packit Service 991b93
#define INITIALIZE_PIN_name      (p11tool_opt_strs+1191)
Packit aea12f
/** Compiled in flag settings for the initialize-pin option */
Packit aea12f
#define INITIALIZE_PIN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  initialize-so-pin option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the initialize-so-pin option */
Packit Service 991b93
#define INITIALIZE_SO_PIN_DESC      (p11tool_opt_strs+1206)
Packit aea12f
/** Upper-cased name for the initialize-so-pin option */
Packit Service 991b93
#define INITIALIZE_SO_PIN_NAME      (p11tool_opt_strs+1264)
Packit aea12f
/** Name string for the initialize-so-pin option */
Packit Service 991b93
#define INITIALIZE_SO_PIN_name      (p11tool_opt_strs+1282)
Packit aea12f
/** Compiled in flag settings for the initialize-so-pin option */
Packit aea12f
#define INITIALIZE_SO_PIN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  set-pin option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the set-pin option */
Packit Service 991b93
#define SET_PIN_DESC      (p11tool_opt_strs+1300)
Packit aea12f
/** Upper-cased name for the set-pin option */
Packit Service 991b93
#define SET_PIN_NAME      (p11tool_opt_strs+1343)
Packit aea12f
/** Name string for the set-pin option */
Packit Service 991b93
#define SET_PIN_name      (p11tool_opt_strs+1351)
Packit aea12f
/** Compiled in flag settings for the set-pin option */
Packit aea12f
#define SET_PIN_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  set-so-pin option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the set-so-pin option */
Packit Service 991b93
#define SET_SO_PIN_DESC      (p11tool_opt_strs+1359)
Packit aea12f
/** Upper-cased name for the set-so-pin option */
Packit Service 991b93
#define SET_SO_PIN_NAME      (p11tool_opt_strs+1425)
Packit aea12f
/** Name string for the set-so-pin option */
Packit Service 991b93
#define SET_SO_PIN_name      (p11tool_opt_strs+1436)
Packit aea12f
/** Compiled in flag settings for the set-so-pin option */
Packit aea12f
#define SET_SO_PIN_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  object_list_related_options option description:
Packit aea12f
 */
Packit aea12f
/** object_list_related_options option separation text */
Packit Service 991b93
#define OBJECT_LIST_RELATED_OPTIONS_DESC      (p11tool_opt_strs+1447)
Packit aea12f
#define OBJECT_LIST_RELATED_OPTIONS_FLAGS     (OPTST_DOCUMENT | OPTST_NO_INIT)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-all option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-all option */
Packit Service 991b93
#define LIST_ALL_DESC      (p11tool_opt_strs+1463)
Packit aea12f
/** Upper-cased name for the list-all option */
Packit Service 991b93
#define LIST_ALL_NAME      (p11tool_opt_strs+1501)
Packit aea12f
/** Name string for the list-all option */
Packit Service 991b93
#define LIST_ALL_name      (p11tool_opt_strs+1510)
Packit aea12f
/** Compiled in flag settings for the list-all option */
Packit aea12f
#define LIST_ALL_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-all-certs option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-all-certs option */
Packit Service 991b93
#define LIST_ALL_CERTS_DESC      (p11tool_opt_strs+1519)
Packit aea12f
/** Upper-cased name for the list-all-certs option */
Packit Service 991b93
#define LIST_ALL_CERTS_NAME      (p11tool_opt_strs+1562)
Packit aea12f
/** Name string for the list-all-certs option */
Packit Service 991b93
#define LIST_ALL_CERTS_name      (p11tool_opt_strs+1577)
Packit aea12f
/** Compiled in flag settings for the list-all-certs option */
Packit aea12f
#define LIST_ALL_CERTS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-certs option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-certs option */
Packit Service 991b93
#define LIST_CERTS_DESC      (p11tool_opt_strs+1592)
Packit aea12f
/** Upper-cased name for the list-certs option */
Packit Service 991b93
#define LIST_CERTS_NAME      (p11tool_opt_strs+1650)
Packit aea12f
/** Name string for the list-certs option */
Packit Service 991b93
#define LIST_CERTS_name      (p11tool_opt_strs+1661)
Packit aea12f
/** Compiled in flag settings for the list-certs option */
Packit aea12f
#define LIST_CERTS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-all-privkeys option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-all-privkeys option */
Packit Service 991b93
#define LIST_ALL_PRIVKEYS_DESC      (p11tool_opt_strs+1672)
Packit aea12f
/** Upper-cased name for the list-all-privkeys option */
Packit Service 991b93
#define LIST_ALL_PRIVKEYS_NAME      (p11tool_opt_strs+1715)
Packit aea12f
/** Name string for the list-all-privkeys option */
Packit Service 991b93
#define LIST_ALL_PRIVKEYS_name      (p11tool_opt_strs+1733)
Packit aea12f
/** Compiled in flag settings for the list-all-privkeys option */
Packit aea12f
#define LIST_ALL_PRIVKEYS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-privkeys option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-privkeys option */
Packit Service 991b93
#define LIST_PRIVKEYS_DESC    (p11tool_opt_strs+1751)
Packit aea12f
#define LIST_PRIVKEYS_NAME    NULL
Packit aea12f
/** Unmodified name string for the list-privkeys option */
Packit Service 991b93
#define LIST_PRIVKEYS_name    (p11tool_opt_strs+1795)
Packit aea12f
/** Compiled in flag settings for the list-privkeys option */
Packit aea12f
#define LIST_PRIVKEYS_FLAGS     (LIST_ALL_PRIVKEYS_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-keys option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-keys option */
Packit Service 991b93
#define LIST_KEYS_DESC    (p11tool_opt_strs+1751)
Packit aea12f
#define LIST_KEYS_NAME    NULL
Packit aea12f
/** Unmodified name string for the list-keys option */
Packit Service 991b93
#define LIST_KEYS_name    (p11tool_opt_strs+1809)
Packit aea12f
/** Compiled in flag settings for the list-keys option */
Packit aea12f
#define LIST_KEYS_FLAGS     (LIST_ALL_PRIVKEYS_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list-all-trusted option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list-all-trusted option */
Packit Service 991b93
#define LIST_ALL_TRUSTED_DESC      (p11tool_opt_strs+1819)
Packit aea12f
/** Upper-cased name for the list-all-trusted option */
Packit Service 991b93
#define LIST_ALL_TRUSTED_NAME      (p11tool_opt_strs+1869)
Packit aea12f
/** Name string for the list-all-trusted option */
Packit Service 991b93
#define LIST_ALL_TRUSTED_name      (p11tool_opt_strs+1886)
Packit aea12f
/** Compiled in flag settings for the list-all-trusted option */
Packit aea12f
#define LIST_ALL_TRUSTED_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  export option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the export option */
Packit Service 991b93
#define EXPORT_DESC      (p11tool_opt_strs+1903)
Packit aea12f
/** Upper-cased name for the export option */
Packit Service 991b93
#define EXPORT_NAME      (p11tool_opt_strs+1942)
Packit aea12f
/** Name string for the export option */
Packit Service 991b93
#define EXPORT_name      (p11tool_opt_strs+1949)
Packit aea12f
/** Other options that appear in conjunction with the export option */
Packit aea12f
static int const aExportCantList[] = {
Packit aea12f
    INDEX_OPT_EXPORT_STAPLED,
Packit aea12f
    INDEX_OPT_EXPORT_CHAIN,
Packit aea12f
    INDEX_OPT_EXPORT_PUBKEY, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the export option */
Packit aea12f
#define EXPORT_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  export-stapled option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the export-stapled option */
Packit Service 991b93
#define EXPORT_STAPLED_DESC      (p11tool_opt_strs+1956)
Packit aea12f
/** Upper-cased name for the export-stapled option */
Packit Service 991b93
#define EXPORT_STAPLED_NAME      (p11tool_opt_strs+2007)
Packit aea12f
/** Name string for the export-stapled option */
Packit Service 991b93
#define EXPORT_STAPLED_name      (p11tool_opt_strs+2022)
Packit aea12f
/** Other options that appear in conjunction with the export-stapled option */
Packit aea12f
static int const aExport_StapledCantList[] = {
Packit aea12f
    INDEX_OPT_EXPORT,
Packit aea12f
    INDEX_OPT_EXPORT_CHAIN,
Packit aea12f
    INDEX_OPT_EXPORT_PUBKEY, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the export-stapled option */
Packit aea12f
#define EXPORT_STAPLED_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  export-chain option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the export-chain option */
Packit Service 991b93
#define EXPORT_CHAIN_DESC      (p11tool_opt_strs+2037)
Packit aea12f
/** Upper-cased name for the export-chain option */
Packit Service 991b93
#define EXPORT_CHAIN_NAME      (p11tool_opt_strs+2104)
Packit aea12f
/** Name string for the export-chain option */
Packit Service 991b93
#define EXPORT_CHAIN_name      (p11tool_opt_strs+2117)
Packit aea12f
/** Other options that appear in conjunction with the export-chain option */
Packit aea12f
static int const aExport_ChainCantList[] = {
Packit aea12f
    INDEX_OPT_EXPORT_STAPLED,
Packit aea12f
    INDEX_OPT_EXPORT,
Packit aea12f
    INDEX_OPT_EXPORT_PUBKEY, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the export-chain option */
Packit aea12f
#define EXPORT_CHAIN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  export-pubkey option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the export-pubkey option */
Packit Service 991b93
#define EXPORT_PUBKEY_DESC      (p11tool_opt_strs+2130)
Packit aea12f
/** Upper-cased name for the export-pubkey option */
Packit Service 991b93
#define EXPORT_PUBKEY_NAME      (p11tool_opt_strs+2170)
Packit aea12f
/** Name string for the export-pubkey option */
Packit Service 991b93
#define EXPORT_PUBKEY_name      (p11tool_opt_strs+2184)
Packit aea12f
/** Other options that appear in conjunction with the export-pubkey option */
Packit aea12f
static int const aExport_PubkeyCantList[] = {
Packit aea12f
    INDEX_OPT_EXPORT_STAPLED,
Packit aea12f
    INDEX_OPT_EXPORT,
Packit aea12f
    INDEX_OPT_EXPORT_CHAIN, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the export-pubkey option */
Packit aea12f
#define EXPORT_PUBKEY_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  info option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the info option */
Packit Service 991b93
#define INFO_DESC      (p11tool_opt_strs+2198)
Packit aea12f
/** Upper-cased name for the info option */
Packit Service 991b93
#define INFO_NAME      (p11tool_opt_strs+2249)
Packit aea12f
/** Name string for the info option */
Packit Service 991b93
#define INFO_name      (p11tool_opt_strs+2254)
Packit aea12f
/** Compiled in flag settings for the info option */
Packit aea12f
#define INFO_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  trusted option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the trusted option */
Packit Service 991b93
#define TRUSTED_DESC    (p11tool_opt_strs+2259)
Packit aea12f
#define TRUSTED_NAME    NULL
Packit aea12f
/** Unmodified name string for the trusted option */
Packit Service 991b93
#define TRUSTED_name    (p11tool_opt_strs+2298)
Packit aea12f
/** Compiled in flag settings for the trusted option */
Packit aea12f
#define TRUSTED_FLAGS     (MARK_TRUSTED_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  distrusted option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the distrusted option */
Packit Service 991b93
#define DISTRUSTED_DESC    (p11tool_opt_strs+2306)
Packit aea12f
#define DISTRUSTED_NAME    NULL
Packit aea12f
/** Unmodified name string for the distrusted option */
Packit Service 991b93
#define DISTRUSTED_name    (p11tool_opt_strs+2348)
Packit aea12f
/** Compiled in flag settings for the distrusted option */
Packit aea12f
#define DISTRUSTED_FLAGS     (MARK_DISTRUSTED_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  keygen_related_options option description:
Packit aea12f
 */
Packit aea12f
/** keygen_related_options option separation text */
Packit Service 991b93
#define KEYGEN_RELATED_OPTIONS_DESC      (p11tool_opt_strs+2359)
Packit aea12f
#define KEYGEN_RELATED_OPTIONS_FLAGS     (OPTST_DOCUMENT | OPTST_NO_INIT)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  generate-privkey option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-privkey option */
Packit Service 991b93
#define GENERATE_PRIVKEY_DESC      (p11tool_opt_strs+2375)
Packit aea12f
/** Upper-cased name for the generate-privkey option */
Packit Service 991b93
#define GENERATE_PRIVKEY_NAME      (p11tool_opt_strs+2422)
Packit aea12f
/** Name string for the generate-privkey option */
Packit Service 991b93
#define GENERATE_PRIVKEY_name      (p11tool_opt_strs+2439)
Packit aea12f
/** Compiled in flag settings for the generate-privkey option */
Packit aea12f
#define GENERATE_PRIVKEY_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  generate-rsa option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_DESC      (p11tool_opt_strs+2456)
Packit aea12f
/** Upper-cased name for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_NAME      (p11tool_opt_strs+2509)
Packit aea12f
/** Name string for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_name      (p11tool_opt_strs+2522)
Packit aea12f
/** Compiled in flag settings for the generate-rsa option */
Packit aea12f
#define GENERATE_RSA_FLAGS     (OPTST_DISABLED | OPTST_DEPRECATED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  generate-dsa option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-dsa option */
Packit Service 991b93
#define GENERATE_DSA_DESC      (p11tool_opt_strs+2535)
Packit aea12f
/** Upper-cased name for the generate-dsa option */
Packit Service 991b93
#define GENERATE_DSA_NAME      (p11tool_opt_strs+2587)
Packit aea12f
/** Name string for the generate-dsa option */
Packit Service 991b93
#define GENERATE_DSA_name      (p11tool_opt_strs+2600)
Packit aea12f
/** Compiled in flag settings for the generate-dsa option */
Packit aea12f
#define GENERATE_DSA_FLAGS     (OPTST_DISABLED | OPTST_DEPRECATED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  generate-ecc option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-ecc option */
Packit Service 991b93
#define GENERATE_ECC_DESC      (p11tool_opt_strs+2613)
Packit aea12f
/** Upper-cased name for the generate-ecc option */
Packit Service 991b93
#define GENERATE_ECC_NAME      (p11tool_opt_strs+2668)
Packit aea12f
/** Name string for the generate-ecc option */
Packit Service 991b93
#define GENERATE_ECC_name      (p11tool_opt_strs+2681)
Packit aea12f
/** Compiled in flag settings for the generate-ecc option */
Packit aea12f
#define GENERATE_ECC_FLAGS     (OPTST_DISABLED | OPTST_DEPRECATED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  bits option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the bits option */
Packit Service 991b93
#define BITS_DESC      (p11tool_opt_strs+2694)
Packit aea12f
/** Upper-cased name for the bits option */
Packit Service 991b93
#define BITS_NAME      (p11tool_opt_strs+2742)
Packit aea12f
/** Name string for the bits option */
Packit Service 991b93
#define BITS_name      (p11tool_opt_strs+2747)
Packit aea12f
/** Compiled in flag settings for the bits option */
Packit aea12f
#define BITS_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  curve option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the curve option */
Packit Service 991b93
#define CURVE_DESC      (p11tool_opt_strs+2752)
Packit aea12f
/** Upper-cased name for the curve option */
Packit Service 991b93
#define CURVE_NAME      (p11tool_opt_strs+2797)
Packit aea12f
/** Name string for the curve option */
Packit Service 991b93
#define CURVE_name      (p11tool_opt_strs+2803)
Packit aea12f
/** Compiled in flag settings for the curve option */
Packit aea12f
#define CURVE_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  sec-param option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the sec-param option */
Packit Service 991b93
#define SEC_PARAM_DESC      (p11tool_opt_strs+2809)
Packit aea12f
/** Upper-cased name for the sec-param option */
Packit Service 991b93
#define SEC_PARAM_NAME      (p11tool_opt_strs+2836)
Packit aea12f
/** Name string for the sec-param option */
Packit Service 991b93
#define SEC_PARAM_name      (p11tool_opt_strs+2846)
Packit aea12f
/** Compiled in flag settings for the sec-param option */
Packit aea12f
#define SEC_PARAM_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  write_object_related_options option description:
Packit aea12f
 */
Packit aea12f
/** write_object_related_options option separation text */
Packit Service 991b93
#define WRITE_OBJECT_RELATED_OPTIONS_DESC      (p11tool_opt_strs+2856)
Packit aea12f
#define WRITE_OBJECT_RELATED_OPTIONS_FLAGS     (OPTST_DOCUMENT | OPTST_NO_INIT)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  set-id option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the set-id option */
Packit Service 991b93
#define SET_ID_DESC      (p11tool_opt_strs+2873)
Packit aea12f
/** Upper-cased name for the set-id option */
Packit Service 991b93
#define SET_ID_NAME      (p11tool_opt_strs+2933)
Packit aea12f
/** Name string for the set-id option */
Packit Service 991b93
#define SET_ID_name      (p11tool_opt_strs+2940)
Packit aea12f
/** Other options that appear in conjunction with the set-id option */
Packit aea12f
static int const aSet_IdCantList[] = {
Packit aea12f
    INDEX_OPT_WRITE, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the set-id option */
Packit aea12f
#define SET_ID_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  set-label option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the set-label option */
Packit Service 991b93
#define SET_LABEL_DESC      (p11tool_opt_strs+2947)
Packit aea12f
/** Upper-cased name for the set-label option */
Packit Service 991b93
#define SET_LABEL_NAME      (p11tool_opt_strs+3001)
Packit aea12f
/** Name string for the set-label option */
Packit Service 991b93
#define SET_LABEL_name      (p11tool_opt_strs+3011)
Packit aea12f
/** Other options that appear in conjunction with the set-label option */
Packit aea12f
static int const aSet_LabelCantList[] = {
Packit aea12f
    INDEX_OPT_WRITE,
Packit aea12f
    INDEX_OPT_SET_ID, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the set-label option */
Packit aea12f
#define SET_LABEL_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  write option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the write option */
Packit Service 991b93
#define WRITE_DESC      (p11tool_opt_strs+3021)
Packit aea12f
/** Upper-cased name for the write option */
Packit Service 991b93
#define WRITE_NAME      (p11tool_opt_strs+3067)
Packit aea12f
/** Name string for the write option */
Packit Service 991b93
#define WRITE_name      (p11tool_opt_strs+3073)
Packit aea12f
/** Compiled in flag settings for the write option */
Packit aea12f
#define WRITE_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  delete option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the delete option */
Packit Service 991b93
#define DELETE_DESC      (p11tool_opt_strs+3079)
Packit aea12f
/** Upper-cased name for the delete option */
Packit Service 991b93
#define DELETE_NAME      (p11tool_opt_strs+3131)
Packit aea12f
/** Name string for the delete option */
Packit Service 991b93
#define DELETE_name      (p11tool_opt_strs+3138)
Packit aea12f
/** Compiled in flag settings for the delete option */
Packit aea12f
#define DELETE_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  label option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the label option */
Packit Service 991b93
#define LABEL_DESC      (p11tool_opt_strs+3145)
Packit aea12f
/** Upper-cased name for the label option */
Packit Service 991b93
#define LABEL_NAME      (p11tool_opt_strs+3182)
Packit aea12f
/** Name string for the label option */
Packit Service 991b93
#define LABEL_name      (p11tool_opt_strs+3188)
Packit aea12f
/** Compiled in flag settings for the label option */
Packit aea12f
#define LABEL_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  id option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the id option */
Packit Service 991b93
#define ID_DESC      (p11tool_opt_strs+3194)
Packit aea12f
/** Upper-cased name for the id option */
Packit Service 991b93
#define ID_NAME      (p11tool_opt_strs+3229)
Packit aea12f
/** Name string for the id option */
Packit Service 991b93
#define ID_name      (p11tool_opt_strs+3232)
Packit aea12f
/** Compiled in flag settings for the id option */
Packit aea12f
#define ID_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-wrap option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-wrap option */
Packit Service 991b93
#define MARK_WRAP_DESC      (p11tool_opt_strs+3235)
Packit aea12f
/** Upper-cased name for the mark-wrap option */
Packit Service 991b93
#define MARK_WRAP_NAME      (p11tool_opt_strs+3280)
Packit aea12f
/** disablement name for the mark-wrap option */
Packit Service 991b93
#define NOT_MARK_WRAP_name  (p11tool_opt_strs+3290)
Packit aea12f
/** disablement prefix for the mark-wrap option */
Packit Service 991b93
#define NOT_MARK_WRAP_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-wrap option */
Packit aea12f
#define MARK_WRAP_name      (NOT_MARK_WRAP_name + 3)
Packit aea12f
/** Compiled in flag settings for the mark-wrap option */
Packit aea12f
#define MARK_WRAP_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-trusted option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-trusted option */
Packit Service 991b93
#define MARK_TRUSTED_DESC      (p11tool_opt_strs+3306)
Packit aea12f
/** Upper-cased name for the mark-trusted option */
Packit Service 991b93
#define MARK_TRUSTED_NAME      (p11tool_opt_strs+3348)
Packit aea12f
/** disablement name for the mark-trusted option */
Packit Service 991b93
#define NOT_MARK_TRUSTED_name  (p11tool_opt_strs+3361)
Packit aea12f
/** disablement prefix for the mark-trusted option */
Packit Service 991b93
#define NOT_MARK_TRUSTED_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-trusted option */
Packit aea12f
#define MARK_TRUSTED_name      (NOT_MARK_TRUSTED_name + 3)
Packit aea12f
/** Other options that appear in conjunction with the mark-trusted option */
Packit aea12f
static int const aMark_TrustedCantList[] = {
Packit aea12f
    INDEX_OPT_MARK_DISTRUSTED, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the mark-trusted option */
Packit aea12f
#define MARK_TRUSTED_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-distrusted option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-distrusted option */
Packit Service 991b93
#define MARK_DISTRUSTED_DESC      (p11tool_opt_strs+3377)
Packit aea12f
/** Upper-cased name for the mark-distrusted option */
Packit Service 991b93
#define MARK_DISTRUSTED_NAME      (p11tool_opt_strs+3457)
Packit aea12f
/** Name string for the mark-distrusted option */
Packit Service 991b93
#define MARK_DISTRUSTED_name      (p11tool_opt_strs+3473)
Packit aea12f
/** Other options that appear in conjunction with the mark-distrusted option */
Packit aea12f
static int const aMark_DistrustedCantList[] = {
Packit aea12f
    INDEX_OPT_MARK_TRUSTED, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the mark-distrusted option */
Packit aea12f
#define MARK_DISTRUSTED_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-decrypt option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-decrypt option */
Packit Service 991b93
#define MARK_DECRYPT_DESC      (p11tool_opt_strs+3489)
Packit aea12f
/** Upper-cased name for the mark-decrypt option */
Packit Service 991b93
#define MARK_DECRYPT_NAME      (p11tool_opt_strs+3535)
Packit aea12f
/** disablement name for the mark-decrypt option */
Packit Service 991b93
#define NOT_MARK_DECRYPT_name  (p11tool_opt_strs+3548)
Packit aea12f
/** disablement prefix for the mark-decrypt option */
Packit Service 991b93
#define NOT_MARK_DECRYPT_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-decrypt option */
Packit aea12f
#define MARK_DECRYPT_name      (NOT_MARK_DECRYPT_name + 3)
Packit aea12f
/** Compiled in flag settings for the mark-decrypt option */
Packit aea12f
#define MARK_DECRYPT_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-sign option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-sign option */
Packit Service 991b93
#define MARK_SIGN_DESC      (p11tool_opt_strs+3564)
Packit aea12f
/** Upper-cased name for the mark-sign option */
Packit Service 991b93
#define MARK_SIGN_NAME      (p11tool_opt_strs+3620)
Packit aea12f
/** disablement name for the mark-sign option */
Packit Service 991b93
#define NOT_MARK_SIGN_name  (p11tool_opt_strs+3630)
Packit aea12f
/** disablement prefix for the mark-sign option */
Packit Service 991b93
#define NOT_MARK_SIGN_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-sign option */
Packit aea12f
#define MARK_SIGN_name      (NOT_MARK_SIGN_name + 3)
Packit aea12f
/** Compiled in flag settings for the mark-sign option */
Packit aea12f
#define MARK_SIGN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-ca option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-ca option */
Packit Service 991b93
#define MARK_CA_DESC      (p11tool_opt_strs+3643)
Packit aea12f
/** Upper-cased name for the mark-ca option */
Packit Service 991b93
#define MARK_CA_NAME      (p11tool_opt_strs+3682)
Packit aea12f
/** disablement name for the mark-ca option */
Packit Service 991b93
#define NOT_MARK_CA_name  (p11tool_opt_strs+3690)
Packit aea12f
/** disablement prefix for the mark-ca option */
Packit Service 991b93
#define NOT_MARK_CA_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-ca option */
Packit aea12f
#define MARK_CA_name      (NOT_MARK_CA_name + 3)
Packit aea12f
/** Compiled in flag settings for the mark-ca option */
Packit aea12f
#define MARK_CA_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  mark-private option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the mark-private option */
Packit Service 991b93
#define MARK_PRIVATE_DESC      (p11tool_opt_strs+3701)
Packit aea12f
/** Upper-cased name for the mark-private option */
Packit Service 991b93
#define MARK_PRIVATE_NAME      (p11tool_opt_strs+3743)
Packit aea12f
/** disablement name for the mark-private option */
Packit Service 991b93
#define NOT_MARK_PRIVATE_name  (p11tool_opt_strs+3756)
Packit aea12f
/** disablement prefix for the mark-private option */
Packit Service 991b93
#define NOT_MARK_PRIVATE_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the mark-private option */
Packit aea12f
#define MARK_PRIVATE_name      (NOT_MARK_PRIVATE_name + 3)
Packit aea12f
/** Compiled in flag settings for the mark-private option */
Packit aea12f
#define MARK_PRIVATE_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  ca option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the ca option */
Packit Service 991b93
#define CA_DESC    (p11tool_opt_strs+3772)
Packit aea12f
#define CA_NAME    NULL
Packit aea12f
/** Unmodified name string for the ca option */
Packit Service 991b93
#define CA_name    (p11tool_opt_strs+3806)
Packit aea12f
/** Compiled in flag settings for the ca option */
Packit aea12f
#define CA_FLAGS     (MARK_CA_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  private option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the private option */
Packit Service 991b93
#define PRIVATE_DESC    (p11tool_opt_strs+3809)
Packit aea12f
#define PRIVATE_NAME    NULL
Packit aea12f
/** Unmodified name string for the private option */
Packit Service 991b93
#define PRIVATE_name    (p11tool_opt_strs+3848)
Packit aea12f
/** Compiled in flag settings for the private option */
Packit aea12f
#define PRIVATE_FLAGS     (MARK_PRIVATE_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  secret-key option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the secret-key option */
Packit Service 991b93
#define SECRET_KEY_DESC      (p11tool_opt_strs+3856)
Packit aea12f
/** Upper-cased name for the secret-key option */
Packit Service 991b93
#define SECRET_KEY_NAME      (p11tool_opt_strs+3889)
Packit aea12f
/** Name string for the secret-key option */
Packit Service 991b93
#define SECRET_KEY_name      (p11tool_opt_strs+3900)
Packit aea12f
/** Compiled in flag settings for the secret-key option */
Packit aea12f
#define SECRET_KEY_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  load-privkey option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the load-privkey option */
Packit Service 991b93
#define LOAD_PRIVKEY_DESC      (p11tool_opt_strs+3911)
Packit aea12f
/** Upper-cased name for the load-privkey option */
Packit Service 991b93
#define LOAD_PRIVKEY_NAME      (p11tool_opt_strs+3935)
Packit aea12f
/** Name string for the load-privkey option */
Packit Service 991b93
#define LOAD_PRIVKEY_name      (p11tool_opt_strs+3948)
Packit aea12f
/** Compiled in flag settings for the load-privkey option */
Packit aea12f
#define LOAD_PRIVKEY_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  load-pubkey option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the load-pubkey option */
Packit Service 991b93
#define LOAD_PUBKEY_DESC      (p11tool_opt_strs+3961)
Packit aea12f
/** Upper-cased name for the load-pubkey option */
Packit Service 991b93
#define LOAD_PUBKEY_NAME      (p11tool_opt_strs+3984)
Packit aea12f
/** Name string for the load-pubkey option */
Packit Service 991b93
#define LOAD_PUBKEY_name      (p11tool_opt_strs+3996)
Packit aea12f
/** Compiled in flag settings for the load-pubkey option */
Packit aea12f
#define LOAD_PUBKEY_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  load-certificate option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the load-certificate option */
Packit Service 991b93
#define LOAD_CERTIFICATE_DESC      (p11tool_opt_strs+4008)
Packit aea12f
/** Upper-cased name for the load-certificate option */
Packit Service 991b93
#define LOAD_CERTIFICATE_NAME      (p11tool_opt_strs+4032)
Packit aea12f
/** Name string for the load-certificate option */
Packit Service 991b93
#define LOAD_CERTIFICATE_name      (p11tool_opt_strs+4049)
Packit aea12f
/** Compiled in flag settings for the load-certificate option */
Packit aea12f
#define LOAD_CERTIFICATE_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  other_options option description:
Packit aea12f
 */
Packit aea12f
/** other_options option separation text */
Packit Service 991b93
#define OTHER_OPTIONS_DESC      (p11tool_opt_strs+4066)
Packit aea12f
#define OTHER_OPTIONS_FLAGS     (OPTST_DOCUMENT | OPTST_NO_INIT)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  debug option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the debug option */
Packit Service 991b93
#define DEBUG_DESC      (p11tool_opt_strs+4081)
Packit aea12f
/** Upper-cased name for the debug option */
Packit Service 991b93
#define DEBUG_NAME      (p11tool_opt_strs+4098)
Packit aea12f
/** Name string for the debug option */
Packit Service 991b93
#define DEBUG_name      (p11tool_opt_strs+4104)
Packit aea12f
/** Compiled in flag settings for the debug option */
Packit aea12f
#define DEBUG_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  outfile option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the outfile option */
Packit Service 991b93
#define OUTFILE_DESC      (p11tool_opt_strs+4110)
Packit aea12f
/** Upper-cased name for the outfile option */
Packit Service 991b93
#define OUTFILE_NAME      (p11tool_opt_strs+4122)
Packit aea12f
/** Name string for the outfile option */
Packit Service 991b93
#define OUTFILE_name      (p11tool_opt_strs+4130)
Packit aea12f
/** Compiled in flag settings for the outfile option */
Packit aea12f
#define OUTFILE_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  login option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the login option */
Packit Service 991b93
#define LOGIN_DESC      (p11tool_opt_strs+4138)
Packit aea12f
/** Upper-cased name for the login option */
Packit Service 991b93
#define LOGIN_NAME      (p11tool_opt_strs+4166)
Packit aea12f
/** disablement name for the login option */
Packit Service 991b93
#define NOT_LOGIN_name  (p11tool_opt_strs+4172)
Packit aea12f
/** disablement prefix for the login option */
Packit Service 991b93
#define NOT_LOGIN_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the login option */
Packit aea12f
#define LOGIN_name      (NOT_LOGIN_name + 3)
Packit aea12f
/** Compiled in flag settings for the login option */
Packit aea12f
#define LOGIN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  so-login option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the so-login option */
Packit Service 991b93
#define SO_LOGIN_DESC      (p11tool_opt_strs+4181)
Packit aea12f
/** Upper-cased name for the so-login option */
Packit Service 991b93
#define SO_LOGIN_NAME      (p11tool_opt_strs+4219)
Packit aea12f
/** disablement name for the so-login option */
Packit Service 991b93
#define NOT_SO_LOGIN_name  (p11tool_opt_strs+4228)
Packit aea12f
/** disablement prefix for the so-login option */
Packit Service 991b93
#define NOT_SO_LOGIN_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the so-login option */
Packit aea12f
#define SO_LOGIN_name      (NOT_SO_LOGIN_name + 3)
Packit aea12f
/** Compiled in flag settings for the so-login option */
Packit aea12f
#define SO_LOGIN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  admin-login option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the admin-login option */
Packit Service 991b93
#define ADMIN_LOGIN_DESC    (p11tool_opt_strs+4240)
Packit aea12f
#define ADMIN_LOGIN_NAME    NULL
Packit aea12f
/** Unmodified name string for the admin-login option */
Packit Service 991b93
#define ADMIN_LOGIN_name    (p11tool_opt_strs+4275)
Packit aea12f
/** Compiled in flag settings for the admin-login option */
Packit aea12f
#define ADMIN_LOGIN_FLAGS     (SO_LOGIN_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  test-sign option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the test-sign option */
Packit Service 991b93
#define TEST_SIGN_DESC      (p11tool_opt_strs+4287)
Packit aea12f
/** Upper-cased name for the test-sign option */
Packit Service 991b93
#define TEST_SIGN_NAME      (p11tool_opt_strs+4340)
Packit aea12f
/** Name string for the test-sign option */
Packit Service 991b93
#define TEST_SIGN_name      (p11tool_opt_strs+4350)
Packit aea12f
/** Compiled in flag settings for the test-sign option */
Packit aea12f
#define TEST_SIGN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  sign-params option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the sign-params option */
Packit Service 991b93
#define SIGN_PARAMS_DESC      (p11tool_opt_strs+4360)
Packit aea12f
/** Upper-cased name for the sign-params option */
Packit Service 991b93
#define SIGN_PARAMS_NAME      (p11tool_opt_strs+4401)
Packit aea12f
/** Name string for the sign-params option */
Packit Service 991b93
#define SIGN_PARAMS_name      (p11tool_opt_strs+4413)
Packit aea12f
/** Compiled in flag settings for the sign-params option */
Packit aea12f
#define SIGN_PARAMS_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  hash option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the hash option */
Packit Service 991b93
#define HASH_DESC      (p11tool_opt_strs+4425)
Packit aea12f
/** Upper-cased name for the hash option */
Packit Service 991b93
#define HASH_NAME      (p11tool_opt_strs+4459)
Packit aea12f
/** Name string for the hash option */
Packit Service 991b93
#define HASH_name      (p11tool_opt_strs+4464)
Packit aea12f
/** Compiled in flag settings for the hash option */
Packit aea12f
#define HASH_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  generate-random option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-random option */
Packit Service 991b93
#define GENERATE_RANDOM_DESC      (p11tool_opt_strs+4469)
Packit aea12f
/** Upper-cased name for the generate-random option */
Packit Service 991b93
#define GENERATE_RANDOM_NAME      (p11tool_opt_strs+4490)
Packit aea12f
/** Name string for the generate-random option */
Packit Service 991b93
#define GENERATE_RANDOM_name      (p11tool_opt_strs+4506)
Packit aea12f
/** Compiled in flag settings for the generate-random option */
Packit aea12f
#define GENERATE_RANDOM_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  pkcs8 option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the pkcs8 option */
Packit Service 991b93
#define PKCS8_DESC      (p11tool_opt_strs+4522)
Packit aea12f
/** Upper-cased name for the pkcs8 option */
Packit Service 991b93
#define PKCS8_NAME      (p11tool_opt_strs+4558)
Packit aea12f
/** Name string for the pkcs8 option */
Packit Service 991b93
#define PKCS8_name      (p11tool_opt_strs+4564)
Packit aea12f
/** Compiled in flag settings for the pkcs8 option */
Packit aea12f
#define PKCS8_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  inder option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the inder option */
Packit Service 991b93
#define INDER_DESC      (p11tool_opt_strs+4570)
Packit aea12f
/** Upper-cased name for the inder option */
Packit Service 991b93
#define INDER_NAME      (p11tool_opt_strs+4599)
Packit aea12f
/** disablement name for the inder option */
Packit Service 991b93
#define NOT_INDER_name  (p11tool_opt_strs+4605)
Packit aea12f
/** disablement prefix for the inder option */
Packit Service 991b93
#define NOT_INDER_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the inder option */
Packit aea12f
#define INDER_name      (NOT_INDER_name + 3)
Packit aea12f
/** Compiled in flag settings for the inder option */
Packit aea12f
#define INDER_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  inraw option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the inraw option */
Packit Service 991b93
#define INRAW_DESC    (p11tool_opt_strs+4614)
Packit aea12f
#define INRAW_NAME    NULL
Packit aea12f
/** Unmodified name string for the inraw option */
Packit Service 991b93
#define INRAW_name    (p11tool_opt_strs+4646)
Packit aea12f
/** Compiled in flag settings for the inraw option */
Packit aea12f
#define INRAW_FLAGS     (INDER_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  outder option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the outder option */
Packit Service 991b93
#define OUTDER_DESC      (p11tool_opt_strs+4652)
Packit aea12f
/** Upper-cased name for the outder option */
Packit Service 991b93
#define OUTDER_NAME      (p11tool_opt_strs+4724)
Packit aea12f
/** disablement name for the outder option */
Packit Service 991b93
#define NOT_OUTDER_name  (p11tool_opt_strs+4731)
Packit aea12f
/** disablement prefix for the outder option */
Packit Service 991b93
#define NOT_OUTDER_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the outder option */
Packit aea12f
#define OUTDER_name      (NOT_OUTDER_name + 3)
Packit aea12f
/** Compiled in flag settings for the outder option */
Packit aea12f
#define OUTDER_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  outraw option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the outraw option */
Packit Service 991b93
#define OUTRAW_DESC    (p11tool_opt_strs+4741)
Packit aea12f
#define OUTRAW_NAME    NULL
Packit aea12f
/** Unmodified name string for the outraw option */
Packit Service 991b93
#define OUTRAW_name    (p11tool_opt_strs+4774)
Packit aea12f
/** Compiled in flag settings for the outraw option */
Packit aea12f
#define OUTRAW_FLAGS     (OUTDER_FLAGS | OPTST_ALIAS)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  provider option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the provider option */
Packit Service 991b93
#define PROVIDER_DESC      (p11tool_opt_strs+4781)
Packit aea12f
/** Upper-cased name for the provider option */
Packit Service 991b93
#define PROVIDER_NAME      (p11tool_opt_strs+4819)
Packit aea12f
/** Name string for the provider option */
Packit Service 991b93
#define PROVIDER_name      (p11tool_opt_strs+4828)
Packit aea12f
/** Compiled in flag settings for the provider option */
Packit aea12f
#define PROVIDER_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  provider-opts option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the provider-opts option */
Packit Service 991b93
#define PROVIDER_OPTS_DESC      (p11tool_opt_strs+4837)
Packit aea12f
/** Upper-cased name for the provider-opts option */
Packit Service 991b93
#define PROVIDER_OPTS_NAME      (p11tool_opt_strs+4903)
Packit aea12f
/** Name string for the provider-opts option */
Packit Service 991b93
#define PROVIDER_OPTS_name      (p11tool_opt_strs+4917)
Packit aea12f
/** Compiled in flag settings for the provider-opts option */
Packit aea12f
#define PROVIDER_OPTS_FLAGS     (OPTST_DISABLED | OPTST_DEPRECATED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  detailed-url option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the detailed-url option */
Packit Service 991b93
#define DETAILED_URL_DESC      (p11tool_opt_strs+4931)
Packit aea12f
/** Upper-cased name for the detailed-url option */
Packit Service 991b93
#define DETAILED_URL_NAME      (p11tool_opt_strs+4951)
Packit aea12f
/** disablement name for the detailed-url option */
Packit Service 991b93
#define NOT_DETAILED_URL_name  (p11tool_opt_strs+4964)
Packit aea12f
/** disablement prefix for the detailed-url option */
Packit Service 991b93
#define NOT_DETAILED_URL_PFX   (p11tool_opt_strs+3303)
Packit aea12f
/** Name string for the detailed-url option */
Packit aea12f
#define DETAILED_URL_name      (NOT_DETAILED_URL_name + 3)
Packit aea12f
/** Compiled in flag settings for the detailed-url option */
Packit aea12f
#define DETAILED_URL_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  only-urls option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the only-urls option */
Packit Service 991b93
#define ONLY_URLS_DESC      (p11tool_opt_strs+4980)
Packit aea12f
/** Upper-cased name for the only-urls option */
Packit Service 991b93
#define ONLY_URLS_NAME      (p11tool_opt_strs+5024)
Packit aea12f
/** Name string for the only-urls option */
Packit Service 991b93
#define ONLY_URLS_name      (p11tool_opt_strs+5034)
Packit aea12f
/** Compiled in flag settings for the only-urls option */
Packit aea12f
#define ONLY_URLS_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  batch option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the batch option */
Packit Service 991b93
#define BATCH_DESC      (p11tool_opt_strs+5044)
Packit aea12f
/** Upper-cased name for the batch option */
Packit Service 991b93
#define BATCH_NAME      (p11tool_opt_strs+5082)
Packit aea12f
/** Name string for the batch option */
Packit Service 991b93
#define BATCH_name      (p11tool_opt_strs+5088)
Packit aea12f
/** Compiled in flag settings for the batch option */
Packit aea12f
#define BATCH_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/*
Packit aea12f
 *  Help/More_Help/Version option descriptions:
Packit aea12f
 */
Packit Service 991b93
#define HELP_DESC       (p11tool_opt_strs+5094)
Packit Service 991b93
#define HELP_name       (p11tool_opt_strs+5138)
Packit aea12f
#ifdef HAVE_WORKING_FORK
Packit Service 991b93
#define MORE_HELP_DESC  (p11tool_opt_strs+5143)
Packit Service 991b93
#define MORE_HELP_name  (p11tool_opt_strs+5188)
Packit aea12f
#define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
Packit aea12f
#else
Packit aea12f
#define MORE_HELP_DESC  HELP_DESC
Packit aea12f
#define MORE_HELP_name  HELP_name
Packit aea12f
#define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
Packit aea12f
#endif
Packit aea12f
#ifdef NO_OPTIONAL_OPT_ARGS
Packit aea12f
#  define VER_FLAGS     (OPTST_IMM | OPTST_NO_INIT)
Packit aea12f
#else
Packit aea12f
#  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
Packit aea12f
                         OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
Packit aea12f
#endif
Packit Service 991b93
#define VER_DESC        (p11tool_opt_strs+5198)
Packit Service 991b93
#define VER_name        (p11tool_opt_strs+5234)
Packit aea12f
/**
Packit aea12f
 *  Declare option callback procedures
Packit aea12f
 */
Packit aea12f
extern tOptProc
Packit aea12f
    optionBooleanVal,   optionNestedVal,    optionNumericVal,
Packit aea12f
    optionPagedUsage,   optionPrintVersion, optionResetOpt,
Packit aea12f
    optionStackArg,     optionTimeDate,     optionTimeVal,
Packit aea12f
    optionUnstackArg,   optionVendorOption;
Packit aea12f
static tOptProc
Packit aea12f
    doOptAdmin_Login,      doOptCa,               doOptDebug,
Packit aea12f
    doOptDistrusted,       doOptInraw,            doOptList_Keys,
Packit aea12f
    doOptList_Privkeys,    doOptLoad_Certificate, doOptLoad_Privkey,
Packit aea12f
    doOptLoad_Pubkey,      doOptOutraw,           doOptPrivate,
Packit aea12f
    doOptProvider,         doOptTrusted,          doUsageOpt;
Packit aea12f
#define VER_PROC        optionPrintVersion
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 *  Define the p11tool Option Descriptions.
Packit aea12f
 * This is an array of OPTION_CT entries, one for each
Packit aea12f
 * option that the p11tool program responds to.
Packit aea12f
 */
Packit aea12f
static tOptDesc optDesc[OPTION_CT] = {
Packit aea12f
  {  /* entry idx, value */ 0, 0,
Packit aea12f
     /* equiv idx, value */ 0, 0,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 0, 0,
Packit aea12f
     /* opt state flags  */ TOKEN_RELATED_OPTIONS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ TOKEN_RELATED_OPTIONS_DESC, NULL, NULL,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 1, VALUE_OPT_LIST_TOKENS,
Packit aea12f
     /* equiv idx, value */ 1, VALUE_OPT_LIST_TOKENS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_TOKENS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-tokens */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_TOKENS_DESC, LIST_TOKENS_NAME, LIST_TOKENS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 2, VALUE_OPT_LIST_TOKEN_URLS,
Packit aea12f
     /* equiv idx, value */ 2, VALUE_OPT_LIST_TOKEN_URLS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_TOKEN_URLS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-token-urls */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_TOKEN_URLS_DESC, LIST_TOKEN_URLS_NAME, LIST_TOKEN_URLS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 3, VALUE_OPT_LIST_MECHANISMS,
Packit aea12f
     /* equiv idx, value */ 3, VALUE_OPT_LIST_MECHANISMS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_MECHANISMS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-mechanisms */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_MECHANISMS_DESC, LIST_MECHANISMS_NAME, LIST_MECHANISMS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 4, VALUE_OPT_INITIALIZE,
Packit aea12f
     /* equiv idx, value */ 4, VALUE_OPT_INITIALIZE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INITIALIZE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --initialize */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ INITIALIZE_DESC, INITIALIZE_NAME, INITIALIZE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 5, VALUE_OPT_INITIALIZE_PIN,
Packit aea12f
     /* equiv idx, value */ 5, VALUE_OPT_INITIALIZE_PIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INITIALIZE_PIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --initialize-pin */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ INITIALIZE_PIN_DESC, INITIALIZE_PIN_NAME, INITIALIZE_PIN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 6, VALUE_OPT_INITIALIZE_SO_PIN,
Packit aea12f
     /* equiv idx, value */ 6, VALUE_OPT_INITIALIZE_SO_PIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INITIALIZE_SO_PIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --initialize-so-pin */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ INITIALIZE_SO_PIN_DESC, INITIALIZE_SO_PIN_NAME, INITIALIZE_SO_PIN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 7, VALUE_OPT_SET_PIN,
Packit aea12f
     /* equiv idx, value */ 7, VALUE_OPT_SET_PIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SET_PIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --set-pin */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SET_PIN_DESC, SET_PIN_NAME, SET_PIN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 8, VALUE_OPT_SET_SO_PIN,
Packit aea12f
     /* equiv idx, value */ 8, VALUE_OPT_SET_SO_PIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SET_SO_PIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --set-so-pin */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SET_SO_PIN_DESC, SET_SO_PIN_NAME, SET_SO_PIN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 0, 0,
Packit aea12f
     /* equiv idx, value */ 0, 0,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 0, 0,
Packit aea12f
     /* opt state flags  */ OBJECT_LIST_RELATED_OPTIONS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ OBJECT_LIST_RELATED_OPTIONS_DESC, NULL, NULL,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 10, VALUE_OPT_LIST_ALL,
Packit aea12f
     /* equiv idx, value */ 10, VALUE_OPT_LIST_ALL,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_ALL_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-all */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_ALL_DESC, LIST_ALL_NAME, LIST_ALL_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 11, VALUE_OPT_LIST_ALL_CERTS,
Packit aea12f
     /* equiv idx, value */ 11, VALUE_OPT_LIST_ALL_CERTS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_ALL_CERTS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-all-certs */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_ALL_CERTS_DESC, LIST_ALL_CERTS_NAME, LIST_ALL_CERTS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 12, VALUE_OPT_LIST_CERTS,
Packit aea12f
     /* equiv idx, value */ 12, VALUE_OPT_LIST_CERTS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_CERTS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-certs */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_CERTS_DESC, LIST_CERTS_NAME, LIST_CERTS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 13, VALUE_OPT_LIST_ALL_PRIVKEYS,
Packit aea12f
     /* equiv idx, value */ 13, VALUE_OPT_LIST_ALL_PRIVKEYS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_ALL_PRIVKEYS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-all-privkeys */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_ALL_PRIVKEYS_DESC, LIST_ALL_PRIVKEYS_NAME, LIST_ALL_PRIVKEYS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 14, VALUE_OPT_LIST_PRIVKEYS,
Packit aea12f
     /* equiv idx, value */ 14, VALUE_OPT_LIST_PRIVKEYS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_PRIVKEYS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-privkeys */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptList_Privkeys,
Packit aea12f
     /* desc, NAME, name */ LIST_PRIVKEYS_DESC, LIST_PRIVKEYS_NAME, LIST_PRIVKEYS_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 15, VALUE_OPT_LIST_KEYS,
Packit aea12f
     /* equiv idx, value */ 15, VALUE_OPT_LIST_KEYS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_KEYS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-keys */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptList_Keys,
Packit aea12f
     /* desc, NAME, name */ LIST_KEYS_DESC, LIST_KEYS_NAME, LIST_KEYS_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 16, VALUE_OPT_LIST_ALL_TRUSTED,
Packit aea12f
     /* equiv idx, value */ 16, VALUE_OPT_LIST_ALL_TRUSTED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_ALL_TRUSTED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list-all-trusted */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_ALL_TRUSTED_DESC, LIST_ALL_TRUSTED_NAME, LIST_ALL_TRUSTED_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 17, VALUE_OPT_EXPORT,
Packit aea12f
     /* equiv idx, value */ 17, VALUE_OPT_EXPORT,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ EXPORT_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --export */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aExportCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ EXPORT_DESC, EXPORT_NAME, EXPORT_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 18, VALUE_OPT_EXPORT_STAPLED,
Packit aea12f
     /* equiv idx, value */ 18, VALUE_OPT_EXPORT_STAPLED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ EXPORT_STAPLED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --export-stapled */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aExport_StapledCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ EXPORT_STAPLED_DESC, EXPORT_STAPLED_NAME, EXPORT_STAPLED_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 19, VALUE_OPT_EXPORT_CHAIN,
Packit aea12f
     /* equiv idx, value */ 19, VALUE_OPT_EXPORT_CHAIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ EXPORT_CHAIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --export-chain */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aExport_ChainCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ EXPORT_CHAIN_DESC, EXPORT_CHAIN_NAME, EXPORT_CHAIN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 20, VALUE_OPT_EXPORT_PUBKEY,
Packit aea12f
     /* equiv idx, value */ 20, VALUE_OPT_EXPORT_PUBKEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ EXPORT_PUBKEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --export-pubkey */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aExport_PubkeyCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ EXPORT_PUBKEY_DESC, EXPORT_PUBKEY_NAME, EXPORT_PUBKEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 21, VALUE_OPT_INFO,
Packit aea12f
     /* equiv idx, value */ 21, VALUE_OPT_INFO,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INFO_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --info */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ INFO_DESC, INFO_NAME, INFO_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 22, VALUE_OPT_TRUSTED,
Packit aea12f
     /* equiv idx, value */ 22, VALUE_OPT_TRUSTED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ TRUSTED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --trusted */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptTrusted,
Packit aea12f
     /* desc, NAME, name */ TRUSTED_DESC, TRUSTED_NAME, TRUSTED_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 23, VALUE_OPT_DISTRUSTED,
Packit aea12f
     /* equiv idx, value */ 23, VALUE_OPT_DISTRUSTED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ DISTRUSTED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --distrusted */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptDistrusted,
Packit aea12f
     /* desc, NAME, name */ DISTRUSTED_DESC, DISTRUSTED_NAME, DISTRUSTED_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 0, 0,
Packit aea12f
     /* equiv idx, value */ 0, 0,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 0, 0,
Packit aea12f
     /* opt state flags  */ KEYGEN_RELATED_OPTIONS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ KEYGEN_RELATED_OPTIONS_DESC, NULL, NULL,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 25, VALUE_OPT_GENERATE_PRIVKEY,
Packit aea12f
     /* equiv idx, value */ 25, VALUE_OPT_GENERATE_PRIVKEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ GENERATE_PRIVKEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --generate-privkey */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ GENERATE_PRIVKEY_DESC, GENERATE_PRIVKEY_NAME, GENERATE_PRIVKEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 26, VALUE_OPT_GENERATE_RSA,
Packit aea12f
     /* equiv idx, value */ 26, VALUE_OPT_GENERATE_RSA,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ GENERATE_RSA_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --generate-rsa */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ GENERATE_RSA_DESC, GENERATE_RSA_NAME, GENERATE_RSA_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 27, VALUE_OPT_GENERATE_DSA,
Packit aea12f
     /* equiv idx, value */ 27, VALUE_OPT_GENERATE_DSA,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ GENERATE_DSA_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --generate-dsa */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ GENERATE_DSA_DESC, GENERATE_DSA_NAME, GENERATE_DSA_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 28, VALUE_OPT_GENERATE_ECC,
Packit aea12f
     /* equiv idx, value */ 28, VALUE_OPT_GENERATE_ECC,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ GENERATE_ECC_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --generate-ecc */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ GENERATE_ECC_DESC, GENERATE_ECC_NAME, GENERATE_ECC_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 29, VALUE_OPT_BITS,
Packit aea12f
     /* equiv idx, value */ 29, VALUE_OPT_BITS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ BITS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --bits */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ optionNumericVal,
Packit aea12f
     /* desc, NAME, name */ BITS_DESC, BITS_NAME, BITS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 30, VALUE_OPT_CURVE,
Packit aea12f
     /* equiv idx, value */ 30, VALUE_OPT_CURVE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ CURVE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --curve */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ CURVE_DESC, CURVE_NAME, CURVE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 31, VALUE_OPT_SEC_PARAM,
Packit aea12f
     /* equiv idx, value */ 31, VALUE_OPT_SEC_PARAM,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SEC_PARAM_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --sec-param */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SEC_PARAM_DESC, SEC_PARAM_NAME, SEC_PARAM_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 0, 0,
Packit aea12f
     /* equiv idx, value */ 0, 0,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 0, 0,
Packit aea12f
     /* opt state flags  */ WRITE_OBJECT_RELATED_OPTIONS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ WRITE_OBJECT_RELATED_OPTIONS_DESC, NULL, NULL,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 33, VALUE_OPT_SET_ID,
Packit aea12f
     /* equiv idx, value */ 33, VALUE_OPT_SET_ID,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SET_ID_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --set-id */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aSet_IdCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SET_ID_DESC, SET_ID_NAME, SET_ID_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 34, VALUE_OPT_SET_LABEL,
Packit aea12f
     /* equiv idx, value */ 34, VALUE_OPT_SET_LABEL,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SET_LABEL_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --set-label */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aSet_LabelCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SET_LABEL_DESC, SET_LABEL_NAME, SET_LABEL_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 35, VALUE_OPT_WRITE,
Packit aea12f
     /* equiv idx, value */ 35, VALUE_OPT_WRITE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ WRITE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --write */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ WRITE_DESC, WRITE_NAME, WRITE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 36, VALUE_OPT_DELETE,
Packit aea12f
     /* equiv idx, value */ 36, VALUE_OPT_DELETE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ DELETE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --delete */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ DELETE_DESC, DELETE_NAME, DELETE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 37, VALUE_OPT_LABEL,
Packit aea12f
     /* equiv idx, value */ 37, VALUE_OPT_LABEL,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LABEL_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --label */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LABEL_DESC, LABEL_NAME, LABEL_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 38, VALUE_OPT_ID,
Packit aea12f
     /* equiv idx, value */ 38, VALUE_OPT_ID,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ ID_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --id */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ ID_DESC, ID_NAME, ID_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 39, VALUE_OPT_MARK_WRAP,
Packit aea12f
     /* equiv idx, value */ 39, VALUE_OPT_MARK_WRAP,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_WRAP_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-wrap */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_WRAP_DESC, MARK_WRAP_NAME, MARK_WRAP_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_WRAP_name, NOT_MARK_WRAP_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 40, VALUE_OPT_MARK_TRUSTED,
Packit aea12f
     /* equiv idx, value */ 40, VALUE_OPT_MARK_TRUSTED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_TRUSTED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-trusted */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aMark_TrustedCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_TRUSTED_DESC, MARK_TRUSTED_NAME, MARK_TRUSTED_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_TRUSTED_name, NOT_MARK_TRUSTED_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 41, VALUE_OPT_MARK_DISTRUSTED,
Packit aea12f
     /* equiv idx, value */ 41, VALUE_OPT_MARK_DISTRUSTED,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_DISTRUSTED_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-distrusted */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, aMark_DistrustedCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_DISTRUSTED_DESC, MARK_DISTRUSTED_NAME, MARK_DISTRUSTED_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 42, VALUE_OPT_MARK_DECRYPT,
Packit aea12f
     /* equiv idx, value */ 42, VALUE_OPT_MARK_DECRYPT,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_DECRYPT_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-decrypt */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_DECRYPT_DESC, MARK_DECRYPT_NAME, MARK_DECRYPT_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_DECRYPT_name, NOT_MARK_DECRYPT_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 43, VALUE_OPT_MARK_SIGN,
Packit aea12f
     /* equiv idx, value */ 43, VALUE_OPT_MARK_SIGN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_SIGN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-sign */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_SIGN_DESC, MARK_SIGN_NAME, MARK_SIGN_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_SIGN_name, NOT_MARK_SIGN_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 44, VALUE_OPT_MARK_CA,
Packit aea12f
     /* equiv idx, value */ 44, VALUE_OPT_MARK_CA,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_CA_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-ca */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_CA_DESC, MARK_CA_NAME, MARK_CA_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_CA_name, NOT_MARK_CA_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 45, VALUE_OPT_MARK_PRIVATE,
Packit aea12f
     /* equiv idx, value */ 45, VALUE_OPT_MARK_PRIVATE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MARK_PRIVATE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --mark-private */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ MARK_PRIVATE_DESC, MARK_PRIVATE_NAME, MARK_PRIVATE_name,
Packit aea12f
     /* disablement strs */ NOT_MARK_PRIVATE_name, NOT_MARK_PRIVATE_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 46, VALUE_OPT_CA,
Packit aea12f
     /* equiv idx, value */ 46, VALUE_OPT_CA,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ CA_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --ca */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptCa,
Packit aea12f
     /* desc, NAME, name */ CA_DESC, CA_NAME, CA_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 47, VALUE_OPT_PRIVATE,
Packit aea12f
     /* equiv idx, value */ 47, VALUE_OPT_PRIVATE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ PRIVATE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --private */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptPrivate,
Packit aea12f
     /* desc, NAME, name */ PRIVATE_DESC, PRIVATE_NAME, PRIVATE_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 48, VALUE_OPT_SECRET_KEY,
Packit aea12f
     /* equiv idx, value */ 48, VALUE_OPT_SECRET_KEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SECRET_KEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --secret-key */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SECRET_KEY_DESC, SECRET_KEY_NAME, SECRET_KEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 49, VALUE_OPT_LOAD_PRIVKEY,
Packit aea12f
     /* equiv idx, value */ 49, VALUE_OPT_LOAD_PRIVKEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LOAD_PRIVKEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --load-privkey */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptLoad_Privkey,
Packit aea12f
     /* desc, NAME, name */ LOAD_PRIVKEY_DESC, LOAD_PRIVKEY_NAME, LOAD_PRIVKEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 50, VALUE_OPT_LOAD_PUBKEY,
Packit aea12f
     /* equiv idx, value */ 50, VALUE_OPT_LOAD_PUBKEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LOAD_PUBKEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --load-pubkey */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptLoad_Pubkey,
Packit aea12f
     /* desc, NAME, name */ LOAD_PUBKEY_DESC, LOAD_PUBKEY_NAME, LOAD_PUBKEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 51, VALUE_OPT_LOAD_CERTIFICATE,
Packit aea12f
     /* equiv idx, value */ 51, VALUE_OPT_LOAD_CERTIFICATE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LOAD_CERTIFICATE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --load-certificate */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptLoad_Certificate,
Packit aea12f
     /* desc, NAME, name */ LOAD_CERTIFICATE_DESC, LOAD_CERTIFICATE_NAME, LOAD_CERTIFICATE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 0, 0,
Packit aea12f
     /* equiv idx, value */ 0, 0,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 0, 0,
Packit aea12f
     /* opt state flags  */ OTHER_OPTIONS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ OTHER_OPTIONS_DESC, NULL, NULL,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 53, VALUE_OPT_DEBUG,
Packit aea12f
     /* equiv idx, value */ 53, VALUE_OPT_DEBUG,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ DEBUG_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --debug */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptDebug,
Packit aea12f
     /* desc, NAME, name */ DEBUG_DESC, DEBUG_NAME, DEBUG_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 54, VALUE_OPT_OUTFILE,
Packit aea12f
     /* equiv idx, value */ 54, VALUE_OPT_OUTFILE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ OUTFILE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --outfile */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ OUTFILE_DESC, OUTFILE_NAME, OUTFILE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 55, VALUE_OPT_LOGIN,
Packit aea12f
     /* equiv idx, value */ 55, VALUE_OPT_LOGIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LOGIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --login */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LOGIN_DESC, LOGIN_NAME, LOGIN_name,
Packit aea12f
     /* disablement strs */ NOT_LOGIN_name, NOT_LOGIN_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 56, VALUE_OPT_SO_LOGIN,
Packit aea12f
     /* equiv idx, value */ 56, VALUE_OPT_SO_LOGIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SO_LOGIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --so-login */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SO_LOGIN_DESC, SO_LOGIN_NAME, SO_LOGIN_name,
Packit aea12f
     /* disablement strs */ NOT_SO_LOGIN_name, NOT_SO_LOGIN_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 57, VALUE_OPT_ADMIN_LOGIN,
Packit aea12f
     /* equiv idx, value */ 57, VALUE_OPT_ADMIN_LOGIN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ ADMIN_LOGIN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --admin-login */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptAdmin_Login,
Packit aea12f
     /* desc, NAME, name */ ADMIN_LOGIN_DESC, ADMIN_LOGIN_NAME, ADMIN_LOGIN_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 58, VALUE_OPT_TEST_SIGN,
Packit aea12f
     /* equiv idx, value */ 58, VALUE_OPT_TEST_SIGN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ TEST_SIGN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --test-sign */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ TEST_SIGN_DESC, TEST_SIGN_NAME, TEST_SIGN_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 59, VALUE_OPT_SIGN_PARAMS,
Packit aea12f
     /* equiv idx, value */ 59, VALUE_OPT_SIGN_PARAMS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SIGN_PARAMS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --sign-params */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SIGN_PARAMS_DESC, SIGN_PARAMS_NAME, SIGN_PARAMS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 60, VALUE_OPT_HASH,
Packit aea12f
     /* equiv idx, value */ 60, VALUE_OPT_HASH,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ HASH_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --hash */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ HASH_DESC, HASH_NAME, HASH_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 61, VALUE_OPT_GENERATE_RANDOM,
Packit aea12f
     /* equiv idx, value */ 61, VALUE_OPT_GENERATE_RANDOM,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ GENERATE_RANDOM_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --generate-random */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ optionNumericVal,
Packit aea12f
     /* desc, NAME, name */ GENERATE_RANDOM_DESC, GENERATE_RANDOM_NAME, GENERATE_RANDOM_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 62, VALUE_OPT_PKCS8,
Packit aea12f
     /* equiv idx, value */ 62, VALUE_OPT_PKCS8,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ PKCS8_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --pkcs8 */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ PKCS8_DESC, PKCS8_NAME, PKCS8_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 63, VALUE_OPT_INDER,
Packit aea12f
     /* equiv idx, value */ 63, VALUE_OPT_INDER,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INDER_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --inder */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ INDER_DESC, INDER_NAME, INDER_name,
Packit aea12f
     /* disablement strs */ NOT_INDER_name, NOT_INDER_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 64, VALUE_OPT_INRAW,
Packit aea12f
     /* equiv idx, value */ 64, VALUE_OPT_INRAW,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INRAW_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --inraw */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptInraw,
Packit aea12f
     /* desc, NAME, name */ INRAW_DESC, INRAW_NAME, INRAW_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 65, VALUE_OPT_OUTDER,
Packit aea12f
     /* equiv idx, value */ 65, VALUE_OPT_OUTDER,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ OUTDER_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --outder */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ OUTDER_DESC, OUTDER_NAME, OUTDER_name,
Packit aea12f
     /* disablement strs */ NOT_OUTDER_name, NOT_OUTDER_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 66, VALUE_OPT_OUTRAW,
Packit aea12f
     /* equiv idx, value */ 66, VALUE_OPT_OUTRAW,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ OUTRAW_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --outraw */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptOutraw,
Packit aea12f
     /* desc, NAME, name */ OUTRAW_DESC, OUTRAW_NAME, OUTRAW_name,
Packit aea12f
     /* disablement strs */ 0, 0 },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 67, VALUE_OPT_PROVIDER,
Packit aea12f
     /* equiv idx, value */ 67, VALUE_OPT_PROVIDER,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ PROVIDER_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --provider */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptProvider,
Packit aea12f
     /* desc, NAME, name */ PROVIDER_DESC, PROVIDER_NAME, PROVIDER_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 68, VALUE_OPT_PROVIDER_OPTS,
Packit aea12f
     /* equiv idx, value */ 68, VALUE_OPT_PROVIDER_OPTS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ PROVIDER_OPTS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --provider-opts */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ PROVIDER_OPTS_DESC, PROVIDER_OPTS_NAME, PROVIDER_OPTS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 69, VALUE_OPT_DETAILED_URL,
Packit aea12f
     /* equiv idx, value */ 69, VALUE_OPT_DETAILED_URL,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ DETAILED_URL_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --detailed-url */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ DETAILED_URL_DESC, DETAILED_URL_NAME, DETAILED_URL_name,
Packit aea12f
     /* disablement strs */ NOT_DETAILED_URL_name, NOT_DETAILED_URL_PFX },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 70, VALUE_OPT_ONLY_URLS,
Packit aea12f
     /* equiv idx, value */ 70, VALUE_OPT_ONLY_URLS,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ ONLY_URLS_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --only-urls */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ ONLY_URLS_DESC, ONLY_URLS_NAME, ONLY_URLS_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 71, VALUE_OPT_BATCH,
Packit aea12f
     /* equiv idx, value */ 71, VALUE_OPT_BATCH,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ BATCH_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --batch */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ BATCH_DESC, BATCH_NAME, BATCH_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
Packit aea12f
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_VERSION,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ VER_FLAGS, AOUSE_VERSION,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ VER_PROC,
Packit aea12f
     /* desc, NAME, name */ VER_DESC, NULL, VER_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
Packit aea12f
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_HELP,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doUsageOpt,
Packit aea12f
     /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
Packit aea12f
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
Packit aea12f
     /* last opt argumnt */ { NULL },
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL,  NULL,
Packit aea12f
     /* option proc      */ optionPagedUsage,
Packit aea12f
     /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
Packit aea12f
     /* disablement strs */ NULL, NULL }
Packit aea12f
};
Packit aea12f
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/** Reference to the upper cased version of p11tool. */
Packit Service 991b93
#define zPROGNAME       (p11tool_opt_strs+5242)
Packit aea12f
/** Reference to the title line for p11tool usage. */
Packit Service 991b93
#define zUsageTitle     (p11tool_opt_strs+5250)
Packit aea12f
/** There is no p11tool configuration file. */
Packit aea12f
#define zRcName         NULL
Packit aea12f
/** There are no directories to search for p11tool config files. */
Packit aea12f
#define apzHomeList     NULL
Packit aea12f
/** The p11tool program bug email address. */
Packit Service 991b93
#define zBugsAddr       (p11tool_opt_strs+5345)
Packit aea12f
/** Clarification/explanation of what p11tool does. */
Packit Service 991b93
#define zExplain        (p11tool_opt_strs+5361)
Packit aea12f
/** Extra detail explaining what p11tool does. */
Packit Service 991b93
#define zDetail         (p11tool_opt_strs+5363)
Packit aea12f
/** The full version string for p11tool. */
Packit Service 991b93
#define zFullVersion    (p11tool_opt_strs+5905)
Packit Service 991b93
/* extracted from optcode.tlib near line 342 */
Packit aea12f
Packit aea12f
#if defined(ENABLE_NLS)
Packit aea12f
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
Packit aea12f
  static tOptionXlateProc translate_option_strings;
Packit aea12f
#else
Packit aea12f
# define OPTPROC_BASE OPTPROC_NONE
Packit aea12f
# define translate_option_strings NULL
Packit aea12f
#endif /* ENABLE_NLS */
Packit aea12f
Packit aea12f
#define p11tool_full_usage (NULL)
Packit Service 991b93
#define p11tool_short_usage (p11tool_opt_strs+5920)
Packit aea12f
Packit aea12f
#endif /* not defined __doxygen__ */
Packit aea12f
Packit aea12f
/*
Packit aea12f
 *  Create the static procedure(s) declared above.
Packit aea12f
 */
Packit aea12f
/**
Packit aea12f
 * The callout function that invokes the optionUsage function.
Packit aea12f
 *
Packit aea12f
 * @param[in] opts the AutoOpts option description structure
Packit aea12f
 * @param[in] od   the descriptor for the "help" (usage) option.
Packit aea12f
 * @noreturn
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doUsageOpt(tOptions * opts, tOptDesc * od)
Packit aea12f
{
Packit aea12f
    int ex_code;
Packit aea12f
    ex_code = P11TOOL_EXIT_SUCCESS;
Packit aea12f
    optionUsage(&p11toolOptions, ex_code);
Packit aea12f
    /* NOTREACHED */
Packit aea12f
    exit(P11TOOL_EXIT_FAILURE);
Packit aea12f
    (void)opts;
Packit aea12f
    (void)od;
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the list-privkeys option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptList_Privkeys(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_LIST_ALL_PRIVKEYS);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the list-keys option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptList_Keys(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_LIST_ALL_PRIVKEYS);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the trusted option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptTrusted(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_MARK_TRUSTED);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the distrusted option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptDistrusted(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_MARK_DISTRUSTED);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the ca option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptCa(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_MARK_CA);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the private option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptPrivate(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_MARK_PRIVATE);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the load-privkey option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptLoad_Privkey(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    static teOptFileType const  type =
Packit aea12f
        FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
Packit aea12f
    static tuFileMode           mode;
Packit aea12f
#ifndef O_CLOEXEC
Packit aea12f
#  define O_CLOEXEC 0
Packit aea12f
#endif
Packit aea12f
    mode.file_flags = O_CLOEXEC;
Packit aea12f
Packit aea12f
    /*
Packit aea12f
     * This function handles special invalid values for "pOptions"
Packit aea12f
     */
Packit aea12f
    optionFileCheck(pOptions, pOptDesc, type, mode);
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the load-pubkey option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptLoad_Pubkey(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    static teOptFileType const  type =
Packit aea12f
        FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
Packit aea12f
    static tuFileMode           mode;
Packit aea12f
#ifndef O_CLOEXEC
Packit aea12f
#  define O_CLOEXEC 0
Packit aea12f
#endif
Packit aea12f
    mode.file_flags = O_CLOEXEC;
Packit aea12f
Packit aea12f
    /*
Packit aea12f
     * This function handles special invalid values for "pOptions"
Packit aea12f
     */
Packit aea12f
    optionFileCheck(pOptions, pOptDesc, type, mode);
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the load-certificate option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptLoad_Certificate(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    static teOptFileType const  type =
Packit aea12f
        FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
Packit aea12f
    static tuFileMode           mode;
Packit aea12f
#ifndef O_CLOEXEC
Packit aea12f
#  define O_CLOEXEC 0
Packit aea12f
#endif
Packit aea12f
    mode.file_flags = O_CLOEXEC;
Packit aea12f
Packit aea12f
    /*
Packit aea12f
     * This function handles special invalid values for "pOptions"
Packit aea12f
     */
Packit aea12f
    optionFileCheck(pOptions, pOptDesc, type, mode);
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the debug option.
Packit aea12f
 * Specifies the debug level.
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptDebug(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    static struct {long rmin, rmax;} const rng[1] = {
Packit aea12f
        { 0 ,  9999 } };
Packit aea12f
    int  ix;
Packit aea12f
Packit aea12f
    if (pOptions <= OPTPROC_EMIT_LIMIT)
Packit aea12f
        goto emit_ranges;
Packit aea12f
    optionNumericVal(pOptions, pOptDesc);
Packit aea12f
Packit aea12f
    for (ix = 0; ix < 1; ix++) {
Packit aea12f
        if (pOptDesc->optArg.argInt < rng[ix].rmin)
Packit aea12f
            continue;  /* ranges need not be ordered. */
Packit aea12f
        if (pOptDesc->optArg.argInt == rng[ix].rmin)
Packit aea12f
            return;
Packit aea12f
        if (rng[ix].rmax == LONG_MIN)
Packit aea12f
            continue;
Packit aea12f
        if (pOptDesc->optArg.argInt <= rng[ix].rmax)
Packit aea12f
            return;
Packit aea12f
    }
Packit aea12f
Packit aea12f
    option_usage_fp = stderr;
Packit aea12f
Packit aea12f
 emit_ranges:
Packit aea12f
optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1);
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the admin-login option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptAdmin_Login(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_SO_LOGIN);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the inraw option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptInraw(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_INDER);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the outraw option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptOutraw(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    int res = optionAlias(pOptions, pOptDesc, INDEX_OPT_OUTDER);
Packit aea12f
    if ((res != 0) && ((pOptions->fOptSet & OPTPROC_ERRSTOP) != 0))
Packit aea12f
        USAGE(P11TOOL_EXIT_USAGE_ERROR);
Packit aea12f
Packit aea12f
}
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 * Code to handle the provider option.
Packit aea12f
 * This will override the default options in /etc/gnutls/pkcs11.conf
Packit aea12f
 * @param[in] pOptions the p11tool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptProvider(tOptions* pOptions, tOptDesc* pOptDesc)
Packit aea12f
{
Packit aea12f
    static teOptFileType const  type =
Packit aea12f
        FTYPE_MODE_MAY_EXIST + FTYPE_MODE_NO_OPEN;
Packit aea12f
    static tuFileMode           mode;
Packit aea12f
#ifndef O_CLOEXEC
Packit aea12f
#  define O_CLOEXEC 0
Packit aea12f
#endif
Packit aea12f
    mode.file_flags = O_CLOEXEC;
Packit aea12f
Packit aea12f
    /*
Packit aea12f
     * This function handles special invalid values for "pOptions"
Packit aea12f
     */
Packit aea12f
    optionFileCheck(pOptions, pOptDesc, type, mode);
Packit aea12f
}
Packit aea12f
/* extracted from optmain.tlib near line 1250 */
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * The directory containing the data associated with p11tool.
Packit aea12f
 */
Packit aea12f
#ifndef  PKGDATADIR
Packit aea12f
# define PKGDATADIR ""
Packit aea12f
#endif
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * Information about the person or institution that packaged p11tool
Packit aea12f
 * for the current distribution.
Packit aea12f
 */
Packit aea12f
#ifndef  WITH_PACKAGER
Packit aea12f
# define p11tool_packager_info NULL
Packit aea12f
#else
Packit aea12f
/** Packager information for p11tool. */
Packit aea12f
static char const p11tool_packager_info[] =
Packit aea12f
    "Packaged by " WITH_PACKAGER
Packit aea12f
Packit aea12f
# ifdef WITH_PACKAGER_VERSION
Packit aea12f
        " ("WITH_PACKAGER_VERSION")"
Packit aea12f
# endif
Packit aea12f
Packit aea12f
# ifdef WITH_PACKAGER_BUG_REPORTS
Packit aea12f
    "\nReport p11tool bugs to " WITH_PACKAGER_BUG_REPORTS
Packit aea12f
# endif
Packit aea12f
    "\n";
Packit aea12f
#endif
Packit aea12f
#ifndef __doxygen__
Packit aea12f
Packit aea12f
#endif /* __doxygen__ */
Packit aea12f
/**
Packit aea12f
 * The option definitions for p11tool.  The one structure that
Packit aea12f
 * binds them all.
Packit aea12f
 */
Packit aea12f
tOptions p11toolOptions = {
Packit aea12f
    OPTIONS_STRUCT_VERSION,
Packit aea12f
    0, NULL,                    /* original argc + argv    */
Packit aea12f
    ( OPTPROC_BASE
Packit aea12f
    + OPTPROC_ERRSTOP
Packit aea12f
    + OPTPROC_SHORTOPT
Packit aea12f
    + OPTPROC_LONGOPT
Packit aea12f
    + OPTPROC_NO_REQ_OPT
Packit aea12f
    + OPTPROC_NEGATIONS
Packit aea12f
    + OPTPROC_REORDER
Packit aea12f
    + OPTPROC_GNUUSAGE
Packit aea12f
    + OPTPROC_MISUSE ),
Packit aea12f
    0, NULL,                    /* current option index, current option */
Packit aea12f
    NULL,         NULL,         zPROGNAME,
Packit aea12f
    zRcName,      zCopyright,   zLicenseDescrip,
Packit aea12f
    zFullVersion, apzHomeList,  zUsageTitle,
Packit aea12f
    zExplain,     zDetail,      optDesc,
Packit aea12f
    zBugsAddr,                  /* address to send bugs to */
Packit aea12f
    NULL, NULL,                 /* extensions/saved state  */
Packit aea12f
    optionUsage, /* usage procedure */
Packit aea12f
    translate_option_strings,   /* translation procedure */
Packit aea12f
    /*
Packit aea12f
     *  Indexes to special options
Packit aea12f
     */
Packit aea12f
    { INDEX_OPT_MORE_HELP, /* more-help option index */
Packit aea12f
      NO_EQUIVALENT, /* save option index */
Packit aea12f
      NO_EQUIVALENT, /* '-#' option index */
Packit aea12f
      NO_EQUIVALENT /* index of default opt */
Packit aea12f
    },
Packit aea12f
    75 /* full option count */, 72 /* user option count */,
Packit aea12f
    p11tool_full_usage, p11tool_short_usage,
Packit aea12f
    NULL, NULL,
Packit aea12f
    PKGDATADIR, p11tool_packager_info
Packit aea12f
};
Packit aea12f
Packit aea12f
#if ENABLE_NLS
Packit aea12f
/**
Packit aea12f
 * This code is designed to translate translatable option text for the
Packit aea12f
 * p11tool program.  These translations happen upon entry
Packit aea12f
 * to optionProcess().
Packit aea12f
 */
Packit aea12f
#include <stdio.h>
Packit aea12f
#include <stdlib.h>
Packit aea12f
#include <string.h>
Packit aea12f
#include <unistd.h>
Packit aea12f
#ifdef HAVE_DCGETTEXT
Packit aea12f
# include <gettext.h>
Packit aea12f
#endif
Packit aea12f
#include <autoopts/usage-txt.h>
Packit aea12f
Packit aea12f
static char * AO_gettext(char const * pz);
Packit aea12f
static void   coerce_it(void ** s);
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * AutoGen specific wrapper function for gettext.  It relies on the macro _()
Packit aea12f
 * to convert from English to the target language, then strdup-duplicates the
Packit aea12f
 * result string.  It tries the "libopts" domain first, then whatever has been
Packit aea12f
 * set via the \a textdomain(3) call.
Packit aea12f
 *
Packit aea12f
 * @param[in] pz the input text used as a lookup key.
Packit aea12f
 * @returns the translated text (if there is one),
Packit aea12f
 *   or the original text (if not).
Packit aea12f
 */
Packit aea12f
static char *
Packit aea12f
AO_gettext(char const * pz)
Packit aea12f
{
Packit aea12f
    char * res;
Packit aea12f
    if (pz == NULL)
Packit aea12f
        return NULL;
Packit aea12f
#ifdef HAVE_DCGETTEXT
Packit aea12f
    /*
Packit aea12f
     * While processing the option_xlateable_txt data, try to use the
Packit aea12f
     * "libopts" domain.  Once we switch to the option descriptor data,
Packit aea12f
     * do *not* use that domain.
Packit aea12f
     */
Packit aea12f
    if (option_xlateable_txt.field_ct != 0) {
Packit aea12f
        res = dgettext("libopts", pz);
Packit aea12f
        if (res == pz)
Packit aea12f
            res = (char *)VOIDP(_(pz));
Packit aea12f
    } else
Packit aea12f
        res = (char *)VOIDP(_(pz));
Packit aea12f
#else
Packit aea12f
    res = (char *)VOIDP(_(pz));
Packit aea12f
#endif
Packit aea12f
    if (res == pz)
Packit aea12f
        return res;
Packit aea12f
    res = strdup(res);
Packit aea12f
    if (res == NULL) {
Packit aea12f
        fputs(_("No memory for duping translated strings\n"), stderr);
Packit aea12f
        exit(P11TOOL_EXIT_FAILURE);
Packit aea12f
    }
Packit aea12f
    return res;
Packit aea12f
}
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * All the pointers we use are marked "* const", but they are stored in
Packit aea12f
 * writable memory.  Coerce the mutability and set the pointer.
Packit aea12f
 */
Packit aea12f
static void coerce_it(void ** s) { *s = AO_gettext(*s);
Packit aea12f
}
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * Translate all the translatable strings in the p11toolOptions
Packit aea12f
 * structure defined above.  This is done only once.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
translate_option_strings(void)
Packit aea12f
{
Packit aea12f
    tOptions * const opts = &p11toolOptions;
Packit aea12f
Packit aea12f
    /*
Packit aea12f
     *  Guard against re-translation.  It won't work.  The strings will have
Packit aea12f
     *  been changed by the first pass through this code.  One shot only.
Packit aea12f
     */
Packit aea12f
    if (option_xlateable_txt.field_ct != 0) {
Packit aea12f
        /*
Packit aea12f
         *  Do the translations.  The first pointer follows the field count
Packit aea12f
         *  field.  The field count field is the size of a pointer.
Packit aea12f
         */
Packit aea12f
        char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
Packit aea12f
        int     ix  = option_xlateable_txt.field_ct;
Packit aea12f
Packit aea12f
        do {
Packit aea12f
            ppz++; /* skip over field_ct */
Packit aea12f
            *ppz = AO_gettext(*ppz);
Packit aea12f
        } while (--ix > 0);
Packit aea12f
        /* prevent re-translation and disable "libopts" domain lookup */
Packit aea12f
        option_xlateable_txt.field_ct = 0;
Packit aea12f
Packit aea12f
        coerce_it(VOIDP(&(opts->pzCopyright)));
Packit aea12f
        coerce_it(VOIDP(&(opts->pzCopyNotice)));
Packit aea12f
        coerce_it(VOIDP(&(opts->pzFullVersion)));
Packit aea12f
        coerce_it(VOIDP(&(opts->pzUsageTitle)));
Packit aea12f
        coerce_it(VOIDP(&(opts->pzExplain)));
Packit aea12f
        coerce_it(VOIDP(&(opts->pzDetail)));
Packit aea12f
        {
Packit aea12f
            tOptDesc * od = opts->pOptDesc;
Packit aea12f
            for (ix = opts->optCt; ix > 0; ix--, od++)
Packit aea12f
                coerce_it(VOIDP(&(od->pzText)));
Packit aea12f
        }
Packit aea12f
    }
Packit aea12f
}
Packit aea12f
#endif /* ENABLE_NLS */
Packit aea12f
Packit aea12f
#ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
Packit aea12f
/** I18N function strictly for xgettext.  Do not compile. */
Packit aea12f
static void bogus_function(void) {
Packit aea12f
  /* TRANSLATORS:
Packit aea12f
Packit aea12f
     The following dummy function was crated solely so that xgettext can
Packit aea12f
     extract the correct strings.  These strings are actually referenced
Packit aea12f
     by a field name in the p11toolOptions structure noted in the
Packit aea12f
     comments below.  The literal text is defined in p11tool_opt_strs.
Packit Service 991b93
Packit aea12f
     NOTE: the strings below are segmented with respect to the source string
Packit aea12f
     p11tool_opt_strs.  The strings above are handed off for translation
Packit aea12f
     at run time a paragraph at a time.  Consequently, they are presented here
Packit aea12f
     for translation a paragraph at a time.
Packit Service 991b93
Packit aea12f
     ALSO: often the description for an option will reference another option
Packit aea12f
     by name.  These are set off with apostrophe quotes (I hope).  Do not
Packit aea12f
     translate option names.
Packit aea12f
   */
Packit aea12f
  /* referenced via p11toolOptions.pzCopyright */
Packit Service 991b93
  puts(_("p11tool 3.6.14\n\
Packit Service 991b93
Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.\n\
Packit aea12f
This is free software. It is licensed for use, modification and\n\
Packit aea12f
redistribution under the terms of the GNU General Public License,\n\
Packit aea12f
version 3 or later <http://gnu.org/licenses/gpl.html>\n"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzCopyNotice */
Packit aea12f
  puts(_("p11tool is free software: you can redistribute it and/or modify it under\n\
Packit aea12f
the terms of the GNU General Public License as published by the Free\n\
Packit aea12f
Software Foundation, either version 3 of the License, or (at your option)\n\
Packit aea12f
any later version.\n\n"));
Packit aea12f
  puts(_("p11tool is distributed in the hope that it will be useful, but WITHOUT ANY\n\
Packit aea12f
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n\
Packit aea12f
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more\n\
Packit aea12f
details.\n\n"));
Packit aea12f
  puts(_("You should have received a copy of the GNU General Public License along\n\
Packit aea12f
with this program.  If not, see <http://www.gnu.org/licenses/>.\n"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Tokens:"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available tokens"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List the URLs available tokens"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available mechanisms in a token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Initializes a PKCS #11 token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Initializes/Resets a PKCS #11 token user PIN"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Initializes/Resets a PKCS #11 token security officer PIN."));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the PIN to use on token operations"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the Security Officer's PIN to use on token initialization"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Object listing:"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available objects in a token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available certificates in a token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all certificates that have an associated private key"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available private keys in a token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'list-all-privkeys' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'list-all-privkeys' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List all available certificates marked as trusted"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Export the object specified by the URL"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Export the certificate object specified by the URL"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Export the certificate specified by the URL and its chain of trust"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Export the public key for a private key"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("List information on an available object in a token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'mark-trusted' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'mark-distrusted' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Key generation:"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate private-public key pair of given type"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate an RSA private-public key pair (deprecated)"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate a DSA private-public key pair (deprecated)"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate an ECDSA private-public key pair (deprecated)"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the number of bits for the key generate"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the curve used for EC key generation"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the security level"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Writing objects:"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Set the CKA_ID (in hex) for the specified by the URL object"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Set the CKA_LABEL for the specified by the URL object"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Writes the loaded objects to a PKCS #11 token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Deletes the objects matching the given PKCS #11 URL"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Sets a label for the write operation"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Sets an ID for the write operation"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the generated key to be a wrapping key"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the object to be written as trusted"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("When retrieving objects, it requires the objects to be distrusted\n\
Packit aea12f
(blacklisted)"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the object to be written for decryption"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the object to be written for signature generation"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the object to be written as a CA"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Marks the object to be written as private"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'mark-ca' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'mark-private' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Provide a hex encoded secret key"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Private key file to use"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Public key file to use"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Certificate file to use"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Other options:"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Enable debugging"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Output file"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Force (user) login to token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Force security officer login to token"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'so-login' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Tests the signature operation of the provided object"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Sign with a specific signature algorithm"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Hash algorithm to use for signing"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate random data"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Use PKCS #8 format for private keys"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Use DER/RAW format for input"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'inder' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Use DER format for output certificates, private keys, and DH parameters"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("an alias for the 'outder' option"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the PKCS #11 provider library"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify parameters for the PKCS #11 provider library (deprecated)"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Print detailed URLs"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Print a compact listing using only the URLs"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Disable all interaction with the tool"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("display extended usage information and exit"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("extended usage information passed thru pager"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("output version information and exit"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzUsageTitle */
Packit aea12f
  puts(_("p11tool - GnuTLS PKCS #11 tool\n\
Packit aea12f
Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [url]\n"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzExplain */
Packit aea12f
  puts(_("\n"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzDetail */
Packit aea12f
  puts(_("Program that allows operations on PKCS #11 smart cards and security\n\
Packit aea12f
modules.\n\n"));
Packit aea12f
  puts(_("To use PKCS #11 tokens with GnuTLS the p11-kit configuration files need to\n\
Packit aea12f
be setup.  That is create a .module file in /etc/pkcs11/modules with the\n\
Packit aea12f
contents 'module: /path/to/pkcs11.so'.  Alternatively the configuration\n\
Packit aea12f
file /etc/gnutls/pkcs11.conf has to exist and contain a number of lines of\n\
Packit aea12f
the form 'load=/usr/lib/opensc-pkcs11.so'.\n\n"));
Packit aea12f
  puts(_("You can provide the PIN to be used for the PKCS #11 operations with the\n\
Packit aea12f
environment variables GNUTLS_PIN and GNUTLS_SO_PIN.\n"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzFullVersion */
Packit Service 991b93
  puts(_("p11tool 3.6.14"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzFullUsage */
Packit aea12f
  puts(_("<<<NOT-FOUND>>>"));
Packit aea12f
Packit aea12f
  /* referenced via p11toolOptions.pzShortUsage */
Packit aea12f
  puts(_("p11tool [options] [url]\n\
Packit aea12f
p11tool --help for usage instructions.\n"));
Packit aea12f
  /* LIBOPTS-MESSAGES: */
Packit aea12f
#line 67 "../autoopts.c"
Packit aea12f
  puts(_("allocation of %d bytes failed\n"));
Packit Service 991b93
#line 89 "../autoopts.c"
Packit aea12f
  puts(_("allocation of %d bytes failed\n"));
Packit Service 991b93
#line 48 "../init.c"
Packit aea12f
  puts(_("AutoOpts function called without option descriptor\n"));
Packit Service 991b93
#line 81 "../init.c"
Packit aea12f
  puts(_("\tThis exceeds the compiled library version:  "));
Packit Service 991b93
#line 79 "../init.c"
Packit aea12f
  puts(_("Automated Options Processing Error!\n"
Packit aea12f
       "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
Packit Service 991b93
#line 78 "../autoopts.c"
Packit aea12f
  puts(_("realloc of %d bytes at 0x%p failed\n"));
Packit Service 991b93
#line 83 "../init.c"
Packit aea12f
  puts(_("\tThis is less than the minimum library version:  "));
Packit aea12f
#line 121 "../version.c"
Packit aea12f
  puts(_("Automated Options version %s\n"
Packit Service 991b93
       "\tCopyright (C) 1999-2017 by Bruce Korb - all rights reserved\n"));
Packit Service 991b93
#line 49 "../makeshell.c"
Packit aea12f
  puts(_("(AutoOpts bug):  %s.\n"));
Packit aea12f
#line 90 "../reset.c"
Packit aea12f
  puts(_("optionResetOpt() called, but reset-option not configured"));
Packit Service 991b93
#line 241 "../usage.c"
Packit aea12f
  puts(_("could not locate the 'help' option"));
Packit Service 991b93
#line 330 "../autoopts.c"
Packit aea12f
  puts(_("optionProcess() was called with invalid data"));
Packit Service 991b93
#line 697 "../usage.c"
Packit aea12f
  puts(_("invalid argument type specified"));
Packit Service 991b93
#line 568 "../find.c"
Packit aea12f
  puts(_("defaulted to option with optional arg"));
Packit aea12f
#line 76 "../alias.c"
Packit aea12f
  puts(_("aliasing option is out of range."));
Packit Service 991b93
#line 210 "../enum.c"
Packit aea12f
  puts(_("%s error:  the keyword '%s' is ambiguous for %s\n"));
Packit Service 991b93
#line 78 "../find.c"
Packit aea12f
  puts(_("  The following options match:\n"));
Packit Service 991b93
#line 263 "../find.c"
Packit aea12f
  puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
Packit aea12f
#line 161 "../check.c"
Packit aea12f
  puts(_("%s: Command line arguments required\n"));
Packit aea12f
#line 43 "../alias.c"
Packit aea12f
  puts(_("%d %s%s options allowed\n"));
Packit Service 991b93
#line 56 "../makeshell.c"
Packit aea12f
  puts(_("%s error %d (%s) calling %s for '%s'\n"));
Packit Service 991b93
#line 268 "../makeshell.c"
Packit aea12f
  puts(_("interprocess pipe"));
Packit Service 991b93
#line 171 "../version.c"
Packit aea12f
  puts(_("error: version option argument '%c' invalid.  Use:\n"
Packit aea12f
       "\t'v' - version only\n"
Packit aea12f
       "\t'c' - version and copyright\n"
Packit aea12f
       "\t'n' - version and full copyright notice\n"));
Packit aea12f
#line 58 "../check.c"
Packit aea12f
  puts(_("%s error:  the '%s' and '%s' options conflict\n"));
Packit Service 991b93
#line 187 "../find.c"
Packit aea12f
  puts(_("%s: The '%s' option has been disabled."));
Packit Service 991b93
#line 400 "../find.c"
Packit aea12f
  puts(_("%s: The '%s' option has been disabled."));
Packit aea12f
#line 38 "../alias.c"
Packit aea12f
  puts(_("-equivalence"));
Packit Service 991b93
#line 439 "../find.c"
Packit aea12f
  puts(_("%s: illegal option -- %c\n"));
Packit aea12f
#line 110 "../reset.c"
Packit aea12f
  puts(_("%s: illegal option -- %c\n"));
Packit Service 991b93
#line 241 "../find.c"
Packit aea12f
  puts(_("%s: illegal option -- %s\n"));
Packit Service 991b93
#line 740 "../find.c"
Packit aea12f
  puts(_("%s: illegal option -- %s\n"));
Packit aea12f
#line 118 "../reset.c"
Packit aea12f
  puts(_("%s: illegal option -- %s\n"));
Packit Service 991b93
#line 305 "../find.c"
Packit aea12f
  puts(_("%s: unknown vendor extension option -- %s\n"));
Packit Service 991b93
#line 135 "../enum.c"
Packit aea12f
  puts(_("  or an integer from %d through %d\n"));
Packit Service 991b93
#line 145 "../enum.c"
Packit aea12f
  puts(_("  or an integer from %d through %d\n"));
Packit Service 991b93
#line 696 "../usage.c"
Packit aea12f
  puts(_("%s error:  invalid option descriptor for %s\n"));
Packit Service 991b93
#line 1030 "../usage.c"
Packit aea12f
  puts(_("%s error:  invalid option descriptor for %s\n"));
Packit Service 991b93
#line 355 "../find.c"
Packit aea12f
  puts(_("%s: invalid option name: %s\n"));
Packit Service 991b93
#line 497 "../find.c"
Packit aea12f
  puts(_("%s: The '%s' option requires an argument.\n"));
Packit Service 991b93
#line 150 "../autoopts.c"
Packit aea12f
  puts(_("(AutoOpts bug):  Equivalenced option '%s' was equivalenced to both\n"
Packit aea12f
       "\t'%s' and '%s'."));
Packit aea12f
#line 94 "../check.c"
Packit aea12f
  puts(_("%s error:  The %s option is required\n"));
Packit Service 991b93
#line 602 "../find.c"
Packit aea12f
  puts(_("%s: The '%s' option cannot have an argument.\n"));
Packit aea12f
#line 151 "../check.c"
Packit aea12f
  puts(_("%s: Command line arguments are not allowed.\n"));
Packit Service 991b93
#line 568 "../save.c"
Packit aea12f
  puts(_("error %d (%s) creating %s\n"));
Packit Service 991b93
#line 210 "../enum.c"
Packit aea12f
  puts(_("%s error:  '%s' does not match any %s keywords.\n"));
Packit aea12f
#line 93 "../reset.c"
Packit aea12f
  puts(_("%s error: The '%s' option requires an argument.\n"));
Packit Service 991b93
#line 122 "../save.c"
Packit aea12f
  puts(_("error %d (%s) stat-ing %s\n"));
Packit Service 991b93
#line 175 "../save.c"
Packit aea12f
  puts(_("error %d (%s) stat-ing %s\n"));
Packit aea12f
#line 143 "../restore.c"
Packit aea12f
  puts(_("%s error: no saved option state\n"));
Packit Service 991b93
#line 225 "../autoopts.c"
Packit aea12f
  puts(_("'%s' is not a command line option.\n"));
Packit aea12f
#line 113 "../time.c"
Packit aea12f
  puts(_("%s error:  '%s' is not a recognizable date/time.\n"));
Packit aea12f
#line 50 "../time.c"
Packit aea12f
  puts(_("%s error:  '%s' is not a recognizable time duration.\n"));
Packit aea12f
#line 92 "../check.c"
Packit aea12f
  puts(_("%s error:  The %s option must appear %d times.\n"));
Packit aea12f
#line 165 "../numeric.c"
Packit aea12f
  puts(_("%s error:  '%s' is not a recognizable number.\n"));
Packit Service 991b93
#line 176 "../enum.c"
Packit aea12f
  puts(_("%s error:  %s exceeds %s keyword count\n"));
Packit Service 991b93
#line 279 "../usage.c"
Packit aea12f
  puts(_("Try '%s %s' for more information.\n"));
Packit aea12f
#line 45 "../alias.c"
Packit aea12f
  puts(_("one %s%s option allowed\n"));
Packit Service 991b93
#line 170 "../makeshell.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 905 "../makeshell.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 223 "../usage.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 364 "../usage.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 574 "../usage.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 178 "../version.c"
Packit aea12f
  puts(_("standard output"));
Packit Service 991b93
#line 223 "../usage.c"
Packit aea12f
  puts(_("standard error"));
Packit Service 991b93
#line 364 "../usage.c"
Packit aea12f
  puts(_("standard error"));
Packit Service 991b93
#line 574 "../usage.c"
Packit aea12f
  puts(_("standard error"));
Packit Service 991b93
#line 178 "../version.c"
Packit aea12f
  puts(_("standard error"));
Packit Service 991b93
#line 170 "../makeshell.c"
Packit aea12f
  puts(_("write"));
Packit Service 991b93
#line 905 "../makeshell.c"
Packit aea12f
  puts(_("write"));
Packit Service 991b93
#line 222 "../usage.c"
Packit aea12f
  puts(_("write"));
Packit Service 991b93
#line 363 "../usage.c"
Packit aea12f
  puts(_("write"));
Packit Service 991b93
#line 573 "../usage.c"
Packit aea12f
  puts(_("write"));
Packit Service 991b93
#line 177 "../version.c"
Packit aea12f
  puts(_("write"));
Packit aea12f
#line 60 "../numeric.c"
Packit aea12f
  puts(_("%s error:  %s option value %ld is out of range.\n"));
Packit aea12f
#line 44 "../check.c"
Packit aea12f
  puts(_("%s error:  %s option requires the %s option\n"));
Packit Service 991b93
#line 121 "../save.c"
Packit aea12f
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit Service 991b93
#line 174 "../save.c"
Packit aea12f
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit Service 991b93
#line 193 "../save.c"
Packit aea12f
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit Service 991b93
#line 567 "../save.c"
Packit aea12f
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit aea12f
  /* END-LIBOPTS-MESSAGES */
Packit aea12f
Packit aea12f
  /* USAGE-TEXT: */
Packit Service 991b93
#line 822 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- an alternate for '%s'\n"));
Packit Service 991b93
#line 1097 "../usage.c"
Packit aea12f
  puts(_("Version, usage and configuration options:"));
Packit Service 991b93
#line 873 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- default option for unnamed options\n"));
Packit Service 991b93
#line 786 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- disabled as '--%s'\n"));
Packit Service 991b93
#line 1066 "../usage.c"
Packit aea12f
  puts(_(" --- %-14s %s\n"));
Packit Service 991b93
#line 1064 "../usage.c"
Packit aea12f
  puts(_("This option has been disabled"));
Packit Service 991b93
#line 813 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- enabled by default\n"));
Packit aea12f
#line 40 "../alias.c"
Packit aea12f
  puts(_("%s error:  only "));
Packit Service 991b93
#line 1143 "../usage.c"
Packit aea12f
  puts(_(" - examining environment variables named %s_*\n"));
Packit aea12f
#line 168 "../file.c"
Packit aea12f
  puts(_("\t\t\t\t- file must not pre-exist\n"));
Packit aea12f
#line 172 "../file.c"
Packit aea12f
  puts(_("\t\t\t\t- file must pre-exist\n"));
Packit Service 991b93
#line 329 "../usage.c"
Packit aea12f
  puts(_("Options are specified by doubled hyphens and their name or by a single\n"
Packit aea12f
       "hyphen and the flag character.\n"));
Packit Service 991b93
#line 882 "../makeshell.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "= = = = = = = =\n\n"
Packit aea12f
       "This incarnation of genshell will produce\n"
Packit aea12f
       "a shell script to parse the options for %s:\n\n"));
Packit Service 991b93
#line 142 "../enum.c"
Packit aea12f
  puts(_("  or an integer mask with any of the lower %d bits set\n"));
Packit Service 991b93
#line 846 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- is a set membership option\n"));
Packit Service 991b93
#line 867 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- must appear between %d and %d times\n"));
Packit Service 991b93
#line 331 "../usage.c"
Packit aea12f
  puts(_("Options are specified by single or double hyphens and their name.\n"));
Packit Service 991b93
#line 853 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- may appear multiple times\n"));
Packit Service 991b93
#line 840 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- may not be preset\n"));
Packit Service 991b93
#line 1258 "../usage.c"
Packit aea12f
  puts(_("   Arg Option-Name    Description\n"));
Packit Service 991b93
#line 1194 "../usage.c"
Packit aea12f
  puts(_("  Flg Arg Option-Name    Description\n"));
Packit Service 991b93
#line 1252 "../usage.c"
Packit aea12f
  puts(_("  Flg Arg Option-Name    Description\n"));
Packit Service 991b93
#line 1253 "../usage.c"
Packit aea12f
  puts(_(" %3s %s"));
Packit Service 991b93
#line 1259 "../usage.c"
Packit aea12f
  puts(_(" %3s %s"));
Packit Service 991b93
#line 336 "../usage.c"
Packit aea12f
  puts(_("The '-#<number>' option may omit the hash char\n"));
Packit Service 991b93
#line 332 "../usage.c"
Packit aea12f
  puts(_("All arguments are named options.\n"));
Packit Service 991b93
#line 920 "../usage.c"
Packit aea12f
  puts(_(" - reading file %s"));
Packit Service 991b93
#line 358 "../usage.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "Please send bug reports to:  <%s>\n"));
Packit aea12f
#line 100 "../version.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "Please send bug reports to:  <%s>\n"));
Packit aea12f
#line 129 "../version.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "Please send bug reports to:  <%s>\n"));
Packit Service 991b93
#line 852 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- may NOT appear - preset only\n"));
Packit Service 991b93
#line 893 "../usage.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "The following option preset mechanisms are supported:\n"));
Packit Service 991b93
#line 1141 "../usage.c"
Packit aea12f
  puts(_("\n"
Packit aea12f
       "The following option preset mechanisms are supported:\n"));
Packit Service 991b93
#line 631 "../usage.c"
Packit aea12f
  puts(_("prohibits these options:\n"));
Packit Service 991b93
#line 626 "../usage.c"
Packit aea12f
  puts(_("prohibits the option '%s'\n"));
Packit aea12f
#line 81 "../numeric.c"
Packit aea12f
  puts(_("%s%ld to %ld"));
Packit aea12f
#line 79 "../numeric.c"
Packit aea12f
  puts(_("%sgreater than or equal to %ld"));
Packit aea12f
#line 75 "../numeric.c"
Packit aea12f
  puts(_("%s%ld exactly"));
Packit aea12f
#line 68 "../numeric.c"
Packit aea12f
  puts(_("%sit must lie in one of the ranges:\n"));
Packit aea12f
#line 68 "../numeric.c"
Packit aea12f
  puts(_("%sit must be in the range:\n"));
Packit aea12f
#line 88 "../numeric.c"
Packit aea12f
  puts(_(", or\n"));
Packit aea12f
#line 66 "../numeric.c"
Packit aea12f
  puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
Packit aea12f
#line 77 "../numeric.c"
Packit aea12f
  puts(_("%sless than or equal to %ld"));
Packit Service 991b93
#line 339 "../usage.c"
Packit aea12f
  puts(_("Operands and options may be intermixed.  They will be reordered.\n"));
Packit Service 991b93
#line 601 "../usage.c"
Packit aea12f
  puts(_("requires the option '%s'\n"));
Packit Service 991b93
#line 604 "../usage.c"
Packit aea12f
  puts(_("requires these options:\n"));
Packit Service 991b93
#line 1270 "../usage.c"
Packit aea12f
  puts(_("   Arg Option-Name   Req?  Description\n"));
Packit Service 991b93
#line 1264 "../usage.c"
Packit aea12f
  puts(_("  Flg Arg Option-Name   Req?  Description\n"));
Packit Service 991b93
#line 143 "../enum.c"
Packit aea12f
  puts(_("or you may use a numeric representation.  Preceding these with a '!'\n"
Packit aea12f
       "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
Packit aea12f
       "will set them all.  Multiple entries may be passed as an option\n"
Packit aea12f
       "argument list.\n"));
Packit Service 991b93
#line 859 "../usage.c"
Packit aea12f
  puts(_("\t\t\t\t- may appear up to %d times\n"));
Packit Service 991b93
#line 52 "../enum.c"
Packit aea12f
  puts(_("The valid \"%s\" option keywords are:\n"));
Packit Service 991b93
#line 1101 "../usage.c"
Packit aea12f
  puts(_("The next option supports vendor supported extra options:"));
Packit Service 991b93
#line 722 "../usage.c"
Packit aea12f
  puts(_("These additional options are:"));
Packit aea12f
  /* END-USAGE-TEXT */
Packit aea12f
}
Packit aea12f
#endif /* uncompilable code */
Packit aea12f
#ifdef  __cplusplus
Packit aea12f
}
Packit aea12f
#endif
Packit aea12f
/* p11tool-args.c ends here */