Blame src/tpmtool-args.c.bak

Packit aea12f
/*   -*- buffer-read-only: t -*- vi: set ro:
Packit aea12f
 *
Packit aea12f
 *  DO NOT EDIT THIS FILE   (tpmtool-args.c)
Packit aea12f
 *
Packit aea12f
 *  It has been AutoGen-ed
Packit aea12f
 *  From the definitions    tpmtool-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 tpmtool 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 tpmtool 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
 *  tpmtool 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
 *  tpmtool 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 "tpmtool-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      (tpmtool_opt_strs+0)
Packit Service 991b93
#define zLicenseDescrip (tpmtool_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 tpmtool options
Packit aea12f
 */
Packit Service 991b93
static char const tpmtool_opt_strs[2257] =
Packit Service 991b93
/*     0 */ "tpmtool 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 */ "tpmtool 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
            "tpmtool 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 */ "Enable debugging\0"
Packit Service 991b93
/*   903 */ "DEBUG\0"
Packit Service 991b93
/*   909 */ "debug\0"
Packit Service 991b93
/*   915 */ "Input file\0"
Packit Service 991b93
/*   926 */ "INFILE\0"
Packit Service 991b93
/*   933 */ "infile\0"
Packit Service 991b93
/*   940 */ "Output file\0"
Packit Service 991b93
/*   952 */ "OUTFILE\0"
Packit Service 991b93
/*   960 */ "outfile\0"
Packit Service 991b93
/*   968 */ "Generate an RSA private-public key pair\0"
Packit Service 991b93
/*  1008 */ "GENERATE_RSA\0"
Packit Service 991b93
/*  1021 */ "generate-rsa\0"
Packit Service 991b93
/*  1034 */ "Any generated key will be registered in the TPM\0"
Packit Service 991b93
/*  1082 */ "REGISTER\0"
Packit Service 991b93
/*  1091 */ "register\0"
Packit Service 991b93
/*  1100 */ "Any generated key will be a signing key\0"
Packit Service 991b93
/*  1140 */ "SIGNING\0"
Packit Service 991b93
/*  1148 */ "signing\0"
Packit Service 991b93
/*  1156 */ "Any generated key will be a legacy key\0"
Packit Service 991b93
/*  1195 */ "LEGACY\0"
Packit Service 991b93
/*  1202 */ "legacy\0"
Packit Service 991b93
/*  1209 */ "Any registered key will be a user key\0"
Packit Service 991b93
/*  1247 */ "USER\0"
Packit Service 991b93
/*  1252 */ "user\0"
Packit Service 991b93
/*  1257 */ "Any registered key will be a system key\0"
Packit Service 991b93
/*  1297 */ "SYSTEM\0"
Packit Service 991b93
/*  1304 */ "system\0"
Packit Service 991b93
/*  1311 */ "Prints the public key of the provided key\0"
Packit Service 991b93
/*  1353 */ "PUBKEY\0"
Packit Service 991b93
/*  1360 */ "pubkey\0"
Packit Service 991b93
/*  1367 */ "Lists all stored keys in the TPM\0"
Packit Service 991b93
/*  1400 */ "LIST\0"
Packit Service 991b93
/*  1405 */ "list\0"
Packit Service 991b93
/*  1410 */ "Delete the key identified by the given URL (UUID).\0"
Packit Service 991b93
/*  1461 */ "DELETE\0"
Packit Service 991b93
/*  1468 */ "delete\0"
Packit Service 991b93
/*  1475 */ "Tests the signature operation of the provided object\0"
Packit Service 991b93
/*  1528 */ "TEST_SIGN\0"
Packit Service 991b93
/*  1538 */ "test-sign\0"
Packit Service 991b93
/*  1548 */ "Specify the security level [low, legacy, medium, high, ultra].\0"
Packit Service 991b93
/*  1611 */ "SEC_PARAM\0"
Packit Service 991b93
/*  1621 */ "sec-param\0"
Packit Service 991b93
/*  1631 */ "Specify the number of bits for key generate\0"
Packit Service 991b93
/*  1675 */ "BITS\0"
Packit Service 991b93
/*  1680 */ "bits\0"
Packit Service 991b93
/*  1685 */ "Use the DER format for keys.\0"
Packit Service 991b93
/*  1714 */ "INDER\0"
Packit Service 991b93
/*  1720 */ "no-inder\0"
Packit Service 991b93
/*  1729 */ "no\0"
Packit Service 991b93
/*  1732 */ "Use DER format for output keys\0"
Packit Service 991b93
/*  1763 */ "OUTDER\0"
Packit Service 991b93
/*  1770 */ "no-outder\0"
Packit Service 991b93
/*  1780 */ "SRK has well known password (20 bytes of zeros)\0"
Packit Service 991b93
/*  1828 */ "SRK_WELL_KNOWN\0"
Packit Service 991b93
/*  1843 */ "srk-well-known\0"
Packit Service 991b93
/*  1858 */ "display extended usage information and exit\0"
Packit Service 991b93
/*  1902 */ "help\0"
Packit Service 991b93
/*  1907 */ "extended usage information passed thru pager\0"
Packit Service 991b93
/*  1952 */ "more-help\0"
Packit Service 991b93
/*  1962 */ "output version information and exit\0"
Packit Service 991b93
/*  1998 */ "version\0"
Packit Service 991b93
/*  2006 */ "TPMTOOL\0"
Packit Service 991b93
/*  2014 */ "tpmtool - GnuTLS TPM tool\n"
Packit aea12f
            "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
