Whoops, wrong enum type used for pubkey algorithm
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 19:13:25 +0000 (22:13 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 19:13:25 +0000 (22:13 +0300)
- dumb thinko/typo from commit 0e143cfe9f11abc42733d2265dc6d61cb716e5a4

lib/signature.c

index dd7b508..c82d229 100644 (file)
@@ -289,7 +289,7 @@ Header rpmFreeSignature(Header sigh)
  */
 static int validatePGPSig(pgpDigParams sigp)
 {
-    pgpHashAlgo pa = sigp->pubkey_algo;
+    pgpPubkeyAlgo pa = sigp->pubkey_algo;
     /* TODO: query from the implementation instead of hardwiring here */
     if (pa != PGPPUBKEYALGO_DSA && pa != PGPPUBKEYALGO_RSA) {
        rpmlog(RPMLOG_ERR, _("Unsupported PGP pubkey algorithm %d\n"),