diff options
author | Nikias Bassen | 2013-11-20 12:05:18 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-11-20 12:05:18 +0100 |
commit | 8c3acd56e16edb77f5d835971ad2b684968ef2fb (patch) | |
tree | 7a15f9f9b24784b5d3c86af503c319c7d38f4bb5 | |
parent | f94e162d710653b9d69cbd7819d6505bcd0e711b (diff) | |
download | idevicerestore-8c3acd56e16edb77f5d835971ad2b684968ef2fb.tar.gz idevicerestore-8c3acd56e16edb77f5d835971ad2b684968ef2fb.tar.bz2 |
tss: add ApProductionMode to Image4 tss request
-rw-r--r-- | src/tss.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |