gnupg/scd
NIIBE Yutaka 0d6b4210cf 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 <gniibe@fsij.org>
2021-07-21 17:22:26 +09:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am scd: Add very basic support for PIV cards. 2019-01-20 11:45:57 +01:00
apdu.c scd: Improve reading of binary records. 2021-06-18 17:42:38 +02:00
apdu.h scd:p15: Make it code work again for D-Trust cards. 2021-02-23 12:56:42 +01:00
app-common.h scd: Fix access to list of cards (3/3). 2021-07-21 17:22:26 +09:00
app-dinsig.c scd: Replace all assert macros by the log_assert macro. 2021-03-31 19:16:05 +02:00
app-geldkarte.c scd: Replace all assert macros by the log_assert macro. 2021-03-31 19:16:05 +02:00
app-help.c scd: Fix duplicate output of KEYPAIRINFO by readkey command. 2021-04-08 19:27:25 +02:00
app-nks.c scd: Fix memory leaks. 2021-04-13 14:21:29 +09:00
app-openpgp.c scd: Silence compiler waring about unused args. 2021-07-08 14:11:10 +02:00
app-p15.c scd:p15: Prepare AODF parsing for other authentication types. 2021-06-22 11:11:46 +02:00
app-piv.c scd: Silence compiler waring about unused args. 2021-07-08 14:11:10 +02:00
app-sc-hsm.c scd: Replace all assert macros by the log_assert macro. 2021-03-31 19:16:05 +02:00
app.c scd: Fix access to list of cards (3/3). 2021-07-21 17:22:26 +09:00
atr.c scd: Replace all assert macros by the log_assert macro. 2021-03-31 19:16:05 +02:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer. 2021-06-23 12:08:20 +09:00
ccid-driver.h scd:ccid-driver: Fix pinpad error handling for cancel/timeout. 2020-11-27 15:17:56 +09:00
command.c scd: Fix access to list of cards (3/3). 2021-07-21 17:22:26 +09:00
iso7816.c scd: Improve reading of binary records. 2021-06-18 17:42:38 +02:00
iso7816.h scd:p15: Support ECDSA and ECDH for CardOS. 2021-03-29 14:49:08 +02:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c scd: Fix problem with reader list becoming empty. 2021-04-28 18:21:56 +02:00
scdaemon.h scd:p15: Implement CHV-STATUS attribute 2021-03-16 18:52:38 +01:00