rpm  4.18.0
rpmkeyring.h
Go to the documentation of this file.
1 #ifndef _RPMKEYRING_H
2 #define _RPMKEYRING_H
3 
10 #include <rpm/rpmtypes.h>
11 #include <rpm/rpmpgp.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
22 
28 
36 
47 
56 
63 
70 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
71 
78 rpmPubkey *rpmGetSubkeys(rpmPubkey mainkey, int *count);
79 
85 rpmPubkey rpmPubkeyRead(const char *filename);
86 
93 
100 
110 
117 
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 #endif /* _RPMKEYDB_H */
struct DIGEST_CTX_s * DIGEST_CTX
Definition: rpmcrypto.h:12
rpmPubkey rpmPubkeyRead(const char *filename)
Create a new rpmPubkey from ASCII-armored pubkey file.
RPM_GNUC_DEPRECATED rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig)
Perform keyring lookup for a key matching a signature.
RPM_GNUC_DEPRECATED pgpDig rpmPubkeyDig(rpmPubkey key)
Parse OpenPGP pubkey parameters.
rpmKeyring rpmKeyringFree(rpmKeyring keyring)
Free keyring and the keys within it.
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key)
Add a public key to keyring.
rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen)
Create a new rpmPubkey from OpenPGP packet.
rpmKeyring rpmKeyringLink(rpmKeyring keyring)
Reference a keyring.
rpmKeyring rpmKeyringNew(void)
Create a new, empty keyring.
rpmPubkey rpmPubkeyFree(rpmPubkey key)
Free a pubkey.
pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key)
Return pgp params of key.
char * rpmPubkeyBase64(rpmPubkey key)
Return base64 encoding of pubkey.
rpmPubkey rpmPubkeyLink(rpmPubkey key)
Reference a pubkey.
rpmPubkey * rpmGetSubkeys(rpmPubkey mainkey, int *count)
Return array of subkeys belonging to mainkey param mainkey main rpmPubkey param count count of return...
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
Perform combined keyring lookup and signature verification.
struct pgpDig_s * pgpDig
Definition: rpmpgp.h:30
struct pgpDigParams_s * pgpDigParams
Definition: rpmpgp.h:34
enum rpmRC_e rpmRC
Package read return codes.
OpenPGP constants and structures from RFC-2440.
Typedefs for RPM abstract data types.
struct rpmPubkey_s * rpmPubkey
Definition: rpmtypes.h:80
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:81
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81