summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index e8626bc..4950a9e 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -284,7 +284,7 @@ int lockdownd_generic_get_value(iphone_lckd_client_t control, char *req_key, cha
284 * 284 *
285 * @return 1 on success and 0 on failure. 285 * @return 1 on success and 0 on failure.
286 */ 286 */
287int lockdownd_get_device_uid(lockdownd_client_t control, char **uid) 287int lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid)
288{ 288{
289 return lockdownd_generic_get_value(control, "UniqueDeviceID", uid); 289 return lockdownd_generic_get_value(control, "UniqueDeviceID", uid);
290} 290}
@@ -295,7 +295,7 @@ int lockdownd_get_device_uid(lockdownd_client_t control, char **uid)
295 * 295 *
296 * @return 1 on success and 0 on failure. 296 * @return 1 on success and 0 on failure.
297 */ 297 */
298int lockdownd_get_device_public_key(lockdownd_client_t control, char **public_key) 298int lockdownd_get_device_public_key(iphone_lckd_client_t control, char **public_key)
299{ 299{
300 return lockdownd_generic_get_value(control, "DevicePublicKey", public_key); 300 return lockdownd_generic_get_value(control, "DevicePublicKey", public_key);
301} 301}
@@ -322,7 +322,7 @@ int iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *clien
322 322
323 323
324 char *uid = NULL; 324 char *uid = NULL;
325 if(IPHONE_E_SUCCESS == ret && !lockdownd_get_device_uid(control_loc, &uid)){ 325 if(IPHONE_E_SUCCESS == ret && !lockdownd_get_device_uid(client_loc, &uid)){
326 fprintf(stderr, "Device refused to send uid.\n"); 326 fprintf(stderr, "Device refused to send uid.\n");
327 ret = IPHONE_E_NOT_ENOUGH_DATA; 327 ret = IPHONE_E_NOT_ENOUGH_DATA;
328 } 328 }
@@ -334,7 +334,7 @@ int iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *clien
334 } 334 }
335 335
336 if (IPHONE_E_SUCCESS == ret && !is_device_known(uid)) 336 if (IPHONE_E_SUCCESS == ret && !is_device_known(uid))
337 ret = lockdownd_pair_device(*control, uid, host_id); 337 ret = lockdownd_pair_device(client_loc, uid, host_id);
338 338
339 if (uid) { 339 if (uid) {
340 free(uid); 340 free(uid);