From b6851c194edcb16ef0ec3c13038216cabb6a46e0 Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Tue, 26 Feb 2019 19:48:25 +0100 Subject: [PATCH] fix ATR length (#790) * TS, T0, T[A-D][1-4], max. 15 HB, TCK = 34 Bytes --- include/smartcard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/smartcard.h b/include/smartcard.h index 82b346f5..161c6f6d 100644 --- a/include/smartcard.h +++ b/include/smartcard.h @@ -17,7 +17,7 @@ //----------------------------------------------------------------------------- typedef struct { uint8_t atr_len; - uint8_t atr[30]; + uint8_t atr[34]; } __attribute__((__packed__)) smart_card_atr_t; typedef enum SMARTCARD_COMMAND { -- 2.39.5