diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 12:58:09 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-22 13:06:36 +0300 |
commit | ea951fca341a4ad7898e7bb468d4639d0f3cca64 (patch) | |
tree | b575ad79c0028564db5f05f367b4b5e3d98fe1ae /lib/rpmfi.h | |
parent | 3d8ce8142382f8cf99100f5532abeb2b87744d55 (diff) | |
download | rpm-ea951fca341a4ad7898e7bb468d4639d0f3cca64.tar.gz rpm-ea951fca341a4ad7898e7bb468d4639d0f3cca64.tar.bz2 rpm-ea951fca341a4ad7898e7bb468d4639d0f3cca64.zip |
Eliminate pgpHashAlgo uses in librpm side
- In all these cases the value comes from a non-enum source so
just use an int instead
Diffstat (limited to 'lib/rpmfi.h')
-rw-r--r-- | lib/rpmfi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmfi.h b/lib/rpmfi.h index 578189871..3dcf61b08 100644 --- a/lib/rpmfi.h +++ b/lib/rpmfi.h @@ -200,7 +200,7 @@ rpmfileState rpmfiFState(rpmfi fi); * @param fi file info set * @return digest algorithm of file info set, 0 on invalid */ -pgpHashAlgo rpmfiDigestAlgo(rpmfi fi); +int rpmfiDigestAlgo(rpmfi fi); /** \ingroup rpmfi * Return current file (binary) digest of file info set. @@ -209,7 +209,7 @@ pgpHashAlgo rpmfiDigestAlgo(rpmfi fi); * @retval diglen digest hash length (pass NULL to ignore) * @return current file digest, NULL on invalid */ -const unsigned char * rpmfiFDigest(rpmfi fi, pgpHashAlgo *algo, size_t *diglen); +const unsigned char * rpmfiFDigest(rpmfi fi, int *algo, size_t *diglen); /** \ingroup rpmfi * Return current file (hex) digest of file info set. @@ -220,7 +220,7 @@ const unsigned char * rpmfiFDigest(rpmfi fi, pgpHashAlgo *algo, size_t *diglen); * @retval algo digest hash algoritm used (pass NULL to ignore) * @return current file digest (malloc'ed), NULL on invalid */ -char * rpmfiFDigestHex(rpmfi fi, pgpHashAlgo *algo); +char * rpmfiFDigestHex(rpmfi fi, int *algo); /** \ingroup rpmfi * Return current file (binary) md5 digest from file info set. |