summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-20 12:05:18 +0100
committerGravatar Nikias Bassen2013-11-20 12:05:18 +0100
commit8c3acd56e16edb77f5d835971ad2b684968ef2fb (patch)
tree7a15f9f9b24784b5d3c86af503c319c7d38f4bb5
parentf94e162d710653b9d69cbd7819d6505bcd0e711b (diff)
downloadidevicerestore-8c3acd56e16edb77f5d835971ad2b684968ef2fb.tar.gz
idevicerestore-8c3acd56e16edb77f5d835971ad2b684968ef2fb.tar.bz2
tss: add ApProductionMode to Image4 tss request
-rw-r--r--src/tss.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tss.c b/src/tss.c
index a4b8e63..83acb22 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -121,6 +121,18 @@ int tss_request_add_ap_img4_tags(plist_t request, plist_t parameters) {
node = NULL;
}
+ node = plist_dict_get_item(request, "ApProductionMode");
+ if (!node) {
+ /* ApProductionMode */
+ node = plist_dict_get_item(parameters, "ApProductionMode");
+ if (!node || plist_get_node_type(node) != PLIST_BOOLEAN) {
+ error("ERROR: Unable to find required ApProductionMode in parameters\n");
+ return -1;
+ }
+ plist_dict_insert_item(request, "ApProductionMode", plist_copy(node));
+ node = NULL;
+ }
+
/* ApSepNonce */
node = plist_dict_get_item(parameters, "ApSepNonce");
if (!node || plist_get_node_type(node) != PLIST_DATA) {