diff options
Diffstat (limited to 'samsung-ipc/sec.c')
-rw-r--r-- | samsung-ipc/sec.c | 18 |
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 |