rpm
5.2.1
|
Go to the source code of this file.
Typedefs | |
typedef struct rpmns_s * | rpmns |
typedef enum nsType_e | nsType |
Dependency types. More... | |
Enumerations | |
enum | nsType_e { RPMNS_TYPE_UNKNOWN = 0, RPMNS_TYPE_STRING = (1 << 0), RPMNS_TYPE_PATH = (1 << 1), RPMNS_TYPE_DSO = (1 << 2), RPMNS_TYPE_FUNCTION = (1 << 3), RPMNS_TYPE_ARCH = (1 << 4), RPMNS_TYPE_VERSION = (1 << 5), RPMNS_TYPE_COMPOUND = (1 << 6), RPMNS_TYPE_NAMESPACE = (1 << 8), RPMNS_TYPE_RPMLIB = (1 << 9), RPMNS_TYPE_CPUINFO = (1 << 10), RPMNS_TYPE_GETCONF = (1 << 11), RPMNS_TYPE_UNAME = (1 << 12), RPMNS_TYPE_SONAME = (1 << 13), RPMNS_TYPE_ACCESS = (1 << 14), RPMNS_TYPE_TAG = (1 << 15), RPMNS_TYPE_USER = (1 << 16), RPMNS_TYPE_GROUP = (1 << 17), RPMNS_TYPE_MOUNTED = (1 << 18), RPMNS_TYPE_DISKSPACE = (1 << 19), RPMNS_TYPE_DIGEST = (1 << 20), RPMNS_TYPE_GNUPG = (1 << 21), RPMNS_TYPE_MACRO = (1 << 22), RPMNS_TYPE_ENVVAR = (1 << 23), RPMNS_TYPE_RUNNING = (1 << 24), RPMNS_TYPE_SANITY = (1 << 25), RPMNS_TYPE_VCHECK = (1 << 26), RPMNS_TYPE_SIGNATURE = (1 << 27), RPMNS_TYPE_VERIFY = (1 << 28), RPMNS_TYPE_CONFIG = (1 << 29) } |
Dependency types. More... | |
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... | |
void | rpmnsClean (void) |
Clean global name space dependency sets. 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 |
const char * | _rpmns_N_at_A |
enum nsType_e |
Dependency types.
void rpmnsClean | ( | void | ) |
Clean global name space dependency sets.
Definition at line 830 of file depends.c.
References _free(), _sysinfo_path, and rpmdsFree().
Referenced by rpmcliFini().
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 |
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().