1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-30 16:17:02 +01:00
Werner Koch 30f1eda7d8
kbx: Improve keybox_set_flags
* kbx/keybox-defs.h (struct keybox_handle): Add update_mode flag.
* kbx/keybox-init.c (_keybox_close_file): Clear update_mode flag.
* kbx/keybox-update.c (keybox_set_flags): Avoid a second file handle
but make use of the update mode.
--

This is mostly useful for gpgsm because it updates some flags in the
keyring quite often.  Avoiding extra CreateFile calls may help to
speed up things in case malware^Dantivirus software is slowing down a
Windows system.

The locking pattern also change, thus there is some regression risk
due to this patch.
2023-05-04 11:47:01 +02:00
..
2020-09-24 16:38:21 +02:00
2022-09-14 16:53:35 +09:00
2023-05-04 11:47:01 +02:00
2021-05-20 14:45:29 +02:00
2018-10-24 15:56:18 -04:00
2023-05-04 11:47:01 +02:00
2023-05-04 11:47:01 +02:00
2022-12-09 14:06:08 +09:00
2018-10-25 16:53:05 -04:00