rpm
5.4.10
|
#include "system.h"
#include <netinet/in.h>
#include <rpmio_internal.h>
#include <rpmcb.h>
#include <rpmhkp.h>
#include <rpmtag.h>
#include <rpmtypes.h>
#include <pkgio.h>
#include "signature.h"
#include "rpmts.h"
#include <rpmevr.h>
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | _RPMHKP_INTERNAL /* XXX internal prototypes. */ |
#define | _RPMEVR_INTERNAL |
#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. More... | |
static int | dncmp (const void *a, const void *b) |
static void | compressFilelist (Header h) |
Convert absolute path tag to (dirname,basename,dirindex) tags. More... | |
static void | providePackageNVR (Header h) |
static void | add_RPMTAG_SOURCERPM (Header h) |
static void | rpm3to4 (Header h) |
rpmRC | rpmReadPackageFile (rpmts ts, FD_t fd, const char *fn, Header *hdrp) |
Return package header from file handle, verifying digests/signatures. More... | |
Variables | |
unsigned int * | keyids = NULL |
static unsigned int | nkeyids_max = 256 |
static unsigned int | nkeyids = 0 |
static unsigned int | nextkeyid = 0 |
Referenced by rpmReadPackageFile().
#define alloca_strdup | ( | _s | ) | strcpy(alloca(strlen(_s)+1), (_s)) |
|
static |
Definition at line 393 of file package.c.
References alloca(), _HE_s::c, headerIsEntry(), headerPut(), _HE_s::p, RPM_STRING_TYPE, RPMTAG_SOURCEPACKAGE, RPMTAG_SOURCERPM, rpmDataType_u::str, _HE_s::t, and _HE_s::tag.
Referenced by rpm3to4().
|
static |
Convert absolute path tag to (dirname,basename,dirindex) tags.
h | header |
Definition at line 99 of file package.c.
References _free(), alloca(), _HE_s::c, dncmp(), headerDel(), headerGet(), headerIsEntry(), headerPut(), _HE_s::p, rpmDataType_u::ptr, RPM_STRING_ARRAY_TYPE, RPM_UINT32_TYPE, RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, RPMTAG_OLDFILENAMES, _HE_s::t, and _HE_s::tag.
Referenced by rpm3to4().
|
static |
Definition at line 85 of file package.c.
Referenced by compressFilelist().
|
static |
Remember current key id.
dig | container |
Definition at line 49 of file package.c.
References keyids, nextkeyid, nkeyids, nkeyids_max, pgpGetSig(), pgpGetSignature(), pgpGrab(), and xrealloc.
Referenced by rpmReadPackageFile().
|
static |
Definition at line 221 of file package.c.
References _free(), alloca(), _HE_s::append, rpmDataType_u::argv, _HE_s::c, headerGet(), headerNEVRA(), headerPut(), _HE_s::p, rpmDataType_u::ptr, RPM_STRING_ARRAY_TYPE, RPM_UINT32_TYPE, RPMSENSE_EQUAL, RPMTAG_DISTEPOCH, RPMTAG_EPOCH, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, stpcpy(), rpmDataType_u::str, _HE_s::t, _HE_s::tag, and rpmDataType_u::ui32p.
Referenced by rpm3to4().
|
static |
Definition at line 409 of file package.c.
References _free(), add_RPMTAG_SOURCERPM(), alloca(), compressFilelist(), headerGet(), _HE_s::p, providePackageNVR(), RPMTAG_RPMVERSION, rpmDataType_u::str, and _HE_s::tag.
Referenced by rpmReadPackageFile().
Return package header from file handle, verifying digests/signatures.
ts | transaction set |
fd | file handle |
fn | file name |
hdrp | address of header (or NULL) |
Definition at line 428 of file package.c.
References _, _chk, _free(), alloca(), rpmDataType_u::argv, _HE_s::c, rpmop_s::count, fdInitDigest(), fdSetDig(), fdstat_op(), FDSTAT_READ, fdStealDigest(), Fread(), Fstrerror(), headerFree(), headerGet(), headerGetMagic(), headerIsEntry(), headerLink(), headerMergeLegacySigs(), _HE_s::p, PGPARMOR_PUBKEY, pgpArmorUnwrap(), pgpDigVSFlags, pgpGetSigtag(), PGPHASHALGO_MD5, PGPHASHALGO_SHA1, pgpPktLen(), pgpSetSig(), pgpStashKeyid(), pgpStatsAccumulator(), rpmDataType_u::ptr, rpm3to4(), RPM_STRING_ARRAY_TYPE, RPMDIGEST_NONE, rpmDigestInit(), rpmDigestUpdate(), rpmiobAppend(), rpmiobFree(), rpmiobNew(), rpmlog(), RPMLOG_DEBUG, RPMLOG_ERR, RPMLOG_WARNING, rpmpkgRead(), RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOSIG, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, RPMSIGTAG_DSA, RPMSIGTAG_MD5, RPMSIGTAG_RSA, RPMSIGTAG_SHA1, rpmswAdd(), rpmswEnter(), rpmswExit(), rpmswSub(), RPMTAG_HEADERIMMUTABLE, RPMTAG_PUBKEYS, RPMTS_OP_DIGEST, RPMTS_OP_READHDR, rpmtsCleanDig(), rpmtsDig(), rpmtsOp(), rpmVerifySignature(), RPMVSF_NEEDPAYLOAD, RPMVSF_NODSAHEADER, RPMVSF_NOMD5, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1HEADER, _FD_s::stats, _HE_s::t, _HE_s::tag, rpmDataType_u::ui8p, and vsflags.
Referenced by dsort(), IDTXglob(), main(), processScriptFiles(), rpmgiReadHeader(), rpmInstallSourcePackage(), rpmrepoReadHeader(), rpmteFDHeader(), rpmts_HdrFromFdno(), and rpmtsSolve().
unsigned int* keyids = NULL |
Definition at line 34 of file package.c.
Referenced by pgpStashKeyid().
|
static |
Definition at line 42 of file package.c.
Referenced by pgpStashKeyid().
|
static |
Definition at line 40 of file package.c.
Referenced by pgpStashKeyid().
|
static |
Definition at line 38 of file package.c.
Referenced by pgpStashKeyid().