summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-04-02 14:20:29 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-04-02 10:55:55 -0500
commit5f9f4fedeed2dc9833a673111f877c2536b769a6 (patch)
treeb2dded61ac6ed88bcdaf06cb3d803b64860d1215 /src/stkutil.h
parentafc2cb84e3d36beb0d4311b70b10e86862302f1a (diff)
downloadofono-5f9f4fedeed2dc9833a673111f877c2536b769a6.tar.bz2
Add parser for r-apdu objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h10
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