summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-16 12:18:01 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-03-16 12:18:01 +0200
commitf79353ea74c3ab255f2f9ee4b117a1fd93bb517a (patch)
tree5706f563f07e231f0e69909be0c0f0529fdc6309 /lib/signature.c
parentc769eb0244294c0a9ac002bd7ecd06bddc4cd3ae (diff)
downloadrpm-f79353ea74c3ab255f2f9ee4b117a1fd93bb517a.tar.gz
rpm-f79353ea74c3ab255f2f9ee4b117a1fd93bb517a.tar.bz2
rpm-f79353ea74c3ab255f2f9ee4b117a1fd93bb517a.zip
Eliminate unnecessary field from pgpDig_s
- key/signature can't be both DSA and RSA at the same time
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 5ef5d4aa7..6db3d5fda 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -1177,7 +1177,7 @@ verifyRSASignature(rpmKeyring keyring, rpmtd sigtd, pgpDig dig, char ** msg,
/* Retrieve the matching public key and verify. */
res = rpmKeyringLookup(keyring, dig);
if (res == RPMRC_OK) {
- res = verifyPGPSig(sigp, dig->rsa, dig->rsasig, sigalg, md5ctx);
+ res = verifyPGPSig(sigp, dig->keydata, dig->sigdata, sigalg, md5ctx);
}
exit:
@@ -1228,7 +1228,7 @@ verifyDSASignature(rpmKeyring keyring, rpmtd sigtd, pgpDig dig, char ** msg,
if (res == RPMRC_OK) {
/* XXX TODO: handle other algorithm types too */
SECOidTag sigalg = SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST;
- res = verifyPGPSig(sigp, dig->dsa, dig->dsasig, sigalg, sha1ctx);
+ res = verifyPGPSig(sigp, dig->keydata, dig->sigdata, sigalg, sha1ctx);
}
exit: