1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/scd
Werner Koch 9e3b7e26a9
scd:openpgp: Small speedup reading card properties.
* scd/app-openpgp.c (struct app_local_s): Add new flag.
(get_cached_data): Force chace use if flag is set.
(app_select_openpgp): Avoid reading DO 6E multiple times.
--

The do not cache property of 6E was introduced so that we can change
for example key attributes without getting into with the cache.
However, for initial reading the cache makes a lot of sense and thus we
now use this hack to only temporary cache.  A better strategy would be
to clear the cache when we change card data but that is more error
prone.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit d5fb598323)
2023-10-10 13:59:51 +02:00
..
apdu.c scd: Fix cmd_apdu on error. 2023-05-10 10:08:27 +02:00
apdu.h scd: Support PC/SC for "getinfo reader_list". 2021-09-08 15:50:28 +02:00
app-common.h scd: Add option --info to emit KEYPAIRINFO by readkey command. 2021-05-03 20:15:03 +02:00
app-dinsig.c scd: Use app_get_slot at more places. 2022-11-25 13:55:13 +01:00
app-geldkarte.c scd: Change the apptype from a string to an enum. 2021-02-19 09:17:06 +01:00
app-help.c scd: Add option --info to emit KEYPAIRINFO by readkey command. 2021-05-03 20:15:03 +02:00
app-nks.c scd:nks: Fix ECC signing if key not given by keygrip. 2022-11-25 13:56:47 +01:00
app-openpgp.c scd:openpgp: Small speedup reading card properties. 2023-10-10 13:59:51 +02:00
app-p15.c scd,p15: Enforce a min. PIN length for certain cards. 2023-04-20 12:42:08 +02:00
app-sc-hsm.c scd: Use app_get_slot at more places. 2022-11-25 13:55:13 +01:00
app.c scd: Return CARDTYPE, CARDVERSION, and APPVERSION. 2023-01-13 13:59:20 +01: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: Add npth_unprotect/npth_protect for blocking operations. 2022-08-31 13:50:07 +02:00
ccid-driver.h scd: Clean up the structure for future fix of PC/SC. 2020-10-06 11:17:58 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Fix cmd_apdu on error. 2023-05-10 10:08:27 +02:00
iso7816.c scd:openpgp: Allow reading and writing user certs for keys 1 and 2 2023-10-10 13:54:26 +02:00
iso7816.h scd:openpgp: Allow reading and writing user certs for keys 1 and 2 2023-10-10 13:54:26 +02:00
Makefile.am scd,w32: Fix build dependency 2023-08-29 11:15:57 +02:00
scdaemon-w32info.rc w32: Add manifest files to most binaries 2020-10-02 17:04:12 +02:00
scdaemon.c scd: New debug flags "card". 2022-05-05 14:12:23 +02:00
scdaemon.h scd:nks: Return USAGE information for KEYINFO command. 2022-10-20 12:22:08 +02:00
scdaemon.w32-manifest.in w32: Add missing manifests and set a requestedExecutionLevel. 2023-05-25 11:10:21 +02:00