scd: Support longer data length for special DOs for v3 card.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Jul 2017 08:27:21 +0000 (17:27 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Jul 2017 08:27:21 +0000 (17:27 +0900)
commit69614d55018ddb8678d8904a52e648931f480d72
tree87670051e19fe03c739371e6c920a7ca1eb83d23
parent84146b3ec44943f06c66a603de19094b930ad446
scd: Support longer data length for special DOs for v3 card.

* scd/app-openpgp.c (data_objects): Special DOs like "Login Data",
"URL", "Private DO N" can be longer size >= 256.
(struct app_local_s): Define bits for v3 card.
(get_cached_data): Use extcap.max_special_do for special DOs.
(app_select_openpgp): Detect if extcap_v3, kdf_do, and other bits.

--

GnuPG-bug-id: 3262
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-openpgp.c