rpm
5.4.10
|
Go to the source code of this file.
Typedefs | |
typedef struct rpmns_s * | rpmns |
typedef enum nsType_e | nsType |
Dependency types. More... | |
Functions | |
nsType | rpmnsArch (const char *str) |
Is string a known arch suffix? More... | |
nsType | rpmnsProbe (const char *s, size_t slen) |
Is string a known probe namespace? More... | |
nsType | rpmnsClassify (const char *s, size_t slen) |
Classify a string as a dependency type. More... | |
int | rpmnsParse (const char *str, rpmns ns) |
Expand and split NS(N).A 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.
nsType rpmnsArch | ( | const char * | str | ) |
Is string a known arch suffix?
str | string |
Definition at line 70 of file rpmns.c.
References _free(), rpmExpand(), RPMNS_TYPE_ARCH, RPMNS_TYPE_UNKNOWN, and xisspace().
Referenced by rpmnsClassify().
nsType rpmnsClassify | ( | const char * | s, |
size_t | slen | ||
) |
Classify a string as a dependency type.
s | string like "bing(bang).boom" |
slen | string length (0 uses strlen(s)) |
Definition at line 197 of file rpmns.c.
References RPMNS_TYPE_ARCH, RPMNS_TYPE_COMPOUND, RPMNS_TYPE_DSO, RPMNS_TYPE_FUNCTION, RPMNS_TYPE_NAMESPACE, RPMNS_TYPE_PATH, RPMNS_TYPE_STRING, RPMNS_TYPE_UNKNOWN, RPMNS_TYPE_VERSION, rpmnsArch(), rpmnsProbe(), _rpmnsProbes_s::Type, and xisdigit().
Referenced by rpmnsParse().
void rpmnsClean | ( | void | ) |
Clean global name space dependency sets.
Definition at line 863 of file depends.c.
References _free(), _sysinfo_path, cpuinfoP, getconfP, rpmdsFree(), rpmlibP, sysinfo_path, and unameP.
Referenced by rpmcliFini().
int rpmnsParse | ( | const char * | str, |
rpmns | ns | ||
) |
Expand and split NS(N).A string into namespace, name and arch components.
s | string like "bing(bang).boom" |
*ns | parse results |
Definition at line 236 of file rpmns.c.
References rpmExpand(), RPMNS_TYPE_ACCESS, RPMNS_TYPE_ARCH, RPMNS_TYPE_COMPOUND, RPMNS_TYPE_CONFIG, RPMNS_TYPE_CPUINFO, RPMNS_TYPE_DIGEST, RPMNS_TYPE_DISKSPACE, RPMNS_TYPE_DSO, RPMNS_TYPE_ENVVAR, RPMNS_TYPE_FUNCTION, RPMNS_TYPE_GETCONF, RPMNS_TYPE_GNUPG, RPMNS_TYPE_GROUP, RPMNS_TYPE_MACRO, RPMNS_TYPE_MOUNTED, RPMNS_TYPE_NAMESPACE, RPMNS_TYPE_PATH, RPMNS_TYPE_RPMLIB, RPMNS_TYPE_RUNNING, RPMNS_TYPE_SANITY, RPMNS_TYPE_SIGNATURE, RPMNS_TYPE_SONAME, RPMNS_TYPE_STRING, RPMNS_TYPE_TAG, RPMNS_TYPE_UNAME, RPMNS_TYPE_UNKNOWN, RPMNS_TYPE_USER, RPMNS_TYPE_VCHECK, RPMNS_TYPE_VERIFY, RPMNS_TYPE_VERSION, and rpmnsClassify().
Referenced by rpmdsNewN().
nsType rpmnsProbe | ( | const char * | s, |
size_t | slen | ||
) |
Is string a known probe namespace?
s | string |
slen | string length (0 uses strlen(s)) |
Definition at line 170 of file rpmns.c.
References _rpmnsProbes_s::NS, _rpmnsProbes_s::NSlen, RPMNS_TYPE_UNKNOWN, rpmnsProbes, rpmnsProbesCount, and _rpmnsProbes_s::Type.
Referenced by rpmnsClassify().
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 323 of file rpmns.c.
References _free(), alloca(), nibble(), PGPARMOR_PUBKEY, PGPARMOR_SIGNATURE, pgpFindPubkey(), pgpGetPubkey(), pgpGetSignature(), pgpGrab(), pgpGrabPkts(), pgpImplSetDSA(), pgpImplSetRSA(), pgpImplVerify(), pgpPktLen(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_RSA, pgpPubkeyFingerprint(), pgpReadPkts(), RPMDIGEST_NONE, rpmDigestInit(), rpmDigestUpdate(), rpmExpand(), rpmiobFree(), rpmiobSlurp(), RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, rpmtsCleanDig(), and rpmtsDig().
Referenced by argerror(), and unsatisfiedDepend().
const char* _rpmns_N_at_A |
Definition at line 43 of file rpmns.c.
Referenced by rpmdsNewDNEVR().