summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-25 21:57:59 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:20 +0200
commit65f66a72123464c17618b2465bc7e28b97045279 (patch)
tree24b4236154a938f2c7c7561ac63d37b2a7a839b6 /src/lockdown.c
parentad65cefa1c041bbd4792e3dc4f4afc7b07026930 (diff)
downloadlibplist-65f66a72123464c17618b2465bc7e28b97045279.tar.gz
libplist-65f66a72123464c17618b2465bc7e28b97045279.tar.bz2
finish lockdown.c migration
Diffstat (limited to 'src/lockdown.c')
-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
*
* @return 1 on success and 0 on failure.
*/
-int lockdownd_get_device_uid(lockdownd_client_t control, char **uid)
+int lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid)
{
return lockdownd_generic_get_value(control, "UniqueDeviceID", uid);
}
@@ -295,7 +295,7 @@ int lockdownd_get_device_uid(lockdownd_client_t control, char **uid)
*
* @return 1 on success and 0 on failure.
*/
-int lockdownd_get_device_public_key(lockdownd_client_t control, char **public_key)
+int lockdownd_get_device_public_key(iphone_lckd_client_t control, char **public_key)
{
return lockdownd_generic_get_value(control, "DevicePublicKey", public_key);
}
@@ -322,7 +322,7 @@ int iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *clien
char *uid = NULL;
- if(IPHONE_E_SUCCESS == ret && !lockdownd_get_device_uid(control_loc, &uid)){
+ if(IPHONE_E_SUCCESS == ret && !lockdownd_get_device_uid(client_loc, &uid)){
fprintf(stderr, "Device refused to send uid.\n");
ret = IPHONE_E_NOT_ENOUGH_DATA;
}
@@ -334,7 +334,7 @@ int iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *clien
}
if (IPHONE_E_SUCCESS == ret && !is_device_known(uid))
- ret = lockdownd_pair_device(*control, uid, host_id);
+ ret = lockdownd_pair_device(client_loc, uid, host_id);
if (uid) {
free(uid);