diff options
author | Yang Gu <yang.gu@intel.com> | 2010-04-02 14:20:28 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-02 10:54:47 -0500 |
commit | afc2cb84e3d36beb0d4311b70b10e86862302f1a (patch) | |
tree | 5f30dd291c6ec5a089c2b85ae1b4613b8abf3a52 /src/stkutil.h | |
parent | 8e91f477f94d055c2e2a4e7db440bafc3c79bd8f (diff) | |
download | ofono-afc2cb84e3d36beb0d4311b70b10e86862302f1a.tar.bz2 |
Add parser for c-apdu objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index 8047ed11..c6bd4e11 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -469,6 +469,21 @@ struct stk_card_atr { }; /* + * 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 * of CTLVs. Empty attribute options will have len of 0. |