8 #include <rpm/rpmtypes.h>
9 #include <rpm/rpmpgp.h>
struct DIGEST_CTX_s * DIGEST_CTX
struct rpmKeyring_s * rpmKeyring
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key)
Add a public key to keyring.
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig)
Perform keyring lookup for a key matching a signature.
struct rpmPubkey_s * rpmPubkey
rpmPubkey rpmPubkeyRead(const char *filename)
Create a new rpmPubkey from ASCII-armored pubkey file.
rpmPubkey rpmPubkeyLink(rpmPubkey key)
Reference a pubkey.
char * rpmPubkeyBase64(rpmPubkey key)
Return base64 encoding of pubkey.
rpmKeyring rpmKeyringFree(rpmKeyring keyring)
Free keyring and the keys within it.
struct pgpDigParams_s * pgpDigParams
rpmKeyring rpmKeyringNew(void)
Create a new, empty keyring.
pgpDig rpmPubkeyDig(rpmPubkey key)
Parse OpenPGP pubkey parameters.
rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen)
Create a new rpmPubkey from OpenPGP packet.
rpmKeyring rpmKeyringLink(rpmKeyring keyring)
Reference a keyring.
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
Perform combined keyring lookup and signature verification.
enum rpmRC_e rpmRC
Package read return codes.
rpmPubkey rpmPubkeyFree(rpmPubkey key)
Free a pubkey.