1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-09 23:39:51 +02:00
gnupg/scd
Werner Koch 24e121ef26 scd: Introduce a virtual reader table.
The vreader table makes the code more clear by explicitly talking
about APDU slots and reader indices.  It also accommodates for future
extensions.

* scd/scdaemon.h (server_control_s): Remove READER_SLOT.
* scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT.
* scd/app.c (check_application_conflict): Add arg SLOT.
* scd/command.c (slot_status_s): Rename to vreader_s.
(server_local_s): Add field VREADER_IDX as replacement for
the READER_SLOT in server_control_s.  Change all users.
(slot_table): Rename to vreader_table.  Change all users.
(vreader_slot): New.
(do_reset, cmd_apdu): Map vreader to apdu slot.
(get_reader_slot): Rename to get_current_reader.  Return -1 on error.
(open_card): Map vreader toapdu slot.  Pass slot to
check_application_conflict.
(scd_command_handler): Init VREADER_IDX.
(update_reader_status_file): Reset SLOT field on error.
2011-12-13 16:55:42 +01:00
..
apdu.c Fix detection of card removal and insertion. 2011-12-12 20:34:12 +01:00
apdu.h PC/SC pinpad support (pinpad input for modify pass phrase with resetcode, by admin). 2011-11-29 17:56:22 +09:00
app-common.h scd: Introduce a virtual reader table. 2011-12-13 16:55:42 +01:00
app-dinsig.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
app-geldkarte.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-help.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-nks.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
app-openpgp.c Fix pinpad input support for passphrase modification. 2011-12-02 13:57:12 +09:00
app-p15.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app.c scd: Introduce a virtual reader table. 2011-12-13 16:55:42 +01:00
atr.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
atr.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-common.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-dinsig.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card-p15.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
card.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ccid-driver.c Support the Cherry ST-2000 card reader. 2011-12-02 18:09:58 +01:00
ccid-driver.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Introduce a virtual reader table. 2011-12-13 16:55:42 +01:00
iso7816.c Fix pinpad input support for passphrase modification. 2011-12-02 13:57:12 +09:00
iso7816.h Fix pinpad input support for passphrase modification. 2011-12-02 13:57:12 +09:00
Makefile.am Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
pcsc-wrapper.c PC/SC pinpad support. 2011-11-28 16:16:38 +09:00
sc-copykeys.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
scdaemon.c scd: Introduce a virtual reader table. 2011-12-13 16:55:42 +01:00
scdaemon.h scd: Introduce a virtual reader table. 2011-12-13 16:55:42 +01:00