Home GnuPG
Diffusion GnuPG a91f268d6cdf

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
rG5bab257d3a52: agent: Update the key file only if not changed.
Branches
Unknown
Tags
Unknown
Tasks
T6829: Kleopatra: Loop reading keys from smartcard