diff options
author | Werner Koch <wk@gnupg.org> | 1998-02-18 14:58:46 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-02-18 14:58:46 +0100 |
commit | b758180325b90184f7ac66267141cb5465c07a9f (patch) | |
tree | 69767c83c2ad2afd85db3cdbcb7489cc13c76123 /g10/parse-packet.c | |
parent | import works (diff) | |
download | gnupg2-b758180325b90184f7ac66267141cb5465c07a9f.tar.xz gnupg2-b758180325b90184f7ac66267141cb5465c07a9f.zip |
added revcation stuff and fixed a couple of bugs
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 0e13f6d18..b50c584bd 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -592,14 +592,6 @@ parse_certificate( IOBUF inp, int pkttype, unsigned long pktlen, unsigned short valid_period; int is_v4=0; - if( pkttype == PKT_PUBLIC_CERT ) { - 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; - md_write(pkt->pkt.public_cert->mfx.md, hdr, hdrlen); - iobuf_push_filter( inp, md_filter, &pkt->pkt.public_cert->mfx ); - } if( pktlen < 12 ) { log_error("packet(%d) too short\n", pkttype); @@ -765,8 +757,6 @@ parse_certificate( IOBUF inp, int pkttype, unsigned long pktlen, leave: - if( pkttype == PKT_PUBLIC_CERT ) - iobuf_pop_filter( inp, md_filter, &pkt->pkt.public_cert->mfx ); skip_rest(inp, pktlen); return 0; } |