aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-01-12 10:18:17 +0000
committerWerner Koch <[email protected]>1998-01-12 10:18:17 +0000
commited3609258828942808702a07ef2986d7328efa3f (patch)
tree185f17c055b38fee37bc0090789dcf96a1535c8c /g10/parse-packet.c
parentpatchlevel 2 (diff)
downloadgnupg-ed3609258828942808702a07ef2986d7328efa3f.tar.gz
gnupg-ed3609258828942808702a07ef2986d7328efa3f.zip
started with trust stuff
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 70eef4007..1d056d8ea 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -438,11 +438,11 @@ parse_certificate( IOBUF inp, int pkttype, unsigned long pktlen,
int is_v4=0;
if( pkttype == PKT_PUBLIC_CERT ) {
- pkt->pkt.public_cert->mfx.md5 = md5_open(0);
- pkt->pkt.public_cert->mfx.rmd160 = rmd160_open(0);
+ pkt->pkt.public_cert->mfx.md = md_open(DIGEST_ALGO_MD5, 0);
+ md_enable(pkt->pkt.public_cert->mfx.md, DIGEST_ALGO_RMD160);
+ md_enable(pkt->pkt.public_cert->mfx.md, DIGEST_ALGO_SHA1);
pkt->pkt.public_cert->mfx.maxbuf_size = 1;
- md5_write(pkt->pkt.public_cert->mfx.md5, hdr, hdrlen);
- rmd160_write(pkt->pkt.public_cert->mfx.rmd160, hdr, hdrlen);
+ md_write(pkt->pkt.public_cert->mfx.md, hdr, hdrlen);
iobuf_push_filter( inp, md_filter, &pkt->pkt.public_cert->mfx );
}