diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-04 12:19:02 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-04 12:19:02 +0200 |
commit | a54ab2c1b94416e4dbf36ecd26fe7885bcd19295 (patch) | |
tree | 1c5ac2a8b11ea24421f33a53713711da53a7adef /lib/signature.c | |
parent | baac9bd4f8e5f216729a5000429a4bda74aec01a (diff) | |
download | rpm-a54ab2c1b94416e4dbf36ecd26fe7885bcd19295.tar.gz rpm-a54ab2c1b94416e4dbf36ecd26fe7885bcd19295.tar.bz2 rpm-a54ab2c1b94416e4dbf36ecd26fe7885bcd19295.zip |
verifyMD5Signature() doesn't need pgpDig at all
Diffstat (limited to 'lib/signature.c')
-rw-r--r-- | lib/signature.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/signature.c b/lib/signature.c index 55c071477..6c05e8a79 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -1028,7 +1028,7 @@ exit: } static rpmRC -verifyMD5Signature(rpmtd sigtd, pgpDig dig, char ** msg, DIGEST_CTX md5ctx) +verifyMD5Signature(rpmtd sigtd, char ** msg, DIGEST_CTX md5ctx) { rpmRC res; uint8_t * md5sum = NULL; @@ -1039,7 +1039,7 @@ verifyMD5Signature(rpmtd sigtd, pgpDig dig, char ** msg, DIGEST_CTX md5ctx) assert(msg != NULL); *msg = NULL; - if (md5ctx == NULL || sigtd->data == NULL || dig == NULL) { + if (md5ctx == NULL || sigtd->data == NULL || md5ctx == NULL) { res = RPMRC_NOKEY; rasprintf(msg, "%s %s\n", title, rpmSigString(res)); goto exit; @@ -1348,7 +1348,7 @@ rpmVerifySignature(rpmKeyring keyring, rpmtd sigtd, pgpDig dig, char ** result) res = verifySizeSignature(sigtd, dig->nbytes, result); break; case RPMSIGTAG_MD5: - res = verifyMD5Signature(sigtd, dig, result, dig->md5ctx); + res = verifyMD5Signature(sigtd, result, dig->md5ctx); break; case RPMSIGTAG_SHA1: res = verifySHA1Signature(sigtd, dig, result, dig->hdrsha1ctx); |