gpg: Add sub-command "factory-reset" to --card-edit.
authorWerner Koch <wk@gnupg.org>
Mon, 15 Dec 2014 16:38:40 +0000 (17:38 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 15 Dec 2014 16:38:40 +0000 (17:38 +0100)
commitdd65e21cb4934b40e6f2f7a8095f39fd6d9971bc
tree789d4242e852d337de44a0195badb5e577a1ccae
parentfc9a35d2dec2f838abac831fd88dca494773e082
gpg: Add sub-command "factory-reset" to --card-edit.

* common/util.h (GPG_ERR_OBJ_TERM_STATE): New.
* scd/iso7816.c (map_sw): Add this error code.
* scd/app-openpgp.c (do_getattr): Return the life cycle indicator.
* scd/app.c (select_application): Allow a return value of
GPG_ERR_OBJ_TERM_STATE.
* scd/scdaemon.c (set_debug): Print the DBG_READER value.
* g10/call-agent.c (start_agent): Print a status line for the
termination state.
(agent_scd_learn): Make arg "info" optional.
(agent_scd_apdu): New.
* g10/card-util.c (send_apdu): New.
(factory_reset): New.
(card_edit): Add command factory-reset.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/util.h
doc/DETAILS
g10/call-agent.c
g10/call-agent.h
g10/card-util.c
scd/apdu.h
scd/app-openpgp.c
scd/app.c
scd/iso7816.c
scd/scdaemon.c