agent: Fix use of imported but unprotected openpgp keys.
authorWerner Koch <wk@gnupg.org>
Thu, 29 Jan 2015 15:26:07 +0000 (16:26 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 29 Jan 2015 15:26:07 +0000 (16:26 +0100)
commit6ab0fac575a8b04152a199cb300a08436b096753
tree8a7309b2ef2a8493c1762963fc58049740a60a19
parent6c368533f5211bed62e8638f522cef65c7ba4b87
agent: Fix use of imported but unprotected openpgp keys.

* agent/agent.h (PRIVATE_KEY_OPENPGP_NONE): New.
* agent/command.c (do_one_keyinfo): Implement it.
* agent/findkey.c (agent_key_from_file): Ditto.
(agent_key_info_from_file): Ditto.
(agent_delete_key): Ditto.
* agent/protect.c (agent_private_key_type): Add detection for openpgp
"none" method.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/agent.h
agent/command.c
agent/cvt-openpgp.c
agent/findkey.c
agent/protect.c