From c505058d839c39cebfe9cac92692ddf48cba29e9 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 1 Sep 2011 12:58:48 +0000 Subject: 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 --- smcc/src/main/java/at/gv/egiz/smcc/reader/PinpadCardReader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'smcc/src/main') 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); -- cgit v1.2.3