rpm  4.12.0.1
rpmkeyring.h
Go to the documentation of this file.
1 #ifndef _RPMKEYRING_H
2 #define _RPMKEYRING_H
3 
8 #include <rpm/rpmtypes.h>
9 #include <rpm/rpmpgp.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
20 
26 
33 int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
34 
42 
51 
58 
65 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
66 
72 rpmPubkey rpmPubkeyRead(const char *filename);
73 
80 
87 
94 
100 char * rpmPubkeyBase64(rpmPubkey key);
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 #endif /* _RPMKEYDB_H */
struct DIGEST_CTX_s * DIGEST_CTX
Definition: rpmpgp.h:25
struct pgpDig_s * pgpDig
Definition: rpmpgp.h:30
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:80
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
Definition: rpmtypes.h:79
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
Definition: rpmpgp.h:34
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.