From afc2cb84e3d36beb0d4311b70b10e86862302f1a Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Fri, 2 Apr 2010 14:20:28 +0800 Subject: Add parser for c-apdu objects --- src/stkutil.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/stkutil.h') diff --git a/src/stkutil.h b/src/stkutil.h index 8047ed11..c6bd4e11 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -468,6 +468,21 @@ struct stk_card_atr { unsigned int len; }; +/* + * Defined in TS 102.223 Section 8.35. According to it, the maximum size + * of data is 236. + */ +struct stk_c_apdu { + unsigned char cla; + unsigned char ins; + unsigned char p1; + unsigned char p2; + unsigned char lc; + unsigned char data[236]; + ofono_bool_t has_le; + unsigned char le; +}; + /* * 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