1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch a986383424 gpg: First working support for keyboxes.
* g10/getkey.c (get_pubkey_fast): Improve the assertion.
* kbx/keybox.h: Include iobuf.h.
* kbx/keybox-blob.c (keyboxblob_uid): Add field OFF.
(KEYBOX_WITH_OPENPGP): Remove use of this macro.
(pgp_create_key_part_single): New.
(pgp_temp_store_kid): Change to use the keybox-openpgp parser.
(pgp_create_key_part): Ditto.
(pgp_create_uid_part): Ditto.
(pgp_create_sig_part): Ditto.
(pgp_create_blob_keyblock): Ditto.
(_keybox_create_openpgp_blob): Ditto.
* kbx/keybox-search.c (keybox_get_keyblock): New.
* kbx/keybox-update.c (keybox_insert_keyblock): New.
* g10/keydb.c (parse_keyblock_image):
(keydb_get_keyblock): Support keybox.
(build_keyblock_image): New.
(keydb_insert_keyblock): Support keybox.

* kbx/kbxutil.c (import_openpgp, main): Add option --dry-run and print
a kbx file to stdout.

* kbx/keybox-file.c (_keybox_read_blob2): Allow keyblocks up to 10^6
bytes.
--

Import and key listing does now work with the keybox format.  It is
still quite slow and signature caching is completely missing.

Increasing the maximum allowed length for a keyblock was required due
to a 700k keyblock which inhibited kbxutil to list the file.
kbxutil's option name --import-openpgp is not quite appropriate
because it only creates KBX blobs from OpenPGP data.
2012-12-28 14:05:27 +01:00
..
2011-03-03 12:40:54 +01:00
2011-02-08 21:11:19 +01:00
2011-03-08 12:23:59 +01:00
2012-11-16 10:41:22 +01:00
2011-02-04 12:57:53 +01:00
2011-04-28 10:51:14 +02:00
2007-07-04 19:49:40 +00:00
2011-09-20 19:24:52 +02:00
2011-02-04 12:57:53 +01:00
2011-03-03 13:01:03 +01:00
2011-09-20 19:24:52 +02:00
2011-06-13 14:54:40 +02:00
2011-09-20 19:24:52 +02:00
2008-12-12 08:54:50 +00:00
2012-08-24 09:44:33 +02:00
2011-08-10 14:11:30 +02:00
2012-12-19 12:40:21 +01:00
2011-09-20 19:24:52 +02:00