diff options
| author | NIIBE Yutaka <[email protected]> | 2021-07-21 08:08:40 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2021-07-21 08:22:26 +0000 |
| commit | 0d6b4210cf31d1c3ca0e8b034537a158fe3caca8 (patch) | |
| tree | a2e4e971e3445f33e50fe9cf733e098c1d09d7e1 /dirmngr/t-ldap-misc.c | |
| parent | scd: Fix access to list of cards (2/3). (diff) | |
| download | gnupg-0d6b4210cf31d1c3ca0e8b034537a158fe3caca8.tar.gz gnupg-0d6b4210cf31d1c3ca0e8b034537a158fe3caca8.zip | |
scd: Fix access to list of cards (3/3).
* scd/app-common.h (card_reset): Simplify more.
(select_additional_application): Supply CARD.
(card_ref, card_unref): Remove.
(card_get, card_put): New.
* scd/app.c (card_reset): No locking/unlocking inside.
(app_switch_current_card): Fix comment.
(select_additional_application): No locking/unlocking inside.
(do_with_keygrip): New, unlocked version.
(card_get): New, with support of KEYGRIP.
(card_unref): Remove.
(card_put): New.
(app_write_learn_status, app_readcert: No locking/unlocking inside.
(app_readkey, app_getattr, app_setattr, app_sign, app_auth): Likewise.
(app_decipher, app_writecert, app_writekey): Likewise.
(app_genkey, app_get_challenge, app_change_pin): Likewise.
(app_check_pin, app_switch_active_app): Likewise.
* scd/command.c (do_reset): Use card_get/card_put.
(open_card_with_request): Use card_get/card_put, return CARD locked.
(cmd_serialno): Follow the change of open_card_with_request.
(cmd_switchapp): Use card_get/card_put.
(cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign): Likewise.
(cmd_pkauth, cmd_pkdecrypt, cmd_getattr): Likewise.
(cmd_setattr, cmd_writecert, cmd_writekey): Likewise.
(cmd_genkey, cmd_random, cmd_passwd): Likewise.
(cmd_checkpin, cmd_getinfo, cmd_restart): Likewise.
(cmd_disconnect, cmd_apdu, cmd_devinfo): Likewise.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/t-ldap-misc.c')
0 files changed, 0 insertions, 0 deletions
