diff options
author | Jonathan Beck | 2008-08-03 20:47:47 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-05 23:28:10 -0700 |
commit | b9f9675e1e3978693bb2e7f66a7125473b3cb30e (patch) | |
tree | ca582a51bce704bfb764e31b8ef65403b4e6fc86 /src/main.c | |
parent | b25fea997fc798e945dd7f19f8d0be0d8d3289d1 (diff) | |
download | libplist-b9f9675e1e3978693bb2e7f66a7125473b3cb30e.tar.gz libplist-b9f9675e1e3978693bb2e7f66a7125473b3cb30e.tar.bz2 |
Initial pairing implementation.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -45,7 +45,10 @@ int main(int argc, char *argv[]) { int bytes = 0, port = 0, i = 0; if (phone) printf("I got a phone.\n"); else { printf("oops\n"); return -1; } - + + lockdownd_client *control = NULL; + lockdownd_init(phone, &control); + /* lockdownd_client *control = new_lockdownd_client(phone); if (!lockdownd_hello(control)) { printf("Something went wrong in the lockdownd client, go take a look.\n"); @@ -59,10 +62,10 @@ int main(int argc, char *argv[]) { printf("Error happened in GnuTLS...\n"); } else { free(host_id); - host_id = NULL; + host_id = NULL;*/ printf("... we're in SSL with the phone... !?\n"); port = lockdownd_start_service(control, "com.apple.afc"); - } + //} if (port) { printf("Start Service successful -- connect on port %i\n", port); AFClient *afc = afc_connect(phone, 3432, port); |