Home GnuPG
Diffusion GnuPG 479f7bf31ce4

agent: For SSH key, don't put NUL-byte at the end.

Description

agent: For SSH key, don't put NUL-byte at the end.

* agent/command-ssh.c (ssh_key_to_protected_buffer): Update
the length by the second call of gcry_sexp_sprint.
  • GnuPG-bug-id: T4502
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>