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:32:24 +0000 (11:32 +0900)
commita63fddad6808763e2916d0e7e6972ed025a0f336
treea40fdb26d5e8aa3cec4185c2e37217a5fa9c1a1e
parentd289341371bae6405c2100a0c515c6322a2f0319
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.

(cherry-picked from 2.1 6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa)
scd/ccid-driver.c