rpm
4.14.0
|
RPM keyring API. More...
Files | |
file | rpmkeyring.h |
RPM keyring API. | |
Functions | |
rpmKeyring | rpmKeyringNew (void) |
Create a new, empty keyring. More... | |
rpmKeyring | rpmKeyringFree (rpmKeyring keyring) |
Free keyring and the keys within it. More... | |
int | rpmKeyringAddKey (rpmKeyring keyring, rpmPubkey key) |
Add a public key to keyring. More... | |
rpmRC | rpmKeyringLookup (rpmKeyring keyring, pgpDig sig) |
Perform keyring lookup for a key matching a signature. More... | |
rpmRC | rpmKeyringVerifySig (rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx) |
Perform combined keyring lookup and signature verification. More... | |
rpmKeyring | rpmKeyringLink (rpmKeyring keyring) |
Reference a keyring. More... | |
rpmPubkey | rpmPubkeyNew (const uint8_t *pkt, size_t pktlen) |
Create a new rpmPubkey from OpenPGP packet. More... | |
rpmPubkey * | rpmGetSubkeys (rpmPubkey mainkey, int *count) |
Return array of subkeys belonging to maikey param mainkey main rpmPubkey param count count of returned subkeys. More... | |
rpmPubkey | rpmPubkeyRead (const char *filename) |
Create a new rpmPubkey from ASCII-armored pubkey file. More... | |
rpmPubkey | rpmPubkeyFree (rpmPubkey key) |
Free a pubkey. More... | |
rpmPubkey | rpmPubkeyLink (rpmPubkey key) |
Reference a pubkey. More... | |
pgpDig | rpmPubkeyDig (rpmPubkey key) |
Parse OpenPGP pubkey parameters. More... | |
char * | rpmPubkeyBase64 (rpmPubkey key) |
Return base64 encoding of pubkey. More... | |
pgpDigParams | rpmPubkeyPgpDigParams (rpmPubkey key) |
Return pgp params of key. More... | |
RPM keyring API.
Return array of subkeys belonging to maikey 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 |
rpmRC rpmKeyringLookup | ( | rpmKeyring | keyring, |
pgpDig | sig | ||
) |
Perform keyring lookup for a key matching a signature.
keyring | keyring handle |
sig | OpenPGP packet container of signature |
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 |
Parse OpenPGP pubkey parameters.
key | Pubkey |
Free a pubkey.
key | Pubkey to free |
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 |