diff options
| author | 2013-09-21 01:43:19 +0200 | |
|---|---|---|
| committer | 2013-09-21 01:43:19 +0200 | |
| commit | ed1721776aa1be92f8e4ce51f2fec679b5a91100 (patch) | |
| tree | d03af03853b78b2ba79b742ba3c59d134eb62c40 /src | |
| parent | 74c81b034f7c61fd8582558a4bc5ad7f41c37b1a (diff) | |
| download | libimobiledevice-ed1721776aa1be92f8e4ce51f2fec679b5a91100.tar.gz libimobiledevice-ed1721776aa1be92f8e4ce51f2fec679b5a91100.tar.bz2 | |
lockdown: Send EscrowBag when starting service for automatic unlocking
Diffstat (limited to 'src')
| -rw-r--r-- | src/lockdown.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index f616d25..087d673 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -1674,6 +1674,7 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char | |||
| 1674 | return LOCKDOWN_E_INVALID_CONF; | 1674 | return LOCKDOWN_E_INVALID_CONF; |
| 1675 | 1675 | ||
| 1676 | plist_t dict = NULL; | 1676 | plist_t dict = NULL; |
| 1677 | plist_t escrow_bag = NULL; | ||
| 1677 | uint16_t port_loc = 0; | 1678 | uint16_t port_loc = 0; |
| 1678 | lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; | 1679 | lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; |
| 1679 | 1680 | ||
| @@ -1684,6 +1685,8 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char | |||
| 1684 | plist_dict_add_label(dict, client->label); | 1685 | plist_dict_add_label(dict, client->label); |
| 1685 | plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); | 1686 | plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); |
| 1686 | plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); | 1687 | plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); |
| 1688 | userpref_device_record_get_value(client->udid, USERPREF_ESCROW_BAG_KEY, &escrow_bag); | ||
| 1689 | plist_dict_insert_item(dict,"EscrowBag", escrow_bag); | ||
| 1687 | 1690 | ||
| 1688 | /* send to device */ | 1691 | /* send to device */ |
| 1689 | ret = lockdownd_send(client, dict); | 1692 | ret = lockdownd_send(client, dict); |
