Home GnuPG
Diffusion GnuPG 09329d52b5f0

agent: Update the key file only if changed (slight return).

Description

agent: Update the key file only if changed (slight return).

* agent/findkey.c (read_key_file): Add optional arg r_orig_key_value
to return the old Key value.  Change all callers.
(agent_write_private_key): Detect whether the Key entry was really
changed.

Details

Provenance
wernerAuthored on Nov 21 2023, 12:13 PM
Parents
rG813bb65d952d: common: Check wether to set the modified flag in nve_set.
Branches
Unknown
Tags
Unknown
Tasks
T6829: Kleopatra: Loop reading keys from smartcard