diff options
author | Werner Koch <[email protected]> | 2014-12-15 16:38:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-12-15 16:38:40 +0000 |
commit | dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc (patch) | |
tree | 789d4242e852d337de44a0195badb5e577a1ccae /scd/app.c | |
parent | gpg: Fix regression in notation data regression. (diff) | |
download | gnupg-dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc.tar.gz gnupg-dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | scd/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -389,7 +389,7 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app) err = app_select_dinsig (app); if (err && is_app_allowed ("sc-hsm") && (!name || !strcmp (name, "sc-hsm"))) err = app_select_sc_hsm (app); - if (err && name) + if (err && name && gpg_err_code (err) != GPG_ERR_OBJ_TERM_STATE) err = gpg_error (GPG_ERR_NOT_SUPPORTED); leave: |