aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/backend-sqlite.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-11-21 07:34:04 +0000
committerWerner Koch <[email protected]>2023-11-21 07:37:41 +0000
commitcf2d3f7ba0b7ffd0f1c014186fb60630c132dba1 (patch)
treeab35e6ce0810bfdb0e881ef7ac67f8cd020ac99f /kbx/backend-sqlite.c
parentscd: New option --debug-allow-pin-logging. (diff)
downloadgnupg-cf2d3f7ba0b7ffd0f1c014186fb60630c132dba1.tar.gz
gnupg-cf2d3f7ba0b7ffd0f1c014186fb60630c132dba1.zip
agent: Update the key file only if not changed.
* common/name-value.c (struct name_value_container): Add flag "modified". (nvc_modified): New. (nvc_new): Set flag. (_nvc_add): Set flag. (nvc_delete): Set flag. (nvc_set): Set flag unless value did not change. (nve_set): Add arg PK. Change the caller. * agent/findkey.c (agent_write_private_key): Update only if modified. -- This helps software which uses a file system watcher to track changes to private keys. In particular smartcard triggered changes are a problem for such software because this may at worst trigger another smartcard read. GnuPG-bug-id: 6829
Diffstat (limited to 'kbx/backend-sqlite.c')
0 files changed, 0 insertions, 0 deletions