| rpm
    4.10.0
    | 
#include "system.h"#include <popt.h>#include <rpm/rpmcli.h>#include "cliutils.h"#include "debug.h"
Go to the source code of this file.
| Enumerations | |
| enum | modes { MODE_BUILD = (1 << 4), MODE_REBUILD = (1 << 5), MODE_RECOMPILE = (1 << 8), MODE_TARBUILD = (1 << 11), MODE_INITDB = (1 << 0), MODE_REBUILDDB = (1 << 1), MODE_VERIFYDB = (1 << 2), MODE_CHECKSIG = (1 << 0), MODE_IMPORTKEY = (1 << 1), MODE_DELKEY = (1 << 2), MODE_LISTKEY = (1 << 3), MODE_QUERY = (1 << 0), MODE_VERIFY = (1 << 3), MODE_ADDSIGN = (1 << 0), MODE_RESIGN = (1 << 1), MODE_DELSIGN = (1 << 2), MODE_UNKNOWN = 0, MODE_QUERY = (1 << 0), MODE_PARSE = (1 << 1) } | 
| Functions | |
| int | main (int argc, char *argv[]) | 
| Variables | |
| char ** | environ = NULL | 
| static int | mode = 0 | 
| static int | test = 0 | 
| static struct poptOption | keyOptsTable [] | 
| static struct poptOption | optionsTable [] | 
| enum modes | 
| int main | ( | int | argc, | 
| char * | argv[] | ||
| ) | 
Definition at line 49 of file rpmkeys.c.
References rpmcliInit(), rpmtsCreate(), printUsage(), MODE_LISTKEY, argerror(), _, rpmtsSetRootDir(), rpmcliRootDir, MODE_CHECKSIG, rpmcliVerifySignatures(), MODE_IMPORTKEY, rpmtsSetFlags(), rpmtsFlags(), RPMTRANS_FLAG_TEST, rpmcliImportPubkeys(), MODE_DELKEY, rpmtsFree(), and rpmcliFini().
| struct poptOption keyOptsTable[]  [static] | 
 {
    { "checksig", 'K', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode, MODE_CHECKSIG,
         "verify package signature(s)" , NULL },
    { "import", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode, MODE_IMPORTKEY,
         "import an armored public key" , NULL },
    { "test", '\0', POPT_ARG_NONE, &test, 0,
         "don't import, but tell if it would work or not" , NULL },
    POPT_TABLEEND
}
| struct poptOption optionsTable[]  [static] | 
 {
    { NULL, '\0', POPT_ARG_INCLUDE_TABLE, keyOptsTable, 0,
         "Keyring options:" , NULL },
    { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
         "Common options for all rpm modes and executables:" , NULL },
    POPT_AUTOALIAS
    POPT_AUTOHELP
    POPT_TABLEEND
}
 1.7.5
 1.7.5