rpm 4.15.1

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
21 rpmKeyring rpmKeyringNew(void);
22
27 rpmKeyring rpmKeyringFree(rpmKeyring keyring);
28
35 int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
36
43 rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig);
44
52 rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx);
53
59 rpmKeyring rpmKeyringLink(rpmKeyring keyring);
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
89 rpmPubkey rpmPubkeyFree(rpmPubkey key);
90
96 rpmPubkey rpmPubkeyLink(rpmPubkey key);
97
103 pgpDig rpmPubkeyDig(rpmPubkey key);
104
110 char * rpmPubkeyBase64(rpmPubkey key);
111
117 pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key);
118
119 #ifdef __cplusplus
120 }
121 #endif
122 #endif /* _RPMKEYDB_H */
rpmPubkeyBase64
char * rpmPubkeyBase64(rpmPubkey key)
rpmKeyring
struct rpmKeyring_s * rpmKeyring
Definition: rpmtypes.h:80
rpmKeyringAddKey
int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key)
rpmPubkeyLink
rpmPubkey rpmPubkeyLink(rpmPubkey key)
rpmRC
enum rpmRC_e rpmRC
rpmKeyringFree
rpmKeyring rpmKeyringFree(rpmKeyring keyring)
rpmKeyringVerifySig
rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
rpmKeyringNew
rpmKeyring rpmKeyringNew(void)
rpmKeyringLink
rpmKeyring rpmKeyringLink(rpmKeyring keyring)
rpmPubkeyFree
rpmPubkey rpmPubkeyFree(rpmPubkey key)
rpmGetSubkeys
rpmPubkey * rpmGetSubkeys(rpmPubkey mainkey, int *count)
pgpDig
struct pgpDig_s * pgpDig
Definition: rpmpgp.h:30
rpmPubkey
struct rpmPubkey_s * rpmPubkey
Definition: rpmtypes.h:79
pgpDigParams
struct pgpDigParams_s * pgpDigParams
Definition: rpmpgp.h:34
rpmKeyringLookup
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig)
rpmPubkeyPgpDigParams
pgpDigParams rpmPubkeyPgpDigParams(rpmPubkey key)
rpmPubkeyRead
rpmPubkey rpmPubkeyRead(const char *filename)
DIGEST_CTX
struct DIGEST_CTX_s * DIGEST_CTX
Definition: rpmpgp.h:25
rpmPubkeyNew
rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen)
rpmPubkeyDig
pgpDig rpmPubkeyDig(rpmPubkey key)