From ed3609258828942808702a07ef2986d7328efa3f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Jan 1998 10:18:17 +0000 Subject: started with trust stuff --- g10/parse-packet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'g10/parse-packet.c') 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 ); } -- cgit v1.2.3