diff options
author | jbj <devnull@localhost> | 2001-10-20 22:31:09 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-20 22:31:09 +0000 |
commit | d5dd3dfbc6f0e9128e055eaf84635c85de7b8139 (patch) | |
tree | ae1fb8133c9dc87cc7e267ead0906a27165acbc4 /rpmio/tkey.c | |
parent | 00a348f332021405f90b86748fe209bf1e820830 (diff) | |
download | rpm-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.c | 3 |
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); |