aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/sec.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-24 18:28:10 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-24 18:33:55 +0200
commitffc43da883c6c4905f27bb02986a1422ef492d92 (patch)
treee65880bc90fe83199d9472ddc58970cc2d60fe2c /samsung-ipc/sec.c
parent9b58ea4d833f17f5c6848fbf84139f1eba899946 (diff)
downloadexternal_libsamsung-ipc-ffc43da883c6c4905f27bb02986a1422ef492d92.zip
external_libsamsung-ipc-ffc43da883c6c4905f27bb02986a1422ef492d92.tar.gz
external_libsamsung-ipc-ffc43da883c6c4905f27bb02986a1422ef492d92.tar.bz2
Various updates and corrections
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/sec.c')
-rw-r--r--samsung-ipc/sec.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c
new file mode 100644
index 0000000..1a7f154
--- /dev/null
+++ b/samsung-ipc/sec.c
@@ -0,0 +1,33 @@
+/**
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2011 Simon Busch <morphis@gravedo.de>
+ *
+ * libsamsung-ipc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * libsamsung-ipc is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <radio.h>
+#include <string.h>
+
+char* ipc_sec_rsim_access_response_get_file_data(struct ipc_response *response)
+{
+ if (response == NULL)
+ return NULL;
+
+ struct ipc_sec_rsim_access_response *rsimresp = (struct ipc_sec_rsim_access_response*) response->data;
+ char *file_data = (char*) malloc(sizeof(char) * rsimresp->len);
+ memcpy(file_data, response->data + sizeof(struct ipc_sec_rsim_access_response), rsimresp->len);
+ return file_data;
+}