scd: Fix ccid-driver timeout for OpenPGPcard v2.1.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Sep 2015 02:21:44 +0000 (11:21 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Sep 2015 02:21:44 +0000 (11:21 +0900)
commit6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa
tree77028bb569b977a5410e7be8a6421e76086fa3ea
parent93d257c81952cbb08a744a9cea6749639aa32cd7
scd: Fix ccid-driver timeout for OpenPGPcard v2.1.

* scd/ccid-driver.c (CCID_CMD_TIMEOUT): New.
(ccid_transceive_apdu_level, ccid_transceive): Use.

--

It is reported that key generation causes timeout with OpenPGPcard
v2.1.  Ideally, timeout value could be determined at run-time by
examining card's ATR.  Compile-time fixed value is OK for internal
CCID driver.
scd/ccid-driver.c