aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/get-path.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-04-30 12:37:36 +0000
committerWerner Koch <[email protected]>2012-04-30 12:37:36 +0000
commit0f02fba19df16c82ca1ad44a8cb09f952d755598 (patch)
treec07c5b608cbd6e441b3e91c66ffb4054151565bc /dirmngr/get-path.c
parentmake DNS and URI fields work in gpgsm --gen-key. (diff)
downloadgnupg-0f02fba19df16c82ca1ad44a8cb09f952d755598.tar.gz
gnupg-0f02fba19df16c82ca1ad44a8cb09f952d755598.zip
agent: Fix deadlock in trustlist due to the switch to npth.
* agent/trustlist.c (clear_trusttable): New. (agent_reload_trustlist): Use new function. (read_trustfiles): Require to be called with lock held. (agent_istrusted): Factor all code out to ... (istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the table islocked. Do not print TRUSTLISTFLAG stati if called internally. (agent_marktrusted): Replace calls to agent_reload_trustlist by explicit code. -- In contrast to pth, npth does not use recursive mutexes by default. However, the code in trustlist.c assumed recursive locks and thus we had to rework it.
Diffstat (limited to 'dirmngr/get-path.c')
0 files changed, 0 insertions, 0 deletions