Home GnuPG
Diffusion GnuPG a216e9c028ee

agent: Update key files by first writing to a temp file.

Description

agent: Update key files by first writing to a temp file.

* agent/findkey.c (fname_from_keygrip): New.
(agent_write_private_key): Use here.  Use temp file for updating.
(agent_update_private_key): Use fname_from_keygrip and use gnupg
rename function instead of a vanilla rename.

Details

Provenance
wernerAuthored on May 26 2023, 1:57 PM
Parents
rG1d23dc9389a1: agent: Create and use Token entries to track the display s/n.
Branches
Unknown
Tags
Unknown