1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Justus Winter 22739433e9
gpg: Properly account for ring trust packets.
* g10/keyring.c (keyring_get_keyblock): Use the parser's packet count
instead of counting ourself.
* g10/packet.h (struct parse_packet_ctx_s): New field
'n_parsed_packets'.
(init_parse_packet): Initialize new field.
* g10/parse-packet.c (parse): Count packets.
--

The 'keyring' keystore depends on the number of packets for delete and
update operations.  With the rework of the ring trust packets, the
trust packets were no longer properly accounted for leading to keyring
corruptions.

The 'keybox' store was not affected.

GnuPG-bug-id: 3123
GnuPG-bug-id: 3135
GnuPG-bug-id: 3144
Fixes-commit: a8895c99a7d0750132477d80cd66caaf3a709113
Signed-off-by: Justus Winter <justus@g10code.com>
2017-05-08 14:33:11 +02:00
..
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-28 12:11:02 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-04-17 09:15:13 +09:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2015-02-04 09:15:34 +01:00
2017-04-28 10:06:33 +09:00
2015-02-04 09:15:34 +01:00
2017-04-12 14:47:30 +09:00
2017-03-07 20:25:54 +09:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2017-04-28 10:06:33 +09:00
2017-04-28 10:06:33 +09:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2017-04-26 11:39:28 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-04-13 12:54:52 +09:00
2017-05-02 18:55:32 +09:00
2017-03-20 08:40:21 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-01-23 19:16:55 +01:00
2017-02-21 13:11:46 -05:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2017-04-26 11:39:28 +09:00
2017-01-23 19:16:55 +01:00
2016-03-08 14:08:49 +01:00
2017-04-28 10:06:33 +09:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2016-12-06 12:16:56 +01:00
2017-03-31 20:07:20 +02:00
2017-04-28 10:06:33 +09:00
2017-04-28 10:06:33 +09:00