rpm: rpmkeyring.h Source File

rpm 4.12.0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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
19 rpmKeyring rpmKeyringNew(void);
20
25 rpmKeyring rpmKeyringFree(rpmKeyring keyring);
26
33 int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
34
41 rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig);
42
50 rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx);
51
57 rpmKeyring rpmKeyringLink(rpmKeyring keyring);
58
65 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
66
72 rpmPubkey rpmPubkeyRead(const char *filename);
73
79 rpmPubkey rpmPubkeyFree(rpmPubkey key);
80
86 rpmPubkey rpmPubkeyLink(rpmPubkey key);
87
93 pgpDig rpmPubkeyDig(rpmPubkey key);
94
100 char * rpmPubkeyBase64(rpmPubkey key);
101
102 #ifdef __cplusplus
103 }
104 #endif
105 #endif /* _RPMKEYDB_H */
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.
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.