diff options
author | Werner Koch <wk@gnupg.org> | 1999-07-08 16:24:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-07-08 16:24:35 +0200 |
commit | c5ca275573f147c83d06a64ba60053d4e646c6c0 (patch) | |
tree | 2c6b253b672a049803afab557417f7c96ff2a737 /g10/parse-packet.c | |
parent | See ChangeLog: Wed Jul 7 13:23:40 CEST 1999 Werner Koch (diff) | |
download | gnupg2-c5ca275573f147c83d06a64ba60053d4e646c6c0.tar.xz gnupg2-c5ca275573f147c83d06a64ba60053d4e646c6c0.zip |
See ChangeLog: Thu Jul 8 16:21:27 CEST 1999 Werner Koch
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 5ce7e2660..577a1fcfe 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -63,7 +63,8 @@ static int parse_user_id( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ); static int parse_comment( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ); -static void parse_trust( IOBUF inp, int pkttype, unsigned long pktlen ); +static void parse_trust( IOBUF inp, int pkttype, unsigned long pktlen, + PACKET *packet ); static int parse_plaintext( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet, int new_ctb); static int parse_compressed( IOBUF inp, int pkttype, unsigned long pktlen, @@ -421,8 +422,8 @@ parse( IOBUF inp, PACKET *pkt, int reqtype, ulong *retpos, rc = parse_comment(inp, pkttype, pktlen, pkt); break; case PKT_RING_TRUST: - parse_trust(inp, pkttype, pktlen); - rc = G10ERR_UNKNOWN_PACKET; + parse_trust(inp, pkttype, pktlen, pkt); + rc = 0; break; case PKT_PLAINTEXT: rc = parse_plaintext(inp, pkttype, pktlen, pkt, new_ctb ); @@ -1517,11 +1518,13 @@ parse_comment( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ) static void -parse_trust( IOBUF inp, int pkttype, unsigned long pktlen ) +parse_trust( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *pkt ) { int c; c = iobuf_get_noeof(inp); + pkt->pkt.ring_trust = m_alloc( sizeof *pkt->pkt.ring_trust ); + pkt->pkt.ring_trust->trustval = c; if( list_mode ) printf(":trust packet: flag=%02x\n", c ); } |