|
rpm
5.2.1
|
#include "system.h"#include <rpmiotypes.h>#include <rpmio.h>#include <rpmmacro.h>#include <rpmcb.h>#include <rpmpgp.h>#include <rpmtypes.h>#include <rpmtag.h>#include <rpmevr.h>#include <rpmns.h>#include <rpmdb.h>#include <rpmps.h>#include <rpmts.h>#include "debug.h"
Go to the source code of this file.
Data Structures | |
| struct | _rpmnsProbes_s |
| Dependency probe table. More... | |
Macros | |
| #define | _RPMIOB_INTERNAL /* XXX rpmiobSlurp */ |
| #define | _RPMPGP_INTERNAL |
| #define | _RPMEVR_INTERNAL |
| #define | _RPMNS_INTERNAL |
| #define | _RPMTS_INTERNAL /* XXX ts->pkpkt, ts->pkpktlen */ |
Functions | |
| nsType | rpmnsArch (const char *str) |
| Is string a known arch suffix? More... | |
| nsType | rpmnsProbe (const char *str) |
| Is string a known probe namespace? More... | |
| nsType | rpmnsClassify (const char *str) |
| Classify a string as a dependency type. More... | |
| int | rpmnsParse (const char *str, rpmns ns) |
| Split NS string into namespace, name and arch components. More... | |
| static unsigned char | nibble (char c) |
| Convert hex to binary nibble. More... | |
| rpmRC | rpmnsProbeSignature (void *_ts, const char *fn, const char *sigfn, const char *pubfn, const char *pubid, int flags) |
| Verify OpenPGP signature on a file. More... | |
Variables | |
| int | _rpmns_debug = 0 |
| const char * | _rpmns_N_at_A = "." |
| static const char * | rpmnsArches [] |
| static struct _rpmnsProbes_s | rpmnsProbes [] |
| #define _RPMIOB_INTERNAL /* XXX rpmiobSlurp */ |
|
inlinestatic |
Convert hex to binary nibble.
| c | hex character |
Definition at line 280 of file rpmns.c.
Referenced by rpmnsProbeSignature().
| rpmRC rpmnsProbeSignature | ( | void * | _ts, |
| const char * | fn, | ||
| const char * | sigfn, | ||
| const char * | pubfn, | ||
| const char * | pubid, | ||
| int | flags | ||
| ) |
Verify OpenPGP signature on a file.
| _ts | transaction set |
| fn | plaintext (or clearsign) file |
| sigfn | binary/pem encoded signature file (NULL iff clearsign) |
| pubfn | binary/pem encoded pubkey file (NULL uses rpmdb keyring) |
| pubid | pubkey fingerprint hex string (NULL disables check) |
| flags | (unused) |
Definition at line 292 of file rpmns.c.
References _free(), _rpmns_debug, alloca(), nibble(), PGPARMOR_PUBKEY, PGPARMOR_SIGNATURE, pgpFindPubkey(), pgpGetPubkey(), pgpGetSignature(), pgpGrab(), pgpImplSetDSA(), pgpImplSetRSA(), pgpImplVerifyDSA(), pgpImplVerifyRSA(), pgpPrtPkts(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_RSA, pgpReadPkts(), RPMDIGEST_NONE, rpmDigestInit(), rpmDigestUpdate(), rpmExpand(), rpmiobFree(), rpmiobSlurp(), RPMRC_FAIL, RPMRC_NOKEY, RPMRC_OK, rpmtsCleanDig(), and rpmtsDig().
Referenced by unsatisfiedDepend().
| int _rpmns_debug = 0 |
Definition at line 33 of file rpmns.c.
Referenced by rpmnsProbeSignature().
| const char* _rpmns_N_at_A = "." |
Definition at line 36 of file rpmns.c.
Referenced by rpmdsNewDNEVR(), rpmnsClassify(), and rpmnsParse().
|
static |
Definition at line 40 of file rpmns.c.
Referenced by rpmnsArch().
|
static |
Referenced by rpmnsProbe().
1.8.3.1