gpg,sm: Implement keybox compression run and release lock in gpgsm
authorWerner Koch <wk@gnupg.org>
Fri, 23 Aug 2019 13:51:13 +0000 (15:51 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 23 Aug 2019 13:51:43 +0000 (15:51 +0200)
commite64f0dfd72de548837f630bccd249a87451b89c5
tree55c282ab9ea9ad9b210a3c38981986ec37bb749c
parent5ef0d7a795cf2462314ea0cb72c7efa7243ab405
gpg,sm: Implement keybox compression run and release lock in gpgsm

* g10/keydb.c (keydb_add_resource): Call keybox_compress.
* sm/keydb.c (keydb_add_resource): Release the lock after a compress.
--

Note that in gpgsm we already did the compress run but we didn't
released the lock on the file.  This might have been a reason for some
strange hangs.

GnuPG-bug-id: 4644
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c
sm/keydb.c