mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: New flag --reread for LEARN
* scd/command.c (cmd_learn): Add flag --reread. * scd/app-common.h (struct app_ctx_s): New field need_reset. * scd/app.c (write_learn_status_core): Set need_reset if we notice an error after returning from a reread. Change all callers of card functions to return GPG_ERR_CARD_RESET so that that app is not anymore used. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e17d3f8660
commit
ff87f4e578
3 changed files with 101 additions and 39 deletions
|
@ -136,6 +136,7 @@ struct app_ctx_s {
|
|||
unsigned int force_chv1:1; /* True if the card does not cache CHV1. */
|
||||
unsigned int did_chv2:1;
|
||||
unsigned int did_chv3:1;
|
||||
unsigned int need_reset:1; /* Do't allow any functions but deinit. */
|
||||
struct app_local_s *app_local; /* Local to the application. */
|
||||
struct {
|
||||
void (*deinit) (app_t app);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue