rpm
5.4.15
|
Go to the source code of this file.
Macros | |
#define | rpmhkpUnlink(_hkp) ((rpmhkp)rpmioUnlinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmhkpLink(_hkp) ((rpmhkp)rpmioLinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmhkpFree(_hkp) ((rpmhkp)rpmioFreePoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmhkp_s * | rpmhkp |
Functions | |
rpmhkp | rpmhkpUnlink (rpmhkp hkp) |
Unreference a hkp handle instance. More... | |
rpmhkp | rpmhkpLink (rpmhkp hkp) |
Reference a hkp handle instance. More... | |
rpmhkp | rpmhkpFree (rpmhkp hkp) |
Destroy a hkp handle. More... | |
rpmhkp | rpmhkpNew (const rpmuint8_t *keyid, uint32_t flags) |
Create a new hkp handle. More... | |
rpmhkp | rpmhkpLookup (const char *keyname) |
Retrieve a pubkey from a SKS server. More... | |
rpmRC | rpmhkpValidate (rpmhkp hkp, const char *keyname) |
Retrieve/Validate binding and certification signatures on a pubkey. More... | |
void | _rpmhkpPrintStats (FILE *fp) |
Display hkp usage statistics. More... | |
Variables | |
int | _rpmhkp_debug |
rpmhkp | _rpmhkpI |
#define rpmhkpFree | ( | _hkp | ) | ((rpmhkp)rpmioFreePoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmhkpLink | ( | _hkp | ) | ((rpmhkp)rpmioLinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmhkpUnlink | ( | _hkp | ) | ((rpmhkp)rpmioUnlinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__)) |
void _rpmhkpPrintStats | ( | FILE * | fp | ) |
Destroy a hkp handle.
hkp | hkp handle |
Referenced by rpmcliImportPubkey(), rpmhkpFindKey(), rpmhkpLookup(), rpmhkpValidate(), rpmioClean(), rpmnsProbeSignature(), rpmtsFindPubkey(), and rpmtsFini().
Reference a hkp handle instance.
hkp | hkp handle |
Referenced by rpmcliImportPubkey(), rpmhkpNew(), rpmhkpValidate(), rpmnsProbeSignature(), and rpmtsFindPubkey().
rpmhkp rpmhkpLookup | ( | const char * | keyname | ) |
Retrieve a pubkey from a SKS server.
keyname | pubkey query string |
Definition at line 318 of file rpmhkp.c.
References _free(), HKPDEBUG, PGPARMOR_ERROR, PGPARMOR_NONE, pgpGrabPkts(), pgpPubkeyFingerprint(), pgpReadPkts(), rpmExpand(), rpmhkpEscape(), rpmhkpFree(), rpmhkpNew(), and SUM.
Referenced by rpmhkpFindKey(), and rpmhkpValidate().
rpmhkp rpmhkpNew | ( | const rpmuint8_t * | keyid, |
uint32_t | flags | ||
) |
Create a new hkp handle.
keyid | pubkey fingerprint (or NULL) |
flags | hkp handle flags ((1<<31): use global handle) |
Definition at line 112 of file rpmhkp.c.
References rpmbfLink(), rpmbfNew(), rpmbfParams(), rpmhkpGetPool(), rpmhkpI(), and rpmhkpLink().
Referenced by rpmcliImportPubkey(), rpmhkpI(), rpmhkpLookup(), rpmnsProbeSignature(), and rpmtsFindPubkey().
Unreference a hkp handle instance.
hkp | hkp handle |
Retrieve/Validate binding and certification signatures on a pubkey.
hkp | hkp handle |
keyname | pubkey query string |
Definition at line 901 of file rpmhkp.c.
References _pgpPubkeyAlgo2Name(), _pgpTag2Name(), alloca(), HKPDEBUG, i, pgpGrab(), pgpHexStr(), pgpPktLen(), pgpPubkeyFingerprint(), PGPSIGTYPE_BINARY, PGPSIGTYPE_CASUAL_CERT, PGPSIGTYPE_CERT_REVOKE, PGPSIGTYPE_CONFIRM, PGPSIGTYPE_GENERIC_CERT, PGPSIGTYPE_KEY_BINDING, PGPSIGTYPE_KEY_REVOKE, PGPSIGTYPE_PERSONA_CERT, PGPSIGTYPE_POSITIVE_CERT, PGPSIGTYPE_SIGNED_KEY, PGPSIGTYPE_STANDALONE, PGPSIGTYPE_SUBKEY_BINDING, PGPSIGTYPE_SUBKEY_REVOKE, PGPSIGTYPE_TEXT, PGPSIGTYPE_TIMESTAMP, PGPTAG_PUBLIC_KEY, PGPTAG_PUBLIC_SUBKEY, PGPTAG_SIGNATURE, PGPTAG_USER_ID, ppSignid(), ppSigTime(), ppSigType(), rpmbfAdd(), rpmhkpFree(), rpmhkpLink(), rpmhkpLookup(), rpmhkpVerify(), rpmlog(), RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, SPEW, SUM, time, user, and pgpPktUid_s::userid.
Referenced by rpmcliImportPubkey(), rpmnsProbeSignature(), and rpmtsFindPubkey().
int _rpmhkp_debug |
Definition at line 19 of file rpmhkp.c.
Referenced by rpmtsFindPubkey(), rpmVerifySignature(), verifyDSA(), verifyECDSA(), and verifyRSA().
rpmhkp _rpmhkpI |
Definition at line 22 of file rpmhkp.c.
Referenced by rpmhkpI(), and rpmioClean().