aboutsummaryrefslogtreecommitdiffstats
path: root/include/sec.h
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2012-02-24 17:15:23 +0100
committerPaulK <contact@paulk.fr>2012-02-24 17:16:55 +0100
commitb441d89e718355f3eccf7470f33c5c75e1e2b217 (patch)
tree4a45a701f2c7c0e8ae1a3c5d3cfc98220d5c1dfe /include/sec.h
parent130f933ac5d4700b9eb2ff5b16f1359a4883f76c (diff)
downloadexternal_libsamsung-ipc-b441d89e718355f3eccf7470f33c5c75e1e2b217.zip
external_libsamsung-ipc-b441d89e718355f3eccf7470f33c5c75e1e2b217.tar.gz
external_libsamsung-ipc-b441d89e718355f3eccf7470f33c5c75e1e2b217.tar.bz2
Added SIM PIN-related structures on sec header
Diffstat (limited to 'include/sec.h')
-rw-r--r--include/sec.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/sec.h b/include/sec.h
index ddd9502..2fc48a0 100644
--- a/include/sec.h
+++ b/include/sec.h
@@ -65,7 +65,7 @@ struct ipc_message_info;
#define IPC_SEC_RSIM_COMMAND_UPDATE_BINARY 0xd6
#define IPC_SEC_RSIM_COMMAND_STATUS 0xf2
-struct ipc_sec_pin_status_noti {
+struct ipc_sec_pin_status_response {
unsigned char type;
unsigned char key;
} __attribute__((__packed__));
@@ -79,7 +79,10 @@ struct ipc_sec_pin_status_set {
} __attribute__((__packed__));
struct ipc_sec_phone_lock_request {
- unsigned char lock_type;
+ unsigned char type; // IPC_SEC_PIN_SIM_LOCK_...
+ unsigned char lock;
+ unsigned char length;
+ unsigned char password[39];
};
struct ipc_sec_phone_lock_response {
@@ -87,6 +90,14 @@ struct ipc_sec_phone_lock_response {
unsigned char status;
} __attribute__((__packed__));
+struct ipc_sec_change_locking_pw {
+ unsigned char type; // IPC_SEC_PIN_SIM_LOCK_...
+ unsigned char length_old;
+ unsigned char length_new;
+ unsigned char password_old[39];
+ unsigned char password_new[39];
+} __attribute__((__packed__));
+
struct ipc_sec_rsim_access_request {
unsigned char command;
unsigned short fileid;
@@ -110,6 +121,10 @@ struct ipc_sec_lock_info_response {
unsigned char attempts;
} __attribute__((__packed__));
+struct ipc_sec_sim_icc_type {
+ unsigned char type;
+} __attribute__((__packed__));
+
void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message,
unsigned char pin_type, char *pin1, char *pin2);