mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
Solved conflict
This commit is contained in:
parent
fbc66185f8
commit
6587b15a59
@ -96,6 +96,10 @@
|
||||
* hkp.c (parse_hkp_index): Bug fix - don't report non-revoked keys
|
||||
as revoked in HKP key searches.
|
||||
|
||||
2002-02-19 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* parse-packet.c (parse_trust): Made parsing more robust.
|
||||
|
||||
2002-02-19 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* hkp.c (parse_hkp_index): Catch corruption in HKP index lines
|
||||
|
@ -1883,12 +1883,17 @@ parse_trust( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *pkt )
|
||||
{
|
||||
int c;
|
||||
|
||||
if (pktlen)
|
||||
{
|
||||
c = iobuf_get_noeof(inp);
|
||||
pktlen--;
|
||||
pkt->pkt.ring_trust = m_alloc( sizeof *pkt->pkt.ring_trust );
|
||||
pkt->pkt.ring_trust->trustval = c;
|
||||
pkt->pkt.ring_trust->sigcache = 0;
|
||||
if (!c && pktlen==2) {
|
||||
if (!c && pktlen==1)
|
||||
{
|
||||
c = iobuf_get_noeof (inp);
|
||||
pktlen--;
|
||||
/* we require that bit 7 of the sigcache is 0 (easier eof handling)*/
|
||||
if ( !(c & 0x80) )
|
||||
pkt->pkt.ring_trust->sigcache = c;
|
||||
@ -1897,7 +1902,13 @@ parse_trust( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *pkt )
|
||||
printf(":trust packet: flag=%02x sigcache=%02x\n",
|
||||
pkt->pkt.ring_trust->trustval,
|
||||
pkt->pkt.ring_trust->sigcache);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if( list_mode )
|
||||
printf(":trust packet: empty\n");
|
||||
}
|
||||
skip_rest (inp, pktlen);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user