aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/sec.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-25 19:14:04 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-25 19:14:04 +0200
commitfcc205d9f852ccc72c7fed1b54d541e1319c2f1c (patch)
treecc936e240a49d178a2b97cd2a9c39b3dba57ad05 /samsung-ipc/sec.c
parent4771ea19e252ed3ee940a6b8e50a5a1cae93e183 (diff)
downloadexternal_libsamsung-ipc-fcc205d9f852ccc72c7fed1b54d541e1319c2f1c.zip
external_libsamsung-ipc-fcc205d9f852ccc72c7fed1b54d541e1319c2f1c.tar.gz
external_libsamsung-ipc-fcc205d9f852ccc72c7fed1b54d541e1319c2f1c.tar.bz2
Add setup method for ipc_sec_pin_status_set message
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/sec.c')
-rw-r--r--samsung-ipc/sec.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c
index e27f518..9cef712 100644
--- a/samsung-ipc/sec.c
+++ b/samsung-ipc/sec.c
@@ -21,6 +21,27 @@
#include <radio.h>
#include <string.h>
#include <stdlib.h>
+#include <assert.h>
+
+void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message,
+ unsigned char pin_type, char *pin1, char *pin2)
+{
+ assert(message != NULL);
+
+ message->type = pin_type;
+
+ if (pin1 != NULL)
+ {
+ strncpy(message->pin1, pin1, 8);
+ message->length1 = strlen(pin1);
+ }
+
+ if (pin2 != NULL)
+ {
+ strncpy(message->pin2, pin2, 8);
+ message->length2 = strlen(pin2);
+ }
+}
char* ipc_sec_rsim_access_response_get_file_data(struct ipc_response *response)
{