Home GnuPG
Diffusion GnuPG 2b9ae79ad81a

sm: On Windows close the kbx files at several places.

Description

sm: On Windows close the kbx files at several places.

* kbx/keybox-search.c (keybox_search_reset) [W32]: Always close.
* kbx/keybox-init.c (keybox_close_all_files): New.
* sm/keydb.c (keydb_close_all_files): New.
* sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Call new function.
(gpgsm_dirmngr_lookup): Ditto.
(gpgsm_dirmngr_run_command): Ditto.

We need to make sure that there are no open files on Windows. Thus we
close them at several strategic locations.

Details

Provenance
wernerAuthored on Mar 2 2021, 7:01 PM
Parents
rGc99f3599d80d: sm: Remove unused function.
Branches
Unknown
Tags
Unknown
Tasks
T4505: SM, W32: GPGSM hangs up the GnuPG System