From b441d89e718355f3eccf7470f33c5c75e1e2b217 Mon Sep 17 00:00:00 2001 From: PaulK Date: Fri, 24 Feb 2012 17:15:23 +0100 Subject: Added SIM PIN-related structures on sec header --- include/sec.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'include/sec.h') 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); -- cgit v1.2.3