aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiibe Yutaka <[email protected]>2016-06-19 02:24:50 +0000
committerNiibe Yutaka <[email protected]>2016-06-19 02:33:32 +0000
commitc68d39f7114623075c0b407b05927b61b190a377 (patch)
tree41bb45fa119ad5002122385500df3f8bf0968cbc
parentg10: Fix another race condition for trustdb access. (diff)
downloadgnupg-c68d39f7114623075c0b407b05927b61b190a377.tar.gz
gnupg-c68d39f7114623075c0b407b05927b61b190a377.zip
scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
* (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device. -- We can't use the driver for 08E6:3438, while it works well under PC/SC service. I found that the library of ccid always uses the node address = ZERO for all transactions. So, we extend the same handling for not only GEMPC_CT30, but also for all its devices. Debian-bug-id: 814584 Signed-off-by: NIIBE Yutaka <[email protected]> (backport form master commit 971064f8b7ad676326b2a468f688037a303717df)
-rw-r--r--scd/ccid-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 8f9c1bd33..23b992d2d 100644
--- a/scd/ccid-driver.c
+++ b/scd/ccid-driver.c
@@ -1013,7 +1013,7 @@ parse_ccid_descriptor (ccid_driver_t handle,
handle->max_ifsd = 48;
}
- if (handle->id_vendor == VENDOR_GEMPC && handle->id_product == GEMPC_CT30)
+ if (handle->id_vendor == VENDOR_GEMPC)
{
DEBUGOUT ("enabling product quirk: disable non-null NAD\n");
handle->nonnull_nad = 0;