From 8e91f477f94d055c2e2a4e7db440bafc3c79bd8f Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Fri, 2 Apr 2010 14:20:27 +0800 Subject: Add parser for card atr objects --- src/stkutil.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/stkutil.h') diff --git a/src/stkutil.h b/src/stkutil.h index 4ff8c4b0..8047ed11 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -459,6 +459,15 @@ struct stk_item_icon_id_list { unsigned int len; }; +/* + * According to 102.223 Section 8.34 the length of CTLV is 1 byte. This means + * that the maximum size is 127 according to the rules of CTLVs. + */ +struct stk_card_atr { + unsigned char atr[127]; + unsigned int len; +}; + /* * According to 102.223 Section 8.72 the length of text attribute CTLV is 1 * byte. This means that the maximum size is 127 according to the rules -- cgit v1.2.3