mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
keyboxd: Use D-lines instead of a separate thread.
* kbx/kbx-client-util.c (kbx_client_data_new): Add arg 'dlines'. * g10/call-keyboxd.c (open_context): Set DLINES to true. * sm/keydb.c (open_context): Ditto. -- This allows to compile time switch between the D-line and the fd-passing data communication between gpg/gpgsm and keyboxd. A quick test with about 3000 OpenPGP keys showed that D-lines are only 10% slower than the fd-passing based implementation. Given that the thread adds extra complexity we go for now with the D-line approach. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
29977e21d1
commit
6fcc263c18
4 changed files with 12 additions and 6 deletions
|
@ -190,7 +190,7 @@ open_context (ctrl_t ctrl, keyboxd_local_t *r_kbl)
|
|||
return err;
|
||||
}
|
||||
|
||||
err = kbx_client_data_new (&kbl->kcd, kbl->ctx);
|
||||
err = kbx_client_data_new (&kbl->kcd, kbl->ctx, 1);
|
||||
if (err)
|
||||
{
|
||||
assuan_release (kbl->ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue