rpmio/thkp.c File Reference

#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 []


Define Documentation

#define HKPPATH   "hkp://sks.keyserver.penguin.de"

Definition at line 20 of file thkp.c.


Function Documentation

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().


Variable Documentation

int _debug = 0 [static]

Definition at line 10 of file thkp.c.

int _printing = 0 [static]

Definition at line 11 of file thkp.c.

Referenced by readKeys().

char* hkppath = "hkp://sks.keyserver.penguin.de" [static]

Definition at line 23 of file thkp.c.

Referenced by main().

unsigned int keyids[] [static]

Initial value:

 {












        0x58e727c4, 0xc621be0f,
        0
}

Definition at line 25 of file thkp.c.

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
}

Definition at line 89 of file thkp.c.


Generated on Mon Mar 5 13:30:32 2007 for rpm by  doxygen 1.5.1