diff options
author | jbj <devnull@localhost> | 2001-10-19 01:35:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-19 01:35:57 +0000 |
commit | ca1d809cb1d9125b7029e2d5d378d2a04955f178 (patch) | |
tree | 927f851af4b890e3d70f2298a8a4d66f3a415242 /rpmio/tkey.c | |
parent | aaaaf45ba6713203598c5f0c1373bdb11f5e41fe (diff) | |
download | rpm-ca1d809cb1d9125b7029e2d5d378d2a04955f178.tar.gz rpm-ca1d809cb1d9125b7029e2d5d378d2a04955f178.tar.bz2 rpm-ca1d809cb1d9125b7029e2d5d378d2a04955f178.zip |
Rewire digests, step 2.
CVS patchset: 5122
CVS date: 2001/10/19 01:35:57
Diffstat (limited to 'rpmio/tkey.c')
-rw-r--r-- | rpmio/tkey.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rpmio/tkey.c b/rpmio/tkey.c index e03094bfb..caab06612 100644 --- a/rpmio/tkey.c +++ b/rpmio/tkey.c @@ -143,13 +143,11 @@ fprintf(stderr, "=============================== GPG Signature of \"abc\"\n"); if ((rc = doit(abcSignatureDSA, dig, printing)) != 0) fprintf(stderr, "==> FAILED: rc %d\n", rc); - { DIGEST_CTX ctx = rpmDigestInit(RPMDIGEST_SHA1); + { DIGEST_CTX ctx = rpmDigestInit(PGPHASHALGO_SHA1, RPMDIGEST_NONE); const char * digest = NULL; size_t digestlen = 0; const char * txt = "abc"; - ctx = rpmDigestInit(RPMDIGEST_SHA1); - rpmDigestUpdate(ctx, txt, strlen(txt)); rpmDigestUpdate(ctx, &dig->sig.v3.sigtype, dig->sig.v3.hashlen); rpmDigestFinal(ctx, (void **)&digest, &digestlen, 1); |