summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-19 23:20:54 +0100
committerGravatar Nikias Bassen2013-11-19 23:20:54 +0100
commitb97925506da666f1e75a1bdb80fee37414758ad1 (patch)
tree1af6efa14b18a08411655ec14265ec96f41299d6 /src
parent85bd0230696f7f50dbc5ec15f1d00a047053e981 (diff)
downloadidevicerestore-b97925506da666f1e75a1bdb80fee37414758ad1.tar.gz
idevicerestore-b97925506da666f1e75a1bdb80fee37414758ad1.tar.bz2
tss: only add EPRO/ESEC if we are sending an Image4 request
Diffstat (limited to 'src')
-rw-r--r--src/tss.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tss.c b/src/tss.c
index 789cc0e..a56322e 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -330,9 +330,10 @@ int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identit
/* remove obsolete Info node */
plist_dict_remove_item(tss_entry, "Info");
- /* FIXME: If ApSupportsImg4 */
- plist_dict_insert_item(tss_entry, "EPRO", plist_new_bool(1));
- plist_dict_insert_item(tss_entry, "ESEC", plist_new_bool(1));
+ if (plist_access_path(manifest_entry, 2, "Info", "RestoreRequestRules")) {
+ plist_dict_insert_item(tss_entry, "EPRO", plist_new_bool(1));
+ plist_dict_insert_item(tss_entry, "ESEC", plist_new_bool(1));
+ }
plist_dict_insert_item(request, key, tss_entry);