Packit Service 991b93
/*  2098 */ "bugs@gnutls.org\0"
Packit Service 991b93
/*  2114 */ "\n\0"
Packit Service 991b93
/*  2116 */ "Program that allows handling cryptographic data from the TPM chip.\n\0"
Packit Service 991b93
/*  2184 */ "tpmtool 3.6.14\0"
Packit Service 991b93
/*  2199 */ "tpmtool [options]\n"
Packit aea12f
            "tpmtool --help for usage instructions.\n";
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      (tpmtool_opt_strs+886)
Packit aea12f
/** Upper-cased name for the debug option */
Packit Service 991b93
#define DEBUG_NAME      (tpmtool_opt_strs+903)
Packit aea12f
/** Name string for the debug option */
Packit Service 991b93
#define DEBUG_name      (tpmtool_opt_strs+909)
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
 *  infile option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the infile option */
Packit Service 991b93
#define INFILE_DESC      (tpmtool_opt_strs+915)
Packit aea12f
/** Upper-cased name for the infile option */
Packit Service 991b93
#define INFILE_NAME      (tpmtool_opt_strs+926)
Packit aea12f
/** Name string for the infile option */
Packit Service 991b93
#define INFILE_name      (tpmtool_opt_strs+933)
Packit aea12f
/** Compiled in flag settings for the infile option */
Packit aea12f
#define INFILE_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
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      (tpmtool_opt_strs+940)
Packit aea12f
/** Upper-cased name for the outfile option */
Packit Service 991b93
#define OUTFILE_NAME      (tpmtool_opt_strs+952)
Packit aea12f
/** Name string for the outfile option */
Packit Service 991b93
#define OUTFILE_name      (tpmtool_opt_strs+960)
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
 *  generate-rsa option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_DESC      (tpmtool_opt_strs+968)
