diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-07-01 15:24:04 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-07-01 17:52:40 +0300 |
commit | 685877f2a0ec949186bbcad1f18ee7895e0da15b (patch) | |
tree | e35de4f77267ab5730ad13a2dc92eef73c1efb24 /rpmio/rpmkeyring.h | |
parent | e435dde712e390f1bdc729b8c792da9bd0633e16 (diff) | |
download | librpm-tizen-685877f2a0ec949186bbcad1f18ee7895e0da15b.tar.gz librpm-tizen-685877f2a0ec949186bbcad1f18ee7895e0da15b.tar.bz2 librpm-tizen-685877f2a0ec949186bbcad1f18ee7895e0da15b.zip |
Beginnings of an abstract keyring
- in librpmio to avoid dependencies on higher level stuff
- for now it's just an in-memory structure that needs to be populated
by someone simply by feeding in GPG public keys
Diffstat (limited to 'rpmio/rpmkeyring.h')
-rw-r--r-- | rpmio/rpmkeyring.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rpmio/rpmkeyring.h b/rpmio/rpmkeyring.h new file mode 100644 index 000000000..67c8aa89e --- /dev/null +++ b/rpmio/rpmkeyring.h @@ -0,0 +1,20 @@ +#ifndef _RPMKEYRING_H +#define _RPMKEYRING_H + +#include <rpm/rpmtypes.h> +#include <rpm/rpmpgp.h> + +typedef struct rpmPubkey_s * rpmPubkey; +typedef struct rpmKeyring_s * rpmKeyring; + +rpmKeyring rpmKeyringNew(void); +rpmKeyring rpmKeyringFree(rpmKeyring keyring); +int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key); + +rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig); + +rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen); +rpmPubkey rpmPubkeyRead(const char *filename); +rpmPubkey rpmPubkeyFree(rpmPubkey key); + +#endif /* _RPMKEYDB_H */ |