summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-11-16 14:16:56 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-11-16 14:16:56 +0200
commit157759299d796bad84a58b5a50586883e086b1ec (patch)
tree123e216aec30cccce420c4eb6adc035553f26c60 /rpmio/rpmpgp.h
parentf38eeadf415acff83a04e723db0f0b3575f8369e (diff)
downloadlibrpm-tizen-157759299d796bad84a58b5a50586883e086b1ec.tar.gz
librpm-tizen-157759299d796bad84a58b5a50586883e086b1ec.tar.bz2
librpm-tizen-157759299d796bad84a58b5a50586883e086b1ec.zip
Eliminate need for rpmio_internal.h in rpmdb.c
- adds new pgpExtractPubkeyFingerprint() API function Ported from rpm5.org work of Jeff Johnson
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r--rpmio/rpmpgp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h
index fc3b4cd3e..93a8e1924 100644
--- a/rpmio/rpmpgp.h
+++ b/rpmio/rpmpgp.h
@@ -1170,6 +1170,16 @@ int pgpPubkeyFingerprint(const byte * pkt, unsigned int pktlen,
byte * keyid);
/**
+* Extract OpenPGP public key fingerprint from base64 encoded packet.
+* @todo V3 non-RSA public keys not implemented.
+* @param b64pkt base64 encoded openpgp packet
+* @retval keyid[8] public key fingerprint
+* @return 8 (no. of bytes) on success, < 0 on error
+*/
+int pgpExtractPubkeyFingerprint(const char * b64pkt, byte * keyid);
+
+
+/**
* Print/parse next OpenPGP packet.
* @param pkt OpenPGP packet
* @param pleft no. bytes remaining