mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
1c16878efd
commit
e17d3f8660
2 changed files with 72 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue