aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-02-09 23:43:58 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-02-09 23:43:58 +0100
commit146080c93521ac9c4d028c50b121b1af71aca1f9 (patch)
tree909ea2e98c1f7f3c0e01dfa31b43eaf866734c09
parent564a20c0ff10770f0c225fd399f637392675e838 (diff)
downloadexternal_libsamsung-ipc-146080c93521ac9c4d028c50b121b1af71aca1f9.zip
external_libsamsung-ipc-146080c93521ac9c4d028c50b121b1af71aca1f9.tar.gz
external_libsamsung-ipc-146080c93521ac9c4d028c50b121b1af71aca1f9.tar.bz2
sec: RSIM access data structure when SIM ICC type != 1
Change-Id: I4580ffcc91486363dc50a1fca116991fda098e48 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--include/sec.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/sec.h b/include/sec.h
index 1d233fd..60f912b 100644
--- a/include/sec.h
+++ b/include/sec.h
@@ -83,6 +83,9 @@ struct ipc_message_info;
#define IPC_SEC_RSIM_COMMAND_RETRIEVE_DATA 0xcb
#define IPC_SEC_RSIM_COMMAND_SET_DATA 0xdb
+#define IPC_SEC_RSIM_FILE_STRUCTURE_TRANSPARENT 0x83
+#define IPC_SEC_RSIM_FILE_STRUCTURE_LINEAR_FIXED 0x00
+
struct ipc_sec_sim_status_response {
/* IPC_SEC_SIM_STATUS_... */
unsigned char status;
@@ -139,6 +142,15 @@ struct ipc_sec_rsim_access_response {
unsigned char len;
} __attribute__((__packed__));
+// This is the data structure for SIM ICC type != 1
+struct ipc_sec_rsim_access_response_data {
+ unsigned char unk1[3];
+ unsigned char offset;
+ unsigned char unk2[2];
+ unsigned char file_structure;
+ unsigned char record_length;
+} __attribute__((__packed__));
+
struct ipc_sec_lock_info_get {
unsigned char unk0; /* needs to be "1" */
/* IPC_SEC_PIN_TYPE_... */
@@ -154,7 +166,6 @@ struct ipc_sec_lock_info_response {
} __attribute__((__packed__));
struct ipc_sec_sim_icc_type {
- /* unknown */
unsigned char type;
} __attribute__((__packed__));