kbx,gpg,gpgsm: More changes for compressing the keybox.
* kbx/keybox.h (keybox_compress_when_no_other_users): Change the arguments and return type. * kbx/keybox-update.c (keybox_compress_when_no_other_users): Open the HD internally, and make sure all resources are closed before unlocking. * g10/keydb.c (keydb_add_resource): Follow the change. * sm/keydb.c (keydb_add_resource): Likewise.
- GnuPG-bug-id: T7855
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>