agent: SSH support improvement.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 9 Aug 2016 02:42:20 +0000 (11:42 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 9 Aug 2016 02:42:20 +0000 (11:42 +0900)
commitebf24e3b29766595204355d82f435a3e675bfbbc
treeca74a0e19ae9c8c31c7cd2f29091373367520363
parent491d6fdabb3d95905cd96d905e1f965ce8ff07e1
agent: SSH support improvement.

* agent/command-ssh.c (ssh_handler_request_identities): Skip a key with
error, not giving up to handle the request itself.
* agent/cvt-openpgp.c (extract_private_key): Support "ecdsa" key.

--

Note that "ecdsa" key is still in use by old versions of gpg-agent
through its SSH handling (until 2.1.14).  With old versions of
gpg-agent, adding ECDSA key by ssh-add command, "ecdsa" key will be
created.  So, "ecdsa" key should be supported.

For g10/gpg, "ecdsa" and "ecdh" was only used in some experimental
versions of libgcrypt, with parameters.  We now use "ecc" for all cases
in released versions.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/command-ssh.c
agent/cvt-openpgp.c