Merge pull request #35 from gravityblast/patch-1

fix application status response length
This commit is contained in:
Bitgamma 2019-03-18 17:41:00 +03:00 committed by GitHub
commit 734347a093
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) {
apduBuffer[off++] = TLV_APPLICATION_STATUS_TEMPLATE;
apduBuffer[off++] = 12;
apduBuffer[off++] = 9;
apduBuffer[off++] = TLV_INT;
apduBuffer[off++] = 1;
apduBuffer[off++] = pin.getTriesRemaining();