aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sec.h3
-rw-r--r--samsung-ipc/sec.c18
2 files changed, 21 insertions, 0 deletions
diff --git a/include/sec.h b/include/sec.h
index e6535d4..72b162f 100644
--- a/include/sec.h
+++ b/include/sec.h
@@ -165,6 +165,9 @@ void ipc_sec_phone_lock_set_setup(struct ipc_sec_phone_lock_set *message,
char* ipc_sec_rsim_access_response_get_file_data(struct ipc_message_info *response);
+void ipc_sec_change_locking_pw_set_setup(struct ipc_sec_change_locking_pw_set *message,
+ int type, char *passwd_old, char *passwd_new);
+
#endif
// vim:ts=4:sw=4:expandtab
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c
index 0074ffb..ce09e60 100644
--- a/samsung-ipc/sec.c
+++ b/samsung-ipc/sec.c
@@ -99,4 +99,22 @@ void ipc_sec_phone_lock_set_setup(struct ipc_sec_phone_lock_set *message,
}
}
+void ipc_sec_change_locking_pw_set_setup(struct ipc_sec_change_locking_pw_set *message,
+ int type, char *passwd_old, char *passwd_new)
+{
+ message->facility = type;
+
+ if (passwd_old != NULL)
+ {
+ strncpy((char*) message->password_old, passwd_old, 39);
+ message->length_old = strlen(passwd_old);
+ }
+
+ if (passwd_new != NULL)
+ {
+ strncpy((char*) message->password_new, passwd_new, 39);
+ message->length_new = strlen(passwd_new);
+ }
+}
+
// vim:ts=4:sw=4:expandtab