1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00
gnupg/scd
Werner Koch d803b3bb3c
scd: Add an re-select mechanism to switch apps.
* scd/app-common.h (struct app_ctx_s): Add func ptr 'reselect'.
* scd/app-piv.c (do_reselect): New.
(app_select_piv): Move AID constant to file scope.
* scd/app-openpgp.c (do_reselect): New.
(app_select_openpgp): Move AID constant to file scope.
* scd/app.c (apptype_from_name): New.
(check_application_conflict): Check against all apps of the card.
Always set current_apptype.
(select_additional_application): New.
(maybe_switch_app): New.
(app_write_learn_status, app_readcert, app_readkey, app_getattr)
(app_setattr, app_sign, app_auth, app_decipher, app_writecert)
(app_writekey, app_genkey, app_change_pin, app_check_pin): Use it here.
(app_do_with_keygrip): Force reselect on success.
(app_new_register): Move setting of CURRENT_APPTYPE to ...
(select_application): here so that it will be set to the requested
card.
* scd/command.c (open_card_with_request): Select additional
application if possible.
--

Noet that we will likely need to rework this even more so to get well
defined semantics for card access.

Signed-off-by: Werner Koch <wk@gnupg.org>
2019-06-25 09:21:14 +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: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-dinsig.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-geldkarte.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-help.c scd: Simplify inclusion of app-common.h. 2019-06-21 11:42:59 +02:00
app-nks.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-openpgp.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-p15.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-piv.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app-sc-hsm.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00
app.c scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +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 spelling: Fix "synchronize" 2019-06-23 20:21:02 -04: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: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +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: Simplify inclusion of app-common.h. 2019-06-21 11:42:59 +02:00
scdaemon.h scd: Add an re-select mechanism to switch apps. 2019-06-25 09:21:14 +02:00