summaryrefslogtreecommitdiff
path: root/rpmio/tkey.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-20 22:31:09 +0000
committerjbj <devnull@localhost>2001-10-20 22:31:09 +0000
commitd5dd3dfbc6f0e9128e055eaf84635c85de7b8139 (patch)
treeae1fb8133c9dc87cc7e267ead0906a27165acbc4 /rpmio/tkey.c
parent00a348f332021405f90b86748fe209bf1e820830 (diff)
downloadrpm-d5dd3dfbc6f0e9128e055eaf84635c85de7b8139.tar.gz
rpm-d5dd3dfbc6f0e9128e055eaf84635c85de7b8139.tar.bz2
rpm-d5dd3dfbc6f0e9128e055eaf84635c85de7b8139.zip
- stupid macros to configure public key file paths.
CVS patchset: 5127 CVS date: 2001/10/20 22:31:09
Diffstat (limited to 'rpmio/tkey.c')
-rw-r--r--rpmio/tkey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/tkey.c b/rpmio/tkey.c
index caab06612..4c50186b9 100644
--- a/rpmio/tkey.c
+++ b/rpmio/tkey.c
@@ -144,12 +144,13 @@ fprintf(stderr, "=============================== GPG Signature of \"abc\"\n");
fprintf(stderr, "==> FAILED: rc %d\n", rc);
{ DIGEST_CTX ctx = rpmDigestInit(PGPHASHALGO_SHA1, RPMDIGEST_NONE);
+ pgpPktSigV3 dsig = dig->signature.v3;
const char * digest = NULL;
size_t digestlen = 0;
const char * txt = "abc";
rpmDigestUpdate(ctx, txt, strlen(txt));
- rpmDigestUpdate(ctx, &dig->sig.v3.sigtype, dig->sig.v3.hashlen);
+ rpmDigestUpdate(ctx, &dsig->sigtype, dsig->hashlen);
rpmDigestFinal(ctx, (void **)&digest, &digestlen, 1);
mp32nzero(&dig->hm);mp32nsethex(&dig->hm, digest);