diff options
author | Yang Gu <yang.gu@intel.com> | 2010-04-02 14:20:29 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-02 10:55:55 -0500 |
commit | 5f9f4fedeed2dc9833a673111f877c2536b769a6 (patch) | |
tree | b2dded61ac6ed88bcdaf06cb3d803b64860d1215 /src/stkutil.h | |
parent | afc2cb84e3d36beb0d4311b70b10e86862302f1a (diff) | |
download | ofono-5f9f4fedeed2dc9833a673111f877c2536b769a6.tar.bz2 |
Add parser for r-apdu objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index c6bd4e11..1cbf4075 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -483,6 +483,16 @@ struct stk_c_apdu { unsigned char le; }; +/* Defined in TS 102.223 Section 8.36. According to it, the maximum size + * of data is 237. + */ +struct stk_r_apdu { + unsigned char sw1; + unsigned char sw2; + unsigned char data[237]; + 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 |