summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lockdown.c')
-rw-r--r--src/lockdown.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 65cbf90..6b8f298 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -127,7 +127,7 @@ iphone_error_t iphone_lckd_recv(iphone_lckd_client_t client, char **dump_data, u
127 return IPHONE_E_INVALID_ARG; 127 return IPHONE_E_INVALID_ARG;
128 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; 128 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
129 char *receive; 129 char *receive;
130 uint32 datalen = 0, bytes = 0; 130 uint32_t datalen = 0, bytes = 0;
131 131
132 if (!client->in_SSL) 132 if (!client->in_SSL)
133 ret = iphone_mux_recv(client->connection, (char *) &datalen, sizeof(datalen), &bytes); 133 ret = iphone_mux_recv(client->connection, (char *) &datalen, sizeof(datalen), &bytes);
@@ -211,7 +211,7 @@ iphone_error_t lockdownd_hello(iphone_lckd_client_t control)
211 dict = add_child_to_plist(plist, "dict", "\n", NULL, 0); 211 dict = add_child_to_plist(plist, "dict", "\n", NULL, 0);
212 key = add_key_str_dict_element(plist, dict, "Request", "QueryType", 1); 212 key = add_key_str_dict_element(plist, dict, "Request", "QueryType", 1);
213 char *XML_content; 213 char *XML_content;
214 uint32 length; 214 uint32_t length;
215 215
216 xmlDocDumpMemory(plist, (xmlChar **) & XML_content, &length); 216 xmlDocDumpMemory(plist, (xmlChar **) & XML_content, &length);
217 ret = iphone_lckd_send(control, XML_content, length, &bytes); 217 ret = iphone_lckd_send(control, XML_content, length, &bytes);
@@ -265,7 +265,7 @@ iphone_error_t lockdownd_generic_get_value(iphone_lckd_client_t control, char *r
265 char **dictionary = NULL; 265 char **dictionary = NULL;
266 int bytes = 0, i = 0; 266 int bytes = 0, i = 0;
267 char *XML_content = NULL; 267 char *XML_content = NULL;
268 uint32 length = 0; 268 uint32_t length = 0;
269 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; 269 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
270 270
271 /* Setup DevicePublicKey request plist */ 271 /* Setup DevicePublicKey request plist */
@@ -420,7 +420,7 @@ iphone_error_t lockdownd_pair_device(iphone_lckd_client_t control, char *uid, ch
420 char **dictionary = NULL; 420 char **dictionary = NULL;
421 int bytes = 0, i = 0; 421 int bytes = 0, i = 0;
422 char *XML_content = NULL; 422 char *XML_content = NULL;
423 uint32 length = 0; 423 uint32_t length = 0;
424 424
425 char *device_cert_b64 = NULL; 425 char *device_cert_b64 = NULL;
426 char *host_cert_b64 = NULL; 426 char *host_cert_b64 = NULL;
@@ -658,7 +658,7 @@ iphone_error_t lockdownd_start_SSL_session(iphone_lckd_client_t control, const c
658 xmlNode *dict = add_child_to_plist(plist, "dict", "\n", NULL, 0); 658 xmlNode *dict = add_child_to_plist(plist, "dict", "\n", NULL, 0);
659 xmlNode *key; 659 xmlNode *key;
660 char *what2send = NULL, **dictionary = NULL; 660 char *what2send = NULL, **dictionary = NULL;
661 uint32 len = 0, bytes = 0, return_me = 0, i = 0; 661 uint32_t len = 0, bytes = 0, return_me = 0, i = 0;
662 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; 662 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
663 // end variables 663 // end variables
664 664
@@ -893,8 +893,8 @@ iphone_error_t iphone_lckd_start_service(iphone_lckd_client_t client, const char
893 return IPHONE_E_SSL_ERROR; 893 return IPHONE_E_SSL_ERROR;
894 894
895 char *XML_query, **dictionary; 895 char *XML_query, **dictionary;
896 uint32 length, i = 0, port_loc = 0, bytes = 0; 896 uint32_t length, i = 0, port_loc = 0, bytes = 0;
897 uint8 result = 0; 897 uint8_t result = 0;
898 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; 898 iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
899 899
900 free(host_id); 900 free(host_id);