Packit aea12f
/** Upper-cased name for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_NAME      (tpmtool_opt_strs+1008)
Packit aea12f
/** Name string for the generate-rsa option */
Packit Service 991b93
#define GENERATE_RSA_name      (tpmtool_opt_strs+1021)
Packit aea12f
/** Compiled in flag settings for the generate-rsa option */
Packit aea12f
#define GENERATE_RSA_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  register option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the register option */
Packit Service 991b93
#define REGISTER_DESC      (tpmtool_opt_strs+1034)
Packit aea12f
/** Upper-cased name for the register option */
Packit Service 991b93
#define REGISTER_NAME      (tpmtool_opt_strs+1082)
Packit aea12f
/** Name string for the register option */
Packit Service 991b93
#define REGISTER_name      (tpmtool_opt_strs+1091)
Packit aea12f
/** Other options that are required by the register option */
Packit aea12f
static int const aRegisterMustList[] = {
Packit aea12f
    INDEX_OPT_GENERATE_RSA, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the register option */
Packit aea12f
#define REGISTER_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  signing option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the signing option */
Packit Service 991b93
#define SIGNING_DESC      (tpmtool_opt_strs+1100)
Packit aea12f
/** Upper-cased name for the signing option */
Packit Service 991b93
#define SIGNING_NAME      (tpmtool_opt_strs+1140)
Packit aea12f
/** Name string for the signing option */
Packit Service 991b93
#define SIGNING_name      (tpmtool_opt_strs+1148)
Packit aea12f
/** Other options that are required by the signing option */
Packit aea12f
static int const aSigningMustList[] = {
Packit aea12f
    INDEX_OPT_GENERATE_RSA, NO_EQUIVALENT };
Packit aea12f
/** Other options that appear in conjunction with the signing option */
Packit aea12f
static int const aSigningCantList[] = {
Packit aea12f
    INDEX_OPT_LEGACY, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the signing option */
Packit aea12f
#define SIGNING_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  legacy option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the legacy option */
Packit Service 991b93
#define LEGACY_DESC      (tpmtool_opt_strs+1156)
Packit aea12f
/** Upper-cased name for the legacy option */
Packit Service 991b93
#define LEGACY_NAME      (tpmtool_opt_strs+1195)
Packit aea12f
/** Name string for the legacy option */
Packit Service 991b93
#define LEGACY_name      (tpmtool_opt_strs+1202)
Packit aea12f
/** Other options that are required by the legacy option */
Packit aea12f
static int const aLegacyMustList[] = {
Packit aea12f
    INDEX_OPT_GENERATE_RSA, NO_EQUIVALENT };
Packit aea12f
/** Other options that appear in conjunction with the legacy option */
Packit aea12f
static int const aLegacyCantList[] = {
Packit aea12f
    INDEX_OPT_SIGNING, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the legacy option */
Packit aea12f
#define LEGACY_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  user option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the user option */
Packit Service 991b93
#define USER_DESC      (tpmtool_opt_strs+1209)
Packit aea12f
/** Upper-cased name for the user option */
Packit Service 991b93
#define USER_NAME      (tpmtool_opt_strs+1247)
Packit aea12f
/** Name string for the user option */
Packit Service 991b93
#define USER_name      (tpmtool_opt_strs+1252)
Packit aea12f
/** Other options that are required by the user option */
Packit aea12f
static int const aUserMustList[] = {
Packit aea12f
    INDEX_OPT_REGISTER, NO_EQUIVALENT };
Packit aea12f
/** Other options that appear in conjunction with the user option */
Packit aea12f
static int const aUserCantList[] = {
Packit aea12f
    INDEX_OPT_SYSTEM, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the user option */
Packit aea12f
#define USER_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  system option description with
Packit aea12f
 *  "Must also have options" and "Incompatible options":
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the system option */
Packit Service 991b93
#define SYSTEM_DESC      (tpmtool_opt_strs+1257)
Packit aea12f
/** Upper-cased name for the system option */
Packit Service 991b93
#define SYSTEM_NAME      (tpmtool_opt_strs+1297)
Packit aea12f
/** Name string for the system option */
Packit Service 991b93
#define SYSTEM_name      (tpmtool_opt_strs+1304)
Packit aea12f
/** Other options that are required by the system option */
Packit aea12f
static int const aSystemMustList[] = {
Packit aea12f
    INDEX_OPT_REGISTER, NO_EQUIVALENT };
Packit aea12f
/** Other options that appear in conjunction with the system option */
Packit aea12f
static int const aSystemCantList[] = {
Packit aea12f
    INDEX_OPT_USER, NO_EQUIVALENT };
Packit aea12f
/** Compiled in flag settings for the system option */
Packit aea12f
#define SYSTEM_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  pubkey option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the pubkey option */
Packit Service 991b93
#define PUBKEY_DESC      (tpmtool_opt_strs+1311)
Packit aea12f
/** Upper-cased name for the pubkey option */
Packit Service 991b93
#define PUBKEY_NAME      (tpmtool_opt_strs+1353)
Packit aea12f
/** Name string for the pubkey option */
Packit Service 991b93
#define PUBKEY_name      (tpmtool_opt_strs+1360)
Packit aea12f
/** Compiled in flag settings for the pubkey option */
Packit aea12f
#define PUBKEY_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit aea12f
Packit aea12f
/**
Packit aea12f
 *  list option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the list option */
Packit Service 991b93
#define LIST_DESC      (tpmtool_opt_strs+1367)
Packit aea12f
/** Upper-cased name for the list option */
Packit Service 991b93
#define LIST_NAME      (tpmtool_opt_strs+1400)
Packit aea12f
/** Name string for the list option */
Packit Service 991b93
#define LIST_name      (tpmtool_opt_strs+1405)
Packit aea12f
/** Compiled in flag settings for the list option */
Packit aea12f
#define LIST_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      (tpmtool_opt_strs+1410)
Packit aea12f
/** Upper-cased name for the delete option */
Packit Service 991b93
#define DELETE_NAME      (tpmtool_opt_strs+1461)
Packit aea12f
/** Name string for the delete option */
Packit Service 991b93
#define DELETE_name      (tpmtool_opt_strs+1468)
Packit aea12f
/** Compiled in flag settings for the delete option */
Packit aea12f
#define DELETE_FLAGS     (OPTST_DISABLED \
Packit aea12f
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
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      (tpmtool_opt_strs+1475)
Packit aea12f
/** Upper-cased name for the test-sign option */
Packit Service 991b93
#define TEST_SIGN_NAME      (tpmtool_opt_strs+1528)
Packit aea12f
/** Name string for the test-sign option */
Packit Service 991b93
#define TEST_SIGN_name      (tpmtool_opt_strs+1538)
Packit aea12f
/** Compiled in flag settings for the test-sign option */
Packit aea12f
#define TEST_SIGN_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      (tpmtool_opt_strs+1548)
Packit aea12f
/** Upper-cased name for the sec-param option */
Packit Service 991b93
#define SEC_PARAM_NAME      (tpmtool_opt_strs+1611)
Packit aea12f
/** Name string for the sec-param option */
Packit Service 991b93
#define SEC_PARAM_name      (tpmtool_opt_strs+1621)
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
 *  bits option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the bits option */
Packit Service 991b93
#define BITS_DESC      (tpmtool_opt_strs+1631)
Packit aea12f
/** Upper-cased name for the bits option */
Packit Service 991b93
#define BITS_NAME      (tpmtool_opt_strs+1675)
Packit aea12f
/** Name string for the bits option */
Packit Service 991b93
#define BITS_name      (tpmtool_opt_strs+1680)
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
 *  inder option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the inder option */
Packit Service 991b93
#define INDER_DESC      (tpmtool_opt_strs+1685)
Packit aea12f
/** Upper-cased name for the inder option */
Packit Service 991b93
#define INDER_NAME      (tpmtool_opt_strs+1714)
Packit aea12f
/** disablement name for the inder option */
Packit Service 991b93
#define NOT_INDER_name  (tpmtool_opt_strs+1720)
Packit aea12f
/** disablement prefix for the inder option */
Packit Service 991b93
#define NOT_INDER_PFX   (tpmtool_opt_strs+1729)
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
 *  outder option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the outder option */
Packit Service 991b93
#define OUTDER_DESC      (tpmtool_opt_strs+1732)
Packit aea12f
/** Upper-cased name for the outder option */
Packit Service 991b93
#define OUTDER_NAME      (tpmtool_opt_strs+1763)
Packit aea12f
/** disablement name for the outder option */
Packit Service 991b93
#define NOT_OUTDER_name  (tpmtool_opt_strs+1770)
Packit aea12f
/** disablement prefix for the outder option */
Packit Service 991b93
#define NOT_OUTDER_PFX   (tpmtool_opt_strs+1729)
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
 *  srk-well-known option description:
Packit aea12f
 */
Packit aea12f
/** Descriptive text for the srk-well-known option */
Packit Service 991b93
#define SRK_WELL_KNOWN_DESC      (tpmtool_opt_strs+1780)
Packit aea12f
/** Upper-cased name for the srk-well-known option */
Packit Service 991b93
#define SRK_WELL_KNOWN_NAME      (tpmtool_opt_strs+1828)
Packit aea12f
/** Name string for the srk-well-known option */
Packit Service 991b93
#define SRK_WELL_KNOWN_name      (tpmtool_opt_strs+1843)
Packit aea12f
/** Compiled in flag settings for the srk-well-known option */
Packit aea12f
#define SRK_WELL_KNOWN_FLAGS     (OPTST_DISABLED)
Packit aea12f
Packit aea12f
/*
Packit aea12f
 *  Help/More_Help/Version option descriptions:
Packit aea12f
 */
Packit Service 991b93
#define HELP_DESC       (tpmtool_opt_strs+1858)
Packit Service 991b93
#define HELP_name       (tpmtool_opt_strs+1902)
Packit aea12f
#ifdef HAVE_WORKING_FORK
Packit Service 991b93
#define MORE_HELP_DESC  (tpmtool_opt_strs+1907)
Packit Service 991b93
#define MORE_HELP_name  (tpmtool_opt_strs+1952)
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        (tpmtool_opt_strs+1962)
Packit Service 991b93
#define VER_name        (tpmtool_opt_strs+1998)
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
    doOptDebug, doOptInfile, doUsageOpt;
Packit aea12f
#define VER_PROC        optionPrintVersion
Packit aea12f
Packit aea12f
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit aea12f
/**
Packit aea12f
 *  Define the tpmtool Option Descriptions.
Packit aea12f
 * This is an array of OPTION_CT entries, one for each
Packit aea12f
 * option that the tpmtool program responds to.
Packit aea12f
 */
Packit aea12f
static tOptDesc optDesc[OPTION_CT] = {
Packit aea12f
  {  /* entry idx, value */ 0, VALUE_OPT_DEBUG,
Packit aea12f
     /* equiv idx, value */ 0, 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 */ 1, VALUE_OPT_INFILE,
Packit aea12f
     /* equiv idx, value */ 1, VALUE_OPT_INFILE,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ INFILE_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --infile */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ doOptInfile,
Packit aea12f
     /* desc, NAME, name */ INFILE_DESC, INFILE_NAME, INFILE_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 2, VALUE_OPT_OUTFILE,
Packit aea12f
     /* equiv idx, value */ 2, 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 */ 3, VALUE_OPT_GENERATE_RSA,
Packit aea12f
     /* equiv idx, value */ 3, 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 */ 4, VALUE_OPT_REGISTER,
Packit aea12f
     /* equiv idx, value */ 4, VALUE_OPT_REGISTER,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ REGISTER_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --register */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ aRegisterMustList, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ REGISTER_DESC, REGISTER_NAME, REGISTER_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 5, VALUE_OPT_SIGNING,
Packit aea12f
     /* equiv idx, value */ 5, VALUE_OPT_SIGNING,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SIGNING_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --signing */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ aSigningMustList, aSigningCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SIGNING_DESC, SIGNING_NAME, SIGNING_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 6, VALUE_OPT_LEGACY,
Packit aea12f
     /* equiv idx, value */ 6, VALUE_OPT_LEGACY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LEGACY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --legacy */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ aLegacyMustList, aLegacyCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LEGACY_DESC, LEGACY_NAME, LEGACY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 7, VALUE_OPT_USER,
Packit aea12f
     /* equiv idx, value */ 7, VALUE_OPT_USER,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ USER_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --user */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ aUserMustList, aUserCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ USER_DESC, USER_NAME, USER_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 8, VALUE_OPT_SYSTEM,
Packit aea12f
     /* equiv idx, value */ 8, VALUE_OPT_SYSTEM,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SYSTEM_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --system */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ aSystemMustList, aSystemCantList,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SYSTEM_DESC, SYSTEM_NAME, SYSTEM_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 9, VALUE_OPT_PUBKEY,
Packit aea12f
     /* equiv idx, value */ 9, VALUE_OPT_PUBKEY,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ PUBKEY_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --pubkey */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ PUBKEY_DESC, PUBKEY_NAME, PUBKEY_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 10, VALUE_OPT_LIST,
Packit aea12f
     /* equiv idx, value */ 10, VALUE_OPT_LIST,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ LIST_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --list */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ LIST_DESC, LIST_NAME, LIST_name,
Packit aea12f
     /* disablement strs */ NULL, NULL },
Packit aea12f
Packit aea12f
  {  /* entry idx, value */ 11, VALUE_OPT_DELETE,
Packit aea12f
     /* equiv idx, value */ 11, 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 */ 12, VALUE_OPT_TEST_SIGN,
Packit aea12f
     /* equiv idx, value */ 12, 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 */ 13, VALUE_OPT_SEC_PARAM,
Packit aea12f
     /* equiv idx, value */ 13, 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 */ 14, VALUE_OPT_BITS,
Packit aea12f
     /* equiv idx, value */ 14, 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 */ 15, VALUE_OPT_INDER,
Packit aea12f
     /* equiv idx, value */ 15, 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 */ 16, VALUE_OPT_OUTDER,
Packit aea12f
     /* equiv idx, value */ 16, 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 */ 17, VALUE_OPT_SRK_WELL_KNOWN,
Packit aea12f
     /* equiv idx, value */ 17, VALUE_OPT_SRK_WELL_KNOWN,
Packit aea12f
     /* equivalenced to  */ NO_EQUIVALENT,
Packit aea12f
     /* min, max, act ct */ 0, 1, 0,
Packit aea12f
     /* opt state flags  */ SRK_WELL_KNOWN_FLAGS, 0,
Packit aea12f
     /* last opt argumnt */ { NULL }, /* --srk-well-known */
Packit aea12f
     /* arg list/cookie  */ NULL,
Packit aea12f
     /* must/cannot opts */ NULL, NULL,
Packit aea12f
     /* option proc      */ NULL,
Packit aea12f
     /* desc, NAME, name */ SRK_WELL_KNOWN_DESC, SRK_WELL_KNOWN_NAME, SRK_WELL_KNOWN_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 tpmtool. */
Packit Service 991b93
#define zPROGNAME       (tpmtool_opt_strs+2006)
Packit aea12f
/** Reference to the title line for tpmtool usage. */
Packit Service 991b93
#define zUsageTitle     (tpmtool_opt_strs+2014)
Packit aea12f
/** There is no tpmtool configuration file. */
Packit aea12f
#define zRcName         NULL
Packit aea12f
/** There are no directories to search for tpmtool config files. */
Packit aea12f
#define apzHomeList     NULL
Packit aea12f
/** The tpmtool program bug email address. */
Packit Service 991b93
#define zBugsAddr       (tpmtool_opt_strs+2098)
Packit aea12f
/** Clarification/explanation of what tpmtool does. */
Packit Service 991b93
#define zExplain        (tpmtool_opt_strs+2114)
Packit aea12f
/** Extra detail explaining what tpmtool does. */
Packit Service 991b93
#define zDetail         (tpmtool_opt_strs+2116)
Packit aea12f
/** The full version string for tpmtool. */
Packit Service 991b93
#define zFullVersion    (tpmtool_opt_strs+2184)
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 tpmtool_full_usage (NULL)
Packit Service 991b93
#define tpmtool_short_usage (tpmtool_opt_strs+2199)
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 = TPMTOOL_EXIT_SUCCESS;
Packit aea12f
    optionUsage(&tpmtoolOptions, ex_code);
Packit aea12f
    /* NOTREACHED */
Packit aea12f
    exit(TPMTOOL_EXIT_FAILURE);
Packit aea12f
    (void)opts;
Packit aea12f
    (void)od;
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 tpmtool 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 infile option.
Packit aea12f
 *
Packit aea12f
 * @param[in] pOptions the tpmtool options data structure
Packit aea12f
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit aea12f
 */
Packit aea12f
static void
Packit aea12f
doOptInfile(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
/* extracted from optmain.tlib near line 1250 */
Packit aea12f
Packit aea12f
/**
Packit aea12f
 * The directory containing the data associated with tpmtool.
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 tpmtool
Packit aea12f
 * for the current distribution.
Packit aea12f
 */
Packit aea12f
#ifndef  WITH_PACKAGER
Packit aea12f
# define tpmtool_packager_info NULL
Packit aea12f
#else
Packit aea12f
/** Packager information for tpmtool. */
Packit aea12f
static char const tpmtool_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 tpmtool 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 tpmtool.  The one structure that
Packit aea12f
 * binds them all.
Packit aea12f
 */
Packit aea12f
tOptions tpmtoolOptions = {
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_NO_ARGS
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
    21 /* full option count */, 18 /* user option count */,
Packit aea12f
    tpmtool_full_usage, tpmtool_short_usage,
Packit aea12f
    NULL, NULL,
Packit aea12f
    PKGDATADIR, tpmtool_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
 * tpmtool 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(TPMTOOL_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 tpmtoolOptions
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 = &tpmtoolOptions;
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 tpmtoolOptions structure noted in the
Packit aea12f
     comments below.  The literal text is defined in tpmtool_opt_strs.
Packit Service 991b93
Packit aea12f
     NOTE: the strings below are segmented with respect to the source string
Packit aea12f
     tpmtool_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 tpmtoolOptions.pzCopyright */
Packit Service 991b93
  puts(_("tpmtool 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 tpmtoolOptions.pzCopyNotice */
Packit aea12f
  puts(_("tpmtool 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(_("tpmtool 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 tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Enable debugging"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Input file"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Output file"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Generate an RSA private-public key pair"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Any generated key will be registered in the TPM"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Any generated key will be a signing key"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Any generated key will be a legacy key"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Any registered key will be a user key"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Any registered key will be a system key"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Prints the public key of the provided key"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Lists all stored keys in the TPM"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Delete the key identified by the given URL (UUID)."));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Tests the signature operation of the provided object"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the security level [low, legacy, medium, high, ultra]."));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Specify the number of bits for key generate"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Use the DER format for keys."));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("Use DER format for output keys"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("SRK has well known password (20 bytes of zeros)"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("display extended usage information and exit"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("extended usage information passed thru pager"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pOptDesc->pzText */
Packit aea12f
  puts(_("output version information and exit"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzUsageTitle */
Packit aea12f
  puts(_("tpmtool - GnuTLS TPM tool\n\
Packit aea12f
Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzExplain */
Packit aea12f
  puts(_("\n"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzDetail */
Packit aea12f
  puts(_("Program that allows handling cryptographic data from the TPM chip.\n"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzFullVersion */
Packit Service 991b93
  puts(_("tpmtool 3.6.14"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzFullUsage */
Packit aea12f
  puts(_("<<<NOT-FOUND>>>"));
Packit aea12f
Packit aea12f
  /* referenced via tpmtoolOptions.pzShortUsage */
Packit aea12f
  puts(_("tpmtool [options]\n\
Packit aea12f
tpmtool --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
/* tpmtool-args.c ends here */