1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02:00
gnupg/scd
Werner Koch 5a5288d051
scd: Split data structures into app and card related objects.
* scd/app-common.h (struct card_ctx_s): New.
(struct app_ctx_s): Factor card specific fields out to card_ctx_s.
(app_get_slot): New.
* scd/scdaemon.h (card_t): New.
(struct server_control_s): Rename field app_ctx to card_ctx and change
all users.
* scd/app-dinsig.c: Use app_get_slot and adjust for chang in card
related fields.
* scd/app-geldkarte.c: Ditto.
* scd/app-nks.c: Ditto.
* scd/app-openpgp.c: Ditto.
* scd/app-p15.c: Ditto.
* scd/app-sc-hsm.c: Ditto.
* scd/app.c: Lost of changes to adjust for the changed data
structures.  Change all callers.
(app_list_lock): Rename to card_list_lock.
(app_top): Remove.
(card_top): New.
(lock_app): Rename to lock_card and change arg type.
(unlock_app): Rename to unlock_card.
(app_dump_state): Print card and app info.
(app_reset): Rename to card_reset.
(app_new_register): Change for the new data structure.
(deallocate_card): Dealloc card and all apps.
(app_ref): Rename to card_ref.
(app_unref): Rename to card_unref.
(app_unref_locked): Rename to card_unref_locked.
(card_get_serialno): New.
* scd/command.c (cmd_pkdecrypt): Actually use the looked up card and
former app object and not the standard one from the context.
--

Although quite large, this is a straightforward change to separate
card/token related data from card application related data.  Before
this change there was a one-to-one relation between card and
application and no way to represent several applications on a card.
The new data structure will allow for such a representation.

Signed-off-by: Werner Koch <wk@gnupg.org>
2019-06-19 08:50:40 +02:00
..
apdu.c scd: Fix for SCARD_IO_REQUEST structure. 2019-05-21 16:38:23 +09:00
apdu.h scd: Handle ack button timeout as GPG_ERR_TIMEOUT. 2019-02-21 15:16:11 +09:00
app-common.h scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-dinsig.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-geldkarte.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-help.c scd: New options --info and --info-only for READKEY. 2019-04-03 17:31:39 +02:00
app-nks.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-openpgp.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-p15.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-piv.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app-sc-hsm.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
app.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
atr.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09: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: Remove unused cruft from GnuPG 1.x 2019-05-16 08:24:42 +02:00
ccid-driver.h scd: Support "acknowledge button" feature. 2018-10-11 15:41:49 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00
iso7816.c scd: Remove unused cruft from GnuPG 1.x 2019-05-16 08:24:42 +02:00
iso7816.h scd:piv: Implement import of private keys for Yubikeys. 2019-03-05 15:49:20 +01:00
Makefile.am scd: Add very basic support for PIV cards. 2019-01-20 11:45:57 +01:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c scd: Bring back --card-timeout option as deprecated. 2019-06-06 09:55:10 +09:00
scdaemon.h scd: Split data structures into app and card related objects. 2019-06-19 08:50:40 +02:00