#include "system.h"
#include <rpmio_internal.h>
#include <rpmmacro.h>
#include <rpmmessages.h>
#include <popt.h>
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | HKPPATH "hkp://sks.keyserver.penguin.de" |
Functions | |
static int | readKeys (const char *uri) |
int | main (int argc, const char *argv[]) |
Variables | |
static int | _debug = 0 |
static int | _printing = 0 |
static char * | hkppath = "hkp://sks.keyserver.penguin.de" |
static unsigned int | keyids [] |
static struct poptOption | optionsTable [] |
int main | ( | int | argc, | |
const char * | argv[] | |||
) |
Definition at line 107 of file thkp.c.
References _debug, hkppath, optionsTable, readKeys(), rpmIncreaseVerbosity, and urlFreeCache().
static int readKeys | ( | const char * | uri | ) | [static] |
Definition at line 42 of file thkp.c.
References _printing, keyids, PGPARMOR_ERROR, PGPARMOR_NONE, pgpCleanDig(), pgpFreeDig(), pgpGrab(), pgpHexStr(), pgpNewDig(), pgpPrtPkts(), pgpPubkeyFingerprint(), and pgpReadPkts().
Referenced by main().
int _printing = 0 [static] |
char* hkppath = "hkp://sks.keyserver.penguin.de" [static] |
unsigned int keyids[] [static] |
struct poptOption optionsTable[] [static] |
Initial value:
{ { "print", 'p', POPT_ARG_VAL, &_printing, 1, NULL, NULL }, { "noprint", 'n', POPT_ARG_VAL, &_printing, 0, NULL, NULL }, { "debug", 'd', POPT_ARG_VAL, &_debug, -1, NULL, NULL }, { "davdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_dav_debug, -1, "debug protocol data stream" , NULL}, { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1, "debug protocol data stream" , NULL}, { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1, "debug rpmio I/O" , NULL}, { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1, "debug URL cache handling" , NULL}, { "verbose", 'v', 0, 0, 'v', NULL, NULL }, POPT_AUTOHELP POPT_TABLEEND }