summaryrefslogtreecommitdiff
path: root/rpmio/rpmkeyring.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-08-08 09:26:30 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-08-08 09:26:30 +0300
commit3897bdc37d7667ffb5414dcea91802de3342b9e9 (patch)
tree654f4691fcb8ebdb13da20e93acc6536f1f2c31e /rpmio/rpmkeyring.h
parent60e5ff80f7d5e19a5ca32cb95e2d2ea535733d6c (diff)
downloadlibrpm-tizen-3897bdc37d7667ffb5414dcea91802de3342b9e9.tar.gz
librpm-tizen-3897bdc37d7667ffb5414dcea91802de3342b9e9.tar.bz2
librpm-tizen-3897bdc37d7667ffb5414dcea91802de3342b9e9.zip
Add couple of new rpmPubkey() methods
- rpmPubkeyDig() to retrieve parsed OpenPGP parameters of key - rpmPubkeyBase64() to return base64 encoding of the key
Diffstat (limited to 'rpmio/rpmkeyring.h')
-rw-r--r--rpmio/rpmkeyring.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/rpmio/rpmkeyring.h b/rpmio/rpmkeyring.h
index a39d3751a..6ba476714 100644
--- a/rpmio/rpmkeyring.h
+++ b/rpmio/rpmkeyring.h
@@ -86,4 +86,18 @@ rpmPubkey rpmPubkeyLink(rpmPubkey key);
*/
rpmPubkey rpmPubkeyUnlink(rpmPubkey key);
+/** \ingroup rpmkeyring
+ * Parse OpenPGP pubkey parameters.
+ * @param key Pubkey
+ * @return parsed output of pubkey packet parameters
+ */
+pgpDig rpmPubkeyDig(rpmPubkey key);
+
+/** \ingroup rpmkeyring
+ * Return base64 encoding of pubkey
+ * @param key Pubkey
+ * @return base64 encoded pubkey (malloced), NULL on error
+ */
+char * rpmPubkeyBase64(rpmPubkey key);
+
#endif /* _RPMKEYDB_H */