Home GnuPG
Diffusion GnuPG 9909f622f69e

agent: fix tpm2d keytotpm handling

Description

agent: fix tpm2d keytotpm handling

* agent/divert-tpm2.c (agent_write_tpm2_shadow_key): Call
agent_delete_key before agent_write_private_key.  Recover
from an error.

Cherry-picked from master commit of:
eda3997b439e415f1bebaa3be20c8bdb43d3a1d0

Details

Provenance
gniibeAuthored on Sep 28 2023, 4:59 AM
Parents
rG19caa5c267a5: agent: Initialize FP for the case of error return.
Branches
Unknown
Tags
Unknown