From ed1721776aa1be92f8e4ce51f2fec679b5a91100 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 21 Sep 2013 01:43:19 +0200 Subject: lockdown: Send EscrowBag when starting service for automatic unlocking --- src/lockdown.c | 3 +++ 1 file changed, 3 insertions(+) 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 return LOCKDOWN_E_INVALID_CONF; plist_t dict = NULL; + plist_t escrow_bag = NULL; uint16_t port_loc = 0; lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; @@ -1684,6 +1685,8 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char plist_dict_add_label(dict, client->label); plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); + userpref_device_record_get_value(client->udid, USERPREF_ESCROW_BAG_KEY, &escrow_bag); + plist_dict_insert_item(dict,"EscrowBag", escrow_bag); /* send to device */ ret = lockdownd_send(client, dict); -- cgit v1.1-32-gdbae