agent: Fix agent_public_key_from_file for ECC.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Jan 2015 00:30:11 +0000 (09:30 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Jan 2015 00:30:11 +0000 (09:30 +0900)
commit9453d645d4a489f038829c80343c124fff62d635
tree6c27a5311a3d475a71745bc782fc98ebc92ce4b4
parent6c87d1ce66d8e93e6c0f16c06116e9179f6158ba
agent: Fix agent_public_key_from_file for ECC.

* agent/cvt-openpgp.c (extract_private_key): New.
(convert_to_openpgp): Use extract_private_key.
* agent/findkey.c (agent_public_key_from_file): Use
extract_private_key.

--

This patch add support of ECC key with a curve name and flags.  Since
same functionality is also needed for convert_to_openpgp, it was
factored out into the extract_private_key function.
agent/agent.h
agent/cvt-openpgp.c
agent/findkey.c