diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-16 12:18:01 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-16 12:18:01 +0200 |
commit | f79353ea74c3ab255f2f9ee4b117a1fd93bb517a (patch) | |
tree | 5706f563f07e231f0e69909be0c0f0529fdc6309 /lib/signature.c | |
parent | c769eb0244294c0a9ac002bd7ecd06bddc4cd3ae (diff) | |
download | rpm-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.c | 4 |
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: |