summaryrefslogtreecommitdiff
path: root/smcc/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-12-11 15:56:26 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-12-11 15:56:26 +0000
commit7ceeaf48ebfc905c8824fdf589cf04854e36aae1 (patch)
treedf24209bf5e8831a854435c41467a47aa27eb75e /smcc/src/main/java/at/gv/egiz
parentf03ce51929e344a92d04aeb4bba473ae47a913b2 (diff)
downloadmocca-7ceeaf48ebfc905c8824fdf589cf04854e36aae1.tar.gz
mocca-7ceeaf48ebfc905c8824fdf589cf04854e36aae1.tar.bz2
mocca-7ceeaf48ebfc905c8824fdf589cf04854e36aae1.zip
[#502] VERIFY on STARCOS does not recognize locked pins (SW [63c0])
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@561 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/STARCOSCard.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/STARCOSCard.java b/smcc/src/main/java/at/gv/egiz/smcc/STARCOSCard.java
index 9047fa54..79a4cc69 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/STARCOSCard.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/STARCOSCard.java
@@ -616,6 +616,10 @@ public class STARCOSCard extends AbstractSignatureCard implements PINMgmtSignatu
if (resp.getSW() == 0x9000) {
return -1;
}
+ if (resp.getSW() == 0x63c0) {
+ // returned by the 'short' VERIFY
+ throw new LockedException();
+ }
if (resp.getSW() >> 4 == 0x63c) {
return 0x0f & resp.getSW();
}
@@ -623,6 +627,7 @@ public class STARCOSCard extends AbstractSignatureCard implements PINMgmtSignatu
switch (resp.getSW()) {
case 0x6983:
// authentication method blocked
+ // returned by the 'long' VERIFY
throw new LockedException();
case 0x6984:
// reference data not usable