diff options
author | Werner Koch <[email protected]> | 2021-04-01 08:28:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-04-01 08:28:07 +0000 |
commit | e17d3f866057543d142d63379fd4f4a36d79147f (patch) | |
tree | bc3461cec907ea775c57d125a9b6a609944d8f77 /scd/app-common.h | |
parent | scd: Replace all assert macros by the log_assert macro. (diff) | |
download | gnupg-e17d3f866057543d142d63379fd4f4a36d79147f.tar.gz gnupg-e17d3f866057543d142d63379fd4f4a36d79147f.zip |
scd:p15: New flag APP_LEARN_FLAG_REREAD.
* scd/app-p15.c (do_deinit): Factor code out to ...
(release_lists, release_tokeninfo): new.
(read_ef_tokeninfo): Reset all data before reading.
(read_p15_info): Ditto.
(do_learn_status): Implement reread flag.
--
Objects of a card may be protected by a PIN and thus only readble
after a verify command. This new flag makes it possible to gather the
entire PKCS#15 card info again without a need for a reset (and thus
loss of the verify status).
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r-- | scd/app-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h index ace299ba7..c68fb8609 100644 --- a/scd/app-common.h +++ b/scd/app-common.h @@ -45,6 +45,7 @@ /* Flags used by the app_write_learn_status. */ #define APP_LEARN_FLAG_KEYPAIRINFO 1 /* Return only keypair infos. */ #define APP_LEARN_FLAG_MULTI 2 /* Return info for all apps. */ +#define APP_LEARN_FLAG_REREAD 4 /* Re-read ifnos from the token. */ /* List of supported card types. Generic is the usual ISO7817-4 |