[PATCH v2] agent: fix tpm2d keytotpm handling

NIIBE Yutaka gniibe at fsij.org
Thu Sep 28 06:13:04 CEST 2023


James Bottomley wrote:
> commit: 2783b786a ("agent: Do not overwrite a key file by a shadow key
> file.")  broke keytotpm because you can no longer overwrite a
> non-shadowed secret key, now you must first delete it.  Fix KEYTOTPM
> by deleting the key before writing it.
> Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
> ---
> v2: update the logic around replacing the private key to actually do
> the replacement.
>  agent/divert-tpm2.c | 33 ++++++++++++++++++++++++++++-----
>  1 file changed, 28 insertions(+), 5 deletions(-)

Applied to master.

More information about the Gnupg-devel mailing list