mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-09 21:28:51 +01:00
a8895c99a7
* g10/parse-packet.c (parse_trust): Rename to ... (parse_ring_trust): this. Change args and implement new ring trust packet format. (parse): Add special ring trust packet handling. * g10/packet.h (PKT_user_id): New fields KEYUPDATE, UPDATEURL, and KEYSRC. (PKT_public_key): Ditto. (RING_TRUST_SIG, RING_TRUST_KEY, RING_TRUST_UID): New consts. (PKT_ring_trust): New. (struct packet_struct): Remove member RING_TRUST. (strcu parse_packet_ctx_s): Add field SKIP_META. (init_parse_packet): Init SKIPT_META. * g10/free-packet.c (release_public_key_parts): Free UDPATEURL. (free_user_id): Ditto. * g10/mainproc.c (list_node): Remove printing of non-documented "rtv" lines. * g10/build-packet.c (build_packet_and_meta): New. (do_ring_trust): New. * g10/export.c (write_keyblock_to_output): Use build_packet_and_meta in backup mode. (do_export_one_keyblock): Ditto. * g10/import.c (read_block): Add arg WITH_META. Skip ring trust packets if that ism not set. (import): Call read_block WITH_META in restore mode. * g10/keydb.h (KEYSRC_UNKNOWN, KEYSRC_FILE, KEYSRC_KS, KEYSRC_PREF_KS) (KEYSRC_WKD, KEYSRC_WKD_SD, KEYSRC_DANE): New constants. They are not yet used, though. * g10/keydb.c (parse_keyblock_image): Allow ring trust packets. (build_keyblock_image): Ditto. Use build_packet_and_meta. * g10/keyring.c (keyring_get_keyblock): Remove specila treatment of ring trust packets. (write_keyblock): Use build_packet_and_meta. Remove special treatment of ring trust packets and initialization of the signature caches. -- This patch introduced the framework to store meta data for keys and user ids in the keyrings/keyboxes. Ring trust packets are implementation defined and have always been used in gpg to cache the signature verification status. Ring trust packets are only exported with the export option "backup" and only imported with the import option "restore". The new code uses a cleaner way to handle the ring trust packets: When the parser reads a ring trust packet and the previously read packet matches the type of that ring trust packet, the information is stored in that previously read packet (signature, user id, or primary key) and the next packet is read immediately. Thus only the parser sees the ring trust packets. Ring trust packets are written by using the new function build_packet_and_meta instead of build_packet. That function writes a ring trust packet when the needed information is available. As a side-effect of this patch the signature status cache works again and "gpg --check-sigs" is thus much faster. Signed-off-by: Werner Koch <wk@gnupg.org> |
||
---|---|---|
.. | ||
examples | ||
a-decade-of-gnupg.txt | ||
announce-2.0.txt | ||
announce-2.1.txt | ||
ChangeLog-2011 | ||
com-certs.pem | ||
contrib.texi | ||
DCO | ||
debugging.texi | ||
DETAILS | ||
dirmngr.texi | ||
FAQ | ||
faq.org | ||
fdl.texi | ||
glossary.texi | ||
gnupg7.texi | ||
gnupg-badge-openpgp.eps | ||
gnupg-badge-openpgp.jpg | ||
gnupg-badge-openpgp.pdf | ||
gnupg-card-architecture.fig | ||
gnupg-logo-tr.png | ||
gnupg-logo.eps | ||
gnupg-logo.pdf | ||
gnupg-logo.png | ||
gnupg-module-overview.svg | ||
gnupg.texi | ||
gpg-agent.texi | ||
gpg.texi | ||
gpgsm.texi | ||
gpgv.texi | ||
gpl.texi | ||
HACKING | ||
help.be.txt | ||
help.ca.txt | ||
help.cs.txt | ||
help.da.txt | ||
help.de.txt | ||
help.el.txt | ||
help.eo.txt | ||
help.es.txt | ||
help.et.txt | ||
help.fi.txt | ||
help.fr.txt | ||
help.gl.txt | ||
help.hu.txt | ||
help.id.txt | ||
help.it.txt | ||
help.ja.txt | ||
help.nb.txt | ||
help.pl.txt | ||
help.pt_BR.txt | ||
help.pt.txt | ||
help.ro.txt | ||
help.ru.txt | ||
help.sk.txt | ||
help.sv.txt | ||
help.tr.txt | ||
help.txt | ||
help.zh_CN.txt | ||
help.zh_TW.txt | ||
howto-create-a-server-cert.texi | ||
howtos.texi | ||
instguide.texi | ||
KEYSERVER | ||
Makefile.am | ||
mkdefsinc.c | ||
mksamplekeys | ||
Notes | ||
OpenPGP | ||
opt-homedir.texi | ||
qualified.txt | ||
samplekeys.asc | ||
scdaemon.texi | ||
see-also-note.texi | ||
specify-user-id.texi | ||
sysnotes.texi | ||
texi.css | ||
tools.texi | ||
TRANSLATE | ||
vuln-announce-2007-multiple-message.txt | ||
vuln-announce-2010-kbx-realloc.txt | ||
vuln-announce-cve-2006-6235.txt | ||
whats-new-in-2.1.txt | ||
yat2m.c |