g10: Fix keytocard.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 3 Apr 2015 08:39:59 +0000 (17:39 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 3 Apr 2015 08:39:59 +0000 (17:39 +0900)
commitf82c4a6d0d76e716b6a7b22ca964fa2da1f962a0
tree4a2ff1ab9e04bc630126719fce01d097308028e3
parent4ffadb74b3ada8a5d69ef8d87f4326df9bd97e97
g10: Fix keytocard.

g10/call-agent.h (agent_scd_learn): Add FORCE option.
g10/call-agent.c (agent_scd_learn): Implement FORCE option.
g10/keygen.c (gen_card_key): Follow the change of option.
g10/card-util.c (change_pin, card_status, factory_reset): Likewise.
g10/keyedit.c (keyedit_menu): Update private key storage by
agent_scd_learn.
--

This is not a perfect solution since there is a possibility user
unplug card before quitting 'gpg --keyedit' session.  Usually,
it works well.

GnuPG-bug-id: 1846
g10/call-agent.c
g10/call-agent.h
g10/card-util.c
g10/keyedit.c
g10/keygen.c