diff options
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index ab168a3..2d85a03 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -126,7 +126,7 @@ static void iphone_lckd_stop_session(iphone_lckd_client_t control) | |||
| 126 | 126 | ||
| 127 | plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); | 127 | plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); |
| 128 | if (!plist) { | 128 | if (!plist) { |
| 129 | fprintf(stderr, "lockdownd_stop_session(): IPHONE_E_PLIST_ERROR\n"); | 129 | log_debug_msg("lockdownd_stop_session(): IPHONE_E_PLIST_ERROR\n"); |
| 130 | return; //IPHONE_E_PLIST_ERROR; | 130 | return; //IPHONE_E_PLIST_ERROR; |
| 131 | } | 131 | } |
| 132 | dict = xmlDocGetRootElement(plist); | 132 | dict = xmlDocGetRootElement(plist); |
| @@ -135,7 +135,7 @@ static void iphone_lckd_stop_session(iphone_lckd_client_t control) | |||
| 135 | break; | 135 | break; |
| 136 | } | 136 | } |
| 137 | if (!dict) { | 137 | if (!dict) { |
| 138 | fprintf(stderr, "lockdownd_stop_session(): IPHONE_E_DICT_ERROR\n"); | 138 | log_debug_msg("lockdownd_stop_session(): IPHONE_E_DICT_ERROR\n"); |
| 139 | return; //IPHONE_E_DICT_ERROR; | 139 | return; //IPHONE_E_DICT_ERROR; |
| 140 | } | 140 | } |
| 141 | dictionary = read_dict_element_strings(dict); | 141 | dictionary = read_dict_element_strings(dict); |
| @@ -460,7 +460,7 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client | |||
| 460 | 460 | ||
| 461 | iphone_lckd_client_t client_loc = new_lockdownd_client(device); | 461 | iphone_lckd_client_t client_loc = new_lockdownd_client(device); |
| 462 | if (IPHONE_E_SUCCESS != lockdownd_hello(client_loc)) { | 462 | if (IPHONE_E_SUCCESS != lockdownd_hello(client_loc)) { |
| 463 | fprintf(stderr, "Hello failed in the lockdownd client.\n"); | 463 | log_debug_msg("Hello failed in the lockdownd client.\n"); |
| 464 | ret = IPHONE_E_NOT_ENOUGH_DATA; | 464 | ret = IPHONE_E_NOT_ENOUGH_DATA; |
| 465 | } | 465 | } |
| 466 | 466 | ||
| @@ -468,12 +468,12 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client | |||
| 468 | char *uid = NULL; | 468 | char *uid = NULL; |
| 469 | ret = lockdownd_get_device_uid(client_loc, &uid); | 469 | ret = lockdownd_get_device_uid(client_loc, &uid); |
| 470 | if (IPHONE_E_SUCCESS != ret) { | 470 | if (IPHONE_E_SUCCESS != ret) { |
| 471 | fprintf(stderr, "Device refused to send uid.\n"); | 471 | log_debug_msg("Device refused to send uid.\n"); |
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | host_id = get_host_id(); | 474 | host_id = get_host_id(); |
| 475 | if (IPHONE_E_SUCCESS == ret && !host_id) { | 475 | if (IPHONE_E_SUCCESS == ret && !host_id) { |
| 476 | fprintf(stderr, "No HostID found, run libiphone-initconf.\n"); | 476 | log_debug_msg("No HostID found, run libiphone-initconf.\n"); |
| 477 | ret = IPHONE_E_INVALID_CONF; | 477 | ret = IPHONE_E_INVALID_CONF; |
| 478 | } | 478 | } |
| 479 | 479 | ||
| @@ -488,7 +488,7 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client | |||
| 488 | ret = lockdownd_start_SSL_session(client_loc, host_id); | 488 | ret = lockdownd_start_SSL_session(client_loc, host_id); |
| 489 | if (IPHONE_E_SUCCESS != ret) { | 489 | if (IPHONE_E_SUCCESS != ret) { |
| 490 | ret = IPHONE_E_SSL_ERROR; | 490 | ret = IPHONE_E_SSL_ERROR; |
| 491 | fprintf(stderr, "SSL Session opening failed.\n"); | 491 | log_debug_msg("SSL Session opening failed.\n"); |
| 492 | } | 492 | } |
| 493 | 493 | ||
| 494 | if (host_id) { | 494 | if (host_id) { |
| @@ -526,7 +526,7 @@ iphone_error_t lockdownd_pair_device(iphone_lckd_client_t control, char *uid, ch | |||
| 526 | 526 | ||
| 527 | ret = lockdownd_get_device_public_key(control, &public_key_b64); | 527 | ret = lockdownd_get_device_public_key(control, &public_key_b64); |
| 528 | if (ret != IPHONE_E_SUCCESS) { | 528 | if (ret != IPHONE_E_SUCCESS) { |
| 529 | fprintf(stderr, "Device refused to send public key.\n"); | 529 | log_debug_msg("Device refused to send public key.\n"); |
| 530 | return ret; | 530 | return ret; |
| 531 | } | 531 | } |
| 532 | 532 | ||
| @@ -647,7 +647,7 @@ void lockdownd_close(iphone_lckd_client_t control) | |||
| 647 | 647 | ||
| 648 | plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); | 648 | plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); |
| 649 | if (!plist) { | 649 | if (!plist) { |
| 650 | fprintf(stderr, "lockdownd_close(): IPHONE_E_PLIST_ERROR\n"); | 650 | log_debug_msg("lockdownd_close(): IPHONE_E_PLIST_ERROR\n"); |
| 651 | return; //IPHONE_E_PLIST_ERROR; | 651 | return; //IPHONE_E_PLIST_ERROR; |
| 652 | } | 652 | } |
| 653 | dict = xmlDocGetRootElement(plist); | 653 | dict = xmlDocGetRootElement(plist); |
| @@ -656,7 +656,7 @@ void lockdownd_close(iphone_lckd_client_t control) | |||
| 656 | break; | 656 | break; |
| 657 | } | 657 | } |
| 658 | if (!dict) { | 658 | if (!dict) { |
| 659 | fprintf(stderr, "lockdownd_close(): IPHONE_E_DICT_ERROR\n"); | 659 | log_debug_msg("lockdownd_close(): IPHONE_E_DICT_ERROR\n"); |
| 660 | return; //IPHONE_E_DICT_ERROR; | 660 | return; //IPHONE_E_DICT_ERROR; |
| 661 | } | 661 | } |
| 662 | dictionary = read_dict_element_strings(dict); | 662 | dictionary = read_dict_element_strings(dict); |
