lib/package.c File Reference

#include "system.h"
#include <netinet/in.h>
#include <rpmio_internal.h>
#include <rpmcb.h>
#include <rpmlib.h>
#include "rpmts.h"
#include <pkgio.h>
#include "signature.h"
#include "debug.h"

Include dependency graph for package.c:

Go to the source code of this file.

Defines

#define alloca_strdup(_s)   strcpy(alloca(strlen(_s)+1), (_s))
#define _chk(_mask)   (she->tag == 0 && !(vsflags & (_mask)))

Functions

static int pgpStashKeyid (pgpDig dig)
 Remember current key id.
rpmRC rpmReadPackageFile (rpmts ts, void *_fd, const char *fn, Header *hdrp)
 Return package header from file handle, verifying digests/signatures.

Variables

static int _print_pkts = 0
static unsigned int nkeyids_max = 256
static unsigned int nkeyids = 0
static unsigned int nextkeyid = 0
unsigned int * keyids = NULL


Detailed Description

Definition in file package.c.


Define Documentation

#define _chk ( _mask   )     (she->tag == 0 && !(vsflags & (_mask)))

Referenced by rpmReadPackageFile().

#define alloca_strdup ( _s   )     strcpy(alloca(strlen(_s)+1), (_s))

Definition at line 21 of file package.c.


Function Documentation

static int pgpStashKeyid ( pgpDig  dig  )  [static]

Remember current key id.

Parameters:
dig container
Returns:
0 if new keyid, otherwise 1

Definition at line 45 of file package.c.

References keyids, nextkeyid, nkeyids, nkeyids_max, pgpGetSig(), pgpGetSignature(), pgpGrab(), and xrealloc().

Referenced by rpmReadPackageFile().

rpmRC rpmReadPackageFile ( rpmts  ts,
void *  _fd,
const char *  fn,
Header hdrp 
)


Variable Documentation

int _print_pkts = 0 [static]

Definition at line 29 of file package.c.

Referenced by headerCheck(), rpmReadPackageFile(), and rpmVerifySignatures().

unsigned int* keyids = NULL

Definition at line 38 of file package.c.

Referenced by pgpStashKeyid(), and rpmcliFini().

unsigned int nextkeyid = 0 [static]

Definition at line 36 of file package.c.

Referenced by pgpStashKeyid().

unsigned int nkeyids = 0 [static]

Definition at line 34 of file package.c.

Referenced by pgpStashKeyid().

unsigned int nkeyids_max = 256 [static]

Definition at line 32 of file package.c.

Referenced by pgpStashKeyid().


Generated on Tue Apr 21 04:26:47 2009 for rpm by  doxygen 1.5.8