gpg: Implement card_store_subkey again.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 6 Feb 2013 05:01:23 +0000 (14:01 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 12 Feb 2013 05:19:12 +0000 (14:19 +0900)
commitb90506ea220860c89128f002bd593d0462a08d73
treed67894d81203ed7adabe5d0ca56421c387500a74
parent30f8a3c8736451d8c06ef72521a8da5eabf23016
gpg: Implement card_store_subkey again.

* g10/call-agent.h (agent_keytocard): New.
* g10/call-agent.c (agent_keytocard): New.
* g10/card-util.c (replace_existing_key_p): Returns 1 when replace.
(card_generate_subkey): Check return value of replace_existing_key_p.
(card_store_subkey): Implement again using agent_keytocard.
g10/call-agent.c
g10/call-agent.h
g10/card-util.c