[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.22-5-g9625e7c
by NIIBE Yutaka
cvs at cvs.gnupg.org
Wed Oct 16 02:55:36 CEST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, STABLE-BRANCH-2-0 has been updated
via 9625e7c75a98ed44af66e886569b1d87a697ef24 (commit)
from b624677f7359c25873ee3e468c99d1319e6d2308 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9625e7c75a98ed44af66e886569b1d87a697ef24
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Wed Oct 16 09:52:18 2013 +0900
scd: add pinpad readers information for PC/SC service.
* scd/apdu.c (pcsc_vendor_specific_init): Add information for Cherry
ST-2xxx, Reiner cyberJack, Vasco DIGIPASS, FSIJ Gnuk Token, and KAAN
Advance.
--
Cherry pick from master.
diff --git a/scd/apdu.c b/scd/apdu.c
index fdae9b8..1ef0d9d 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -1762,21 +1762,30 @@ pcsc_vendor_specific_init (int slot)
}
}
- /*
- * For system which doesn't support GET_TLV_PROPERTIES,
- * we put some heuristics here.
- */
- if (reader_table[slot].rdrname
- && strstr (reader_table[slot].rdrname, "SPRx32"))
+ if (get_tlv_ioctl == (pcsc_dword_t)-1)
{
- reader_table[slot].is_spr532 = 1;
- reader_table[slot].pinpad_varlen_supported = 1;
+ /*
+ * For system which doesn't support GET_TLV_PROPERTIES,
+ * we put some heuristics here.
+ */
+ if (reader_table[slot].rdrname)
+ {
+ if (strstr (reader_table[slot].rdrname, "SPRx32"))
+ {
+ reader_table[slot].is_spr532 = 1;
+ reader_table[slot].pinpad_varlen_supported = 1;
+ }
+ else if (strstr (reader_table[slot].rdrname, "ST-2xxx")
+ || strstr (reader_table[slot].rdrname, "cyberJack")
+ || strstr (reader_table[slot].rdrname, "DIGIPASS")
+ || strstr (reader_table[slot].rdrname, "Gnuk")
+ || strstr (reader_table[slot].rdrname, "KAAN"))
+ reader_table[slot].pinpad_varlen_supported = 1;
+ }
+
return 0;
}
- if (get_tlv_ioctl == (pcsc_dword_t)-1)
- return 0;
-
len = sizeof (buf);
sw = control_pcsc (slot, get_tlv_ioctl, NULL, 0, buf, &len);
if (sw)
@@ -1832,6 +1841,12 @@ pcsc_vendor_specific_init (int slot)
reader_table[slot].is_spr532 = 1;
reader_table[slot].pinpad_varlen_supported = 1;
}
+ else if (vendor == 0x046a && product == 0x003e /* Cherry ST-2xxx */
+ || vendor == 0x0c4b /* Tested with Reiner cyberJack GO */
+ || vendor == 0x1a44 /* Tested with Vasco DIGIPASS 920 */
+ || vendor == 0x234b /* Tested with FSIJ Gnuk Token */
+ || vendor == 0x0d46 /* Tested with KAAN Advanced??? */)
+ reader_table[slot].pinpad_varlen_supported = 1;
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
scd/apdu.c | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list