Commit 15bb91aa authored by Matt Colyer's avatar Matt Colyer

Reverted bb74e8fd, as I can no longer connect

to my phone with that patch applied.
parent 9fbadfad
...@@ -184,14 +184,22 @@ void *ifuse_init(struct fuse_conn_info *conn) { ...@@ -184,14 +184,22 @@ void *ifuse_init(struct fuse_conn_info *conn) {
iPhone *phone = get_iPhone(); iPhone *phone = get_iPhone();
if (!phone){ if (!phone){
fprintf(stderr, "No iPhone found, is it connected?\n"); fprintf(stderr, "No iPhone found, is it connected?\n");
return NULL;
}
lockdownd_client *control = new_lockdownd_client(phone);
if (!lockdownd_hello(control)) {
fprintf(stderr, "Something went wrong in the lockdownd client.\n");
return NULL; return NULL;
} }
lockdownd_client *control = NULL; host_id = get_host_id();
if (!lockdownd_init(phone, &control)) { if ((host_id && !lockdownd_start_SSL_session(control, host_id)) || !host_id) {
fprintf(stderr, "Something went wrong in the lockdownd client.\n"); fprintf(stderr, "Something went wrong in GnuTLS. Is your HostID configured in .config/libiphone/libiphonerc?\n");
return NULL; return NULL;
} }
free(host_id);
host_id = NULL;
port = lockdownd_start_service(control, "com.apple.afc"); port = lockdownd_start_service(control, "com.apple.afc");
if (!port) { if (!port) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment