diff options
author | Simon Busch <morphis@gravedo.de> | 2012-09-03 06:04:49 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-09-09 12:22:48 +0200 |
commit | 1274e352c4b1363be3ee0e5781cdb947d868d27a (patch) | |
tree | d24515986b0ff6882e3d0e8128ff83a144dd35d5 | |
parent | 338c9716d12084f0f925f3217ec9abca44e49d7c (diff) | |
download | external_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
-rw-r--r-- | include/sec.h | 3 | ||||
-rw-r--r-- | samsung-ipc/sec.c | 18 |
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 |