mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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. GnuPG-bug-id: 4505
This commit is contained in:
parent
c99f3599d8
commit
2b9ae79ad8
6 changed files with 56 additions and 1 deletions
|
@ -33,6 +33,8 @@ typedef struct keydb_handle *KEYDB_HANDLE;
|
|||
/*-- keydb.c --*/
|
||||
gpg_error_t keydb_add_resource (ctrl_t ctrl, const char *url,
|
||||
int force, int *auto_created);
|
||||
void keydb_close_all_files (void);
|
||||
|
||||
KEYDB_HANDLE keydb_new (void);
|
||||
void keydb_release (KEYDB_HANDLE hd);
|
||||
int keydb_set_ephemeral (KEYDB_HANDLE hd, int yes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue