rpmkeyring.h
Go to the documentation of this file.
#ifndef _RPMKEYRING_H
#define _RPMKEYRING_H
#include <rpm/rpmtypes.h>
#include <rpm/rpmpgp.h>
#ifdef __cplusplus
extern "C" {
#endif
rpmKeyring rpmKeyringNew(void);
rpmKeyring rpmKeyringFree(rpmKeyring keyring);
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig);
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);
pgpDig rpmPubkeyDig(rpmPubkey key);
char * rpmPubkeyBase64(rpmPubkey key);
pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key);
#ifdef __cplusplus
}
#endif
#endif /* _RPMKEYDB_H */
rpmPubkeyPgpDigParams
pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key)
Return pgp params of key.
DIGEST_CTX
struct DIGEST_CTX_s * DIGEST_CTX
Definition: rpmpgp.h:25
pgpDig
struct pgpDig_s * pgpDig
Definition: rpmpgp.h:30
rpmKeyring
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:80
rpmKeyringAddKey
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key)
Add a public key to keyring.
rpmKeyringLookup
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig)
Perform keyring lookup for a key matching a signature.
rpmPubkey
struct rpmPubkey_s * rpmPubkey
Definition: rpmtypes.h:79
rpmPubkeyRead
rpmPubkey rpmPubkeyRead(const char *filename)
Create a new rpmPubkey from ASCII-armored pubkey file.
rpmPubkeyLink
rpmPubkey rpmPubkeyLink(rpmPubkey key)
Reference a pubkey.
rpmPubkeyBase64
char * rpmPubkeyBase64(rpmPubkey key)
Return base64 encoding of pubkey.
rpmGetSubkeys
rpmPubkey * rpmGetSubkeys(rpmPubkey mainkey, int *count)
Return array of subkeys belonging to maikey param mainkey main rpmPubkey param count count of returne...
rpmKeyringFree
rpmKeyring rpmKeyringFree(rpmKeyring keyring)
Free keyring and the keys within it.
pgpDigParams
struct pgpDigParams_s * pgpDigParams
Definition: rpmpgp.h:34
rpmKeyringNew
rpmKeyring rpmKeyringNew(void)
Create a new, empty keyring.
rpmPubkeyDig
pgpDig rpmPubkeyDig(rpmPubkey key)
Parse OpenPGP pubkey parameters.
rpmPubkeyNew
rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen)
Create a new rpmPubkey from OpenPGP packet.
rpmKeyringLink
rpmKeyring rpmKeyringLink(rpmKeyring keyring)
Reference a keyring.
rpmKeyringVerifySig
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
Perform combined keyring lookup and signature verification.
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmPubkeyFree
rpmPubkey rpmPubkeyFree(rpmPubkey key)
Free a pubkey.