agent: For SSH key, don't put NUL-byte at the end.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 21 May 2019 06:50:28 +0000 (15:50 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 21 May 2019 06:50:28 +0000 (15:50 +0900)
commit479f7bf31ce405e558d844c3eb576b463a8697e5
treeb1a1239d7471b47f567357269ec0542c0e35db4e
parent110a4550179fd1faeee8d2f17a33ed7807a397ae
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: 4502
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/command-ssh.c