summaryrefslogtreecommitdiff
path: root/smcc
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-05-12 14:44:23 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-05-12 14:44:23 +0000
commita8af530c64d4612f5a15d66ce71bbfd1c3579ea0 (patch)
treee39d59f8d7de5bfa2626c1bd678a7495fcbd99b6 /smcc
parent284e7da6f01cb3b0e7269fe6476a8e2eeb77b8c2 (diff)
downloadmocca-a8af530c64d4612f5a15d66ce71bbfd1c3579ea0.tar.gz
mocca-a8af530c64d4612f5a15d66ce71bbfd1c3579ea0.tar.bz2
mocca-a8af530c64d4612f5a15d66ce71bbfd1c3579ea0.zip
pinentry polling intervall to 20ms
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@353 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java5
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java5
2 files changed, 8 insertions, 2 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java b/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java
index 066880b0..0de6bb17 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java
@@ -31,6 +31,7 @@ import org.apache.commons.logging.LogFactory;
* @author Clemens Orthacker <clemens.orthacker@iaik.tugraz.at>
*/
public class DefaultReader implements CCID {
+ public static final int PIN_ENTRY_POLLING_INTERVAL = 20;
public static final byte bEntryValidationCondition = 0x02; // validation key pressed
public static final byte bTimeOut = 0x3c; // 60sec (= max on ReinerSCT)
@@ -302,7 +303,7 @@ public class DefaultReader implements CCID {
if (resp == (byte) 0x00) {
synchronized(this) {
try {
- wait(200);
+ wait(PIN_ENTRY_POLLING_INTERVAL);
} catch (InterruptedException ex) {
log.error("interrupted in VERIFY_PIN");
}
@@ -349,7 +350,7 @@ public class DefaultReader implements CCID {
if (resp == (byte) 0x00) {
synchronized(this) {
try {
- wait(10);
+ wait(PIN_ENTRY_POLLING_INTERVAL);
} catch (InterruptedException ex) {
log.error("interrupted in MODIFY_PIN");
}
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java b/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java
index 1e3bdce2..ae21e5e0 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java
@@ -30,6 +30,11 @@ public class ReaderFactory {
String name = ct.getName();
if (name != null) {
name = name.toLowerCase();
+ //ReinerSCT: http://support.reiner-sct.de/downloads/LINUX
+ // http://www.linux-club.de/viewtopic.php?f=61&t=101287&start=0
+ //old: REINER SCT CyberJack 00 00
+ //new (CCID): 0C4B/0300 Reiner-SCT cyberJack pinpad(a) 00 00
+ //display: REINER SCT CyberJack 00 00
if(name.startsWith("gemplus gempc pinpad")) {
return new GemplusGemPCPinpad(icc, ct);
} else if (name.startsWith("omnikey cardman 3621")) {