2008-08-08 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 8 Aug 2008 01:06:48 +0000 (01:06 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 8 Aug 2008 01:06:48 +0000 (01:06 +0000)
commit7d2cfee1df947ebfb19bd1337bab9d5f926a5fa0
treec7df9184e5b01060ba24615d77c3f5c5b163fc3d
parent7d1b0d8626d9ec00564388166eaa784cf0daaca7
2008-08-08  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm.h (struct server_control_s): Remove member dirmngr_seen.
* call-dirmngr.c (dirmngr2_ctx, dirmngr_ctx_locked)
(dirmngr2_ctx_locked): New global variables.
(prepare_dirmngr): Don't check dirmngr_seen anymore.
(start_dirmngr): Move bunch of code to ...
(start_dirmngr_ext): ... this new function.
(release_dirmngr, start_dirmngr2, release_dirmngr2): New
functions.
(gpgsm_dirmngr_isvalid): Call release_dirmngr.
(gpgsm_dirmngr_lookup): Call release_dirmngr.  If dirmngr_ctx is
locked, use dirmngr2_locked.
(gpgsm_dirmngr_run_command): Call release_dirmngr.
sm/ChangeLog
sm/call-dirmngr.c
sm/gpgsm.h