summaryrefslogtreecommitdiff
path: root/smcc/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-09-01 12:58:48 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-09-01 12:58:48 +0000
commitc505058d839c39cebfe9cac92692ddf48cba29e9 (patch)
tree770b62c9902bad27a24f53447014d58ec8f833de /smcc/src/main/java/at/gv/egiz
parentf80997b71e8ba959715f46df1ef798adc9f8e9d7 (diff)
downloadmocca-c505058d839c39cebfe9cac92692ddf48cba29e9.tar.gz
mocca-c505058d839c39cebfe9cac92692ddf48cba29e9.tar.bz2
mocca-c505058d839c39cebfe9cac92692ddf48cba29e9.zip
Workaround for GemPlus USB GemPC Pinpad Smartcardreader under Windows
Disabling pinpad for now if running under Windows git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@972 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/main/java/at/gv/egiz')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java b/smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java
index d41da179..1ca28242 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java
@@ -109,11 +109,16 @@ public class PinpadCardReader extends DefaultCardReader {
//display: REINER SCT CyberJack 00 00
if(name.startsWith("gemplus gempc pinpad") || name.startsWith("gemalto gempc pinpad")) {
// win7(microsoft driver) GemPlus USB GemPC Pinpad Smartcardreader 0 -> no pinpad
- // win7(gemalto4.0.7.5) Gemalto GemPC Pinpad USB Smart Card Read 0 -> transmitContorlCommand failed (0x7a)
+ // win7(gemalto4.0.7.5) Gemalto GemPC Pinpad USB Smart Card Read 0 -> transmitControlCommand failed (0x7a)
// (same with timeouts set to 0000 and 3c0f)
// winXP (verify failed, sw=d2(ecard) sw=92(acos), cf. wiki):
// winXP (without setting wPINMax: sw=6b:80)
// linux (ok): Gemplus GemPC Pinpad 00 00
+ if (System.getProperty("os.name").toLowerCase().contains("windows")) {
+ log.trace("Disabling direct pin entry as workaround for Windows");
+ VERIFY_DIRECT = false;
+ MODIFY_DIRECT = false;
+ }
log.trace("Setting custom wPINMaxExtraDigitH (0x04) for {}.", name);
wPINMaxExtraDigitMin = 0x04;
log.trace("Setting custom wPINMaxExtraDigitL (0x08) for {}.", name);