fix application status response length

This commit is contained in:
Andrea Franz 2019-03-18 15:37:54 +01:00 committed by GitHub
parent 56a6d7dd5e
commit 2d366d6e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ public class KeycardApplet extends Applet {
*/ */
private short getApplicationStatus(byte[] apduBuffer, short off) { private short getApplicationStatus(byte[] apduBuffer, short off) {
apduBuffer[off++] = TLV_APPLICATION_STATUS_TEMPLATE; apduBuffer[off++] = TLV_APPLICATION_STATUS_TEMPLATE;
apduBuffer[off++] = 12; apduBuffer[off++] = 9;
apduBuffer[off++] = TLV_INT; apduBuffer[off++] = TLV_INT;
apduBuffer[off++] = 1; apduBuffer[off++] = 1;
apduBuffer[off++] = pin.getTriesRemaining(); apduBuffer[off++] = pin.getTriesRemaining();