mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
Improve the description of old packets with an indeterminate length.
* g10/parse-packet.c (parse): Make the description more accurate when listing packets: old format packets don't support partial lengths, only indeterminate lengths (RFC 4880, Section 4.2). -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
9bca96dbc5
commit
68c217f457
@ -610,7 +610,7 @@ parse (IOBUF inp, PACKET * pkt, int onlykeypkts, off_t * retpos,
|
|||||||
if (list_mode)
|
if (list_mode)
|
||||||
es_fprintf (listfp, "# off=%lu ctb=%02x tag=%d hlen=%d plen=%lu%s%s\n",
|
es_fprintf (listfp, "# off=%lu ctb=%02x tag=%d hlen=%d plen=%lu%s%s\n",
|
||||||
(unsigned long)pos, ctb, pkttype, hdrlen, pktlen,
|
(unsigned long)pos, ctb, pkttype, hdrlen, pktlen,
|
||||||
partial? " partial":"",
|
partial? (new_ctb ? " partial" : " indeterminate") :"",
|
||||||
new_ctb? " new-ctb":"");
|
new_ctb? " new-ctb":"");
|
||||||
|
|
||||||
pkt->pkttype = pkttype;
|
pkt->pkttype = pkttype;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user