summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-01-19 18:49:14 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-01-19 18:49:14 +0100
commitcb5324b66a54ae4a65d8a8e577a615cf15f39e87 (patch)
treeea22e5c59dd005bf9cfd335a3b2c669c304f880e
parent115860acdd7e1c4e9b53f63906d530c0904a6115 (diff)
downloadabrt-cb5324b66a54ae4a65d8a8e577a615cf15f39e87.tar.gz
abrt-cb5324b66a54ae4a65d8a8e577a615cf15f39e87.tar.xz
abrt-cb5324b66a54ae4a65d8a8e577a615cf15f39e87.zip
fixed build against rpm 4.9
- we don't use this code, but fixed it anyway, so we don't have to find the fix once we decide to uncomment it
-rw-r--r--src/daemon/rpm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/daemon/rpm.c b/src/daemon/rpm.c
index a726d357..4665273f 100644
--- a/src/daemon/rpm.c
+++ b/src/daemon/rpm.c
@@ -150,7 +150,6 @@ bool CheckHash(const char* pPackage, const char* pPath)
goto error;
rpmfi fi = rpmfiNew(ts, header, RPMTAG_BASENAMES, RPMFI_NOHEADER);
- pgpHashAlgo hashAlgo;
std::string headerHash;
char computedHash[1024] = "";
@@ -158,8 +157,8 @@ bool CheckHash(const char* pPackage, const char* pPath)
{
if (strcmp(pPath, rpmfiFN(fi)) == 0)
{
- headerHash = rpmfiFDigestHex(fi, &hashAlgo);
- rpmDoDigest(hashAlgo, pPath, 1, (unsigned char*) computedHash, NULL);
+ headerHash = rpmfiFDigestHex(fi, NULL);
+ rpmDoDigest(rpmfiDigestAlgo(fi), pPath, 1, (unsigned char*) computedHash, NULL);
ret = (headerHash != "" && headerHash == computedHash);
break;
}