rpm  4.16.1.2
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 
44 
53 
60 
67 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
68 
75 rpmPubkey *rpmGetSubkeys(rpmPubkey mainkey, int *count);
76 
82 rpmPubkey rpmPubkeyRead(const char *filename);
83 
90 
97 
104 
111 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 #endif /* _RPMKEYDB_H */
rpmPubkeyBase64
char * rpmPubkeyBase64(rpmPubkey key)
Return base64 encoding of pubkey.
rpmKeyring
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:81
rpmKeyringAddKey
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key)
Add a public key to keyring.
rpmPubkeyLink
rpmPubkey rpmPubkeyLink(rpmPubkey key)
Reference a pubkey.
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmKeyringFree
rpmKeyring rpmKeyringFree(rpmKeyring keyring)
Free keyring and the keys within it.
rpmKeyringVerifySig
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
Perform combined keyring lookup and signature verification.
rpmKeyringNew
rpmKeyring rpmKeyringNew(void)
Create a new, empty keyring.
rpmKeyringLink
rpmKeyring rpmKeyringLink(rpmKeyring keyring)
Reference a keyring.
rpmPubkeyFree
rpmPubkey rpmPubkeyFree(rpmPubkey key)
Free a pubkey.
rpmGetSubkeys
rpmPubkey * rpmGetSubkeys(rpmPubkey mainkey, int *count)
Return array of subkeys belonging to maikey param mainkey main rpmPubkey param count count of returne...
pgpDig
struct pgpDig_s * pgpDig
Definition: rpmpgp.h:34
rpmPubkey
struct rpmPubkey_s * rpmPubkey
Definition: rpmtypes.h:80
pgpDigParams
struct pgpDigParams_s * pgpDigParams
Definition: rpmpgp.h:38
rpmKeyringLookup
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig)
Perform keyring lookup for a key matching a signature.
rpmPubkeyPgpDigParams
pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key)
Return pgp params of key.
rpmPubkeyRead
rpmPubkey rpmPubkeyRead(const char *filename)
Create a new rpmPubkey from ASCII-armored pubkey file.
DIGEST_CTX
struct DIGEST_CTX_s * DIGEST_CTX
Definition: rpmpgp.h:29
rpmPubkeyNew
rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen)
Create a new rpmPubkey from OpenPGP packet.
rpmPubkeyDig
pgpDig rpmPubkeyDig(rpmPubkey key)
Parse OpenPGP pubkey parameters.