rpm  5.4.15
Macros | Typedefs | Functions | Variables
rpmhkp.h File Reference
#include <rpmiotypes.h>
#include <rpmio.h>
Include dependency graph for rpmhkp.h:
This graph shows which files directly or indirectly include this file:

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
 

Macro Definition Documentation

#define rpmhkpFree (   _hkp)    ((rpmhkp)rpmioFreePoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 98 of file rpmhkp.h.

#define rpmhkpLink (   _hkp)    ((rpmhkp)rpmioLinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 86 of file rpmhkp.h.

#define rpmhkpUnlink (   _hkp)    ((rpmhkp)rpmioUnlinkPoolItem((rpmioItem)(_hkp), __FUNCTION__, __FILE__, __LINE__))

Definition at line 75 of file rpmhkp.h.

Typedef Documentation

typedef struct rpmhkp_s* rpmhkp

Definition at line 11 of file rpmhkp.h.

Function Documentation

void _rpmhkpPrintStats ( FILE *  fp)

Display hkp usage statistics.

Parameters
fpfile handle (NULL uses stderr)

Definition at line 1111 of file rpmhkp.c.

References SUM.

rpmhkp rpmhkpFree ( rpmhkp  hkp)

Destroy a hkp handle.

Parameters
hkphkp handle
Returns
NULL on last dereference

Referenced by rpmcliImportPubkey(), rpmhkpFindKey(), rpmhkpLookup(), rpmhkpValidate(), rpmioClean(), rpmnsProbeSignature(), rpmtsFindPubkey(), and rpmtsFini().

rpmhkp rpmhkpLink ( rpmhkp  hkp)

Reference a hkp handle instance.

Parameters
hkphkp handle
Returns
new hkp handle reference

Referenced by rpmcliImportPubkey(), rpmhkpNew(), rpmhkpValidate(), rpmnsProbeSignature(), and rpmtsFindPubkey().

rpmhkp rpmhkpLookup ( const char *  keyname)

Retrieve a pubkey from a SKS server.

Parameters
keynamepubkey query string
Returns
hkp handle

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.

Parameters
keyidpubkey fingerprint (or NULL)
flagshkp handle flags ((1<<31): use global handle)
Returns
new hkp 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().

rpmhkp rpmhkpUnlink ( rpmhkp  hkp)

Unreference a hkp handle instance.

Parameters
hkphkp handle
Returns
NULL on last dereference
rpmRC rpmhkpValidate ( rpmhkp  hkp,
const char *  keyname 
)

Variable Documentation

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().