diff options
| author | 2010-01-12 17:06:53 +0100 | |
|---|---|---|
| committer | 2010-01-12 17:06:53 +0100 | |
| commit | 9de537f6963e4e9770ee0aabfeb6982e3d422e69 (patch) | |
| tree | 95e456eef72f85bb906326b6231d1ceb24fad38f /dev | |
| parent | d07e1052c13ee472a34e90a4d87fbc3ddd2ad63f (diff) | |
| download | libimobiledevice-9de537f6963e4e9770ee0aabfeb6982e3d422e69.tar.gz libimobiledevice-9de537f6963e4e9770ee0aabfeb6982e3d422e69.tar.bz2 | |
Allow lockdown client creation without performing full handshake
The lockdown constructor was doing more than needed. Pairing and session
negotiation is now handled by lockdownd_client_new_with_handshake().
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/afccheck.c | 2 | ||||
| -rw-r--r-- | dev/iphoneclient.c | 2 | ||||
| -rw-r--r-- | dev/iphoneenterrecovery.c | 2 | ||||
| -rw-r--r-- | dev/lckdclient.c | 2 | ||||
| -rw-r--r-- | dev/msyncclient.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c index 00c0f52..7a17a31 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) | |||
| 109 | return 1; | 109 | return 1; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "afccheck")) { | 112 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "afccheck")) { |
| 113 | iphone_device_free(phone); | 113 | iphone_device_free(phone); |
| 114 | return 1; | 114 | return 1; |
| 115 | } | 115 | } |
diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c index 685f6ef..5bd0e6b 100644 --- a/dev/iphoneclient.c +++ b/dev/iphoneclient.c | |||
| @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) | |||
| 87 | if (uuid) | 87 | if (uuid) |
| 88 | free(uuid); | 88 | free(uuid); |
| 89 | 89 | ||
| 90 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphoneclient")) { | 90 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneclient")) { |
| 91 | iphone_device_free(phone); | 91 | iphone_device_free(phone); |
| 92 | printf("Exiting.\n"); | 92 | printf("Exiting.\n"); |
| 93 | return -1; | 93 | return -1; |
diff --git a/dev/iphoneenterrecovery.c b/dev/iphoneenterrecovery.c index 126941c..cab41f8 100644 --- a/dev/iphoneenterrecovery.c +++ b/dev/iphoneenterrecovery.c | |||
| @@ -74,7 +74,7 @@ int main(int argc, char *argv[]) | |||
| 74 | return -1; | 74 | return -1; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphoneenterrecovery")) { | 77 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneenterrecovery")) { |
| 78 | iphone_device_free(phone); | 78 | iphone_device_free(phone); |
| 79 | return -1; | 79 | return -1; |
| 80 | } | 80 | } |
diff --git a/dev/lckdclient.c b/dev/lckdclient.c index c8d717c..adf0aaa 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c | |||
| @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) | |||
| 48 | if (uuid) | 48 | if (uuid) |
| 49 | free(uuid); | 49 | free(uuid); |
| 50 | 50 | ||
| 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "lckdclient")) { | 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "lckdclient")) { |
| 52 | iphone_device_free(phone); | 52 | iphone_device_free(phone); |
| 53 | return -1; | 53 | return -1; |
| 54 | } | 54 | } |
diff --git a/dev/msyncclient.c b/dev/msyncclient.c index dfe2a2b..6e40390 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c | |||
| @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) | |||
| 153 | return -1; | 153 | return -1; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "msyncclient")) { | 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { |
| 157 | iphone_device_free(phone); | 157 | iphone_device_free(phone); |
| 158 | return -1; | 158 | return -1; |
| 159 | } | 159 | } |
