rpm 4.19.0
The RPM Package Manager
|
RPM keyring API. More...
Files | |
file | rpmkeyring.h |
Functions | |
rpmKeyring | rpmKeyringNew (void) |
rpmKeyring | rpmKeyringFree (rpmKeyring keyring) |
int | rpmKeyringAddKey (rpmKeyring keyring, rpmPubkey key) |
rpmRC | rpmKeyringVerifySig (rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx) |
rpmKeyring | rpmKeyringLink (rpmKeyring keyring) |
rpmPubkey | rpmPubkeyNew (const uint8_t *pkt, size_t pktlen) |
rpmPubkey * | rpmGetSubkeys (rpmPubkey mainkey, int *count) |
rpmPubkey | rpmPubkeyRead (const char *filename) |
rpmPubkey | rpmPubkeyFree (rpmPubkey key) |
rpmPubkey | rpmPubkeyLink (rpmPubkey key) |
char * | rpmPubkeyBase64 (rpmPubkey key) |
pgpDigParams | rpmPubkeyPgpDigParams (rpmPubkey key) |
RPM keyring API.
rpmPubkey * rpmGetSubkeys | ( | rpmPubkey | mainkey, |
int * | count | ||
) |
Return array of subkeys belonging to mainkey param mainkey main rpmPubkey param count count of returned subkeys
int rpmKeyringAddKey | ( | rpmKeyring | keyring, |
rpmPubkey | key | ||
) |
Add a public key to keyring.
keyring | keyring handle |
key | pubkey handle |
rpmKeyring rpmKeyringFree | ( | rpmKeyring | keyring | ) |
Free keyring and the keys within it
rpmKeyring rpmKeyringLink | ( | rpmKeyring | keyring | ) |
Reference a keyring.
keyring | keyring handle |
rpmKeyring rpmKeyringNew | ( | void | ) |
Create a new, empty keyring
rpmRC rpmKeyringVerifySig | ( | rpmKeyring | keyring, |
pgpDigParams | sig, | ||
DIGEST_CTX | ctx | ||
) |
Perform combined keyring lookup and signature verification
keyring | keyring handle |
sig | OpenPGP signature parameters |
ctx | signature hash context |
char * rpmPubkeyBase64 | ( | rpmPubkey | key | ) |
Return base64 encoding of pubkey
key | Pubkey |
rpmPubkey rpmPubkeyFree | ( | rpmPubkey | key | ) |
Free a pubkey.
key | Pubkey to free |
rpmPubkey rpmPubkeyLink | ( | rpmPubkey | key | ) |
Reference a pubkey.
key | Pubkey |
rpmPubkey rpmPubkeyNew | ( | const uint8_t * | pkt, |
size_t | pktlen | ||
) |
Create a new rpmPubkey from OpenPGP packet
pkt | OpenPGP packet data |
pktlen | Data length |
pgpDigParams rpmPubkeyPgpDigParams | ( | rpmPubkey | key | ) |
Return pgp params of key
key | Pubkey |
rpmPubkey rpmPubkeyRead | ( | const char * | filename | ) |
Create a new rpmPubkey from ASCII-armored pubkey file
filename | Path to pubkey file |