aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/sec.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-09-03 06:04:49 +0200
committerSimon Busch <morphis@gravedo.de>2012-09-09 12:22:48 +0200
commit1274e352c4b1363be3ee0e5781cdb947d868d27a (patch)
treed24515986b0ff6882e3d0e8128ff83a144dd35d5 /samsung-ipc/sec.c
parent338c9716d12084f0f925f3217ec9abca44e49d7c (diff)
downloadexternal_libsamsung-ipc-1274e352c4b1363be3ee0e5781cdb947d868d27a.zip
external_libsamsung-ipc-1274e352c4b1363be3ee0e5781cdb947d868d27a.tar.gz
external_libsamsung-ipc-1274e352c4b1363be3ee0e5781cdb947d868d27a.tar.bz2
sec: add setup method for ipc_sec_change_locking_pw_set message type
Diffstat (limited to 'samsung-ipc/sec.c')
-rw-r--r--samsung-ipc/sec.c18
1 files changed, 18 insertions, 0 deletions
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