summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-21 22:37:14 +0000
committerjbj <devnull@localhost>2002-07-21 22:37:14 +0000
commit6540da425629bf45020047214b81e156c62c7d7b (patch)
tree3c8e62631784a1ff5bbc0a3586e517a837824f66 /lib
parent6af194ed8eae2111a296a7b400a229f0df336a2b (diff)
downloadlibrpm-tizen-6540da425629bf45020047214b81e156c62c7d7b.tar.gz
librpm-tizen-6540da425629bf45020047214b81e156c62c7d7b.tar.bz2
librpm-tizen-6540da425629bf45020047214b81e156c62c7d7b.zip
fix: Header SHA1 was giving false positive.
CVS patchset: 5567 CVS date: 2002/07/21 22:37:14
Diffstat (limited to 'lib')
-rw-r--r--lib/signature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 732be4f7f..78b134a7f 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -976,7 +976,7 @@ verifySHA1Signature(const rpmts ts, /*@out@*/ char * t,
(void) rpmDigestFinal(rpmDigestDup(sha1ctx),
(void **)&SHA1, NULL, 1);
- if (SHA1 == NULL || strlen(SHA1) != strlen(sig)) {
+ if (SHA1 == NULL || strlen(SHA1) != strlen(sig) || strcmp(SHA1, sig)) {
res = RPMSIG_BAD;
t = stpcpy(t, rpmSigString(res));
t = stpcpy(t, " Expected(");