kbx: Implement update operation for OpenPGP keyblocks.
authorWerner Koch <wk@gnupg.org>
Fri, 15 Nov 2013 14:54:31 +0000 (15:54 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 15 Nov 2013 14:54:31 +0000 (15:54 +0100)
commit5499942571a88a1223a7318992605c6d29858866
tree6ee1f5c177484beed5e6142bb11d7ac7179fc0a9
parenta0102a548d0e2ed2fce74ba4a21adf26bc352641
kbx: Implement update operation for OpenPGP keyblocks.

* kbx/keybox-update.c (keybox_update_keyblock): Implement.
* kbx/keybox-search.c (get_blob_flags): Move to ...
* kbx/keybox-defs.h (blob_get_type): here.
* kbx/keybox-file.c (_keybox_read_blob2): Fix calling without R_BLOB.
* g10/keydb.c (build_keyblock_image): Allow calling without
R_SIGSTATUS.
(keydb_update_keyblock): Implement for keybox.

* kbx/keybox-dump.c (_keybox_dump_blob): Fix printing of the unhashed
size.  Print "does not expire" also on 64 bit platforms.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c
kbx/keybox-blob.c
kbx/keybox-defs.h
kbx/keybox-dump.c
kbx/keybox-file.c
kbx/keybox-search.c
kbx/keybox-update.c