summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-20 12:04:55 +0100
committerGravatar Nikias Bassen2013-11-20 12:04:55 +0100
commitf94e162d710653b9d69cbd7819d6505bcd0e711b (patch)
tree0098aef092189ef6b689810213f3a07d47019011 /src/tss.c
parent7573e04403e93160e4f1e458b6bb653bf2cc3b32 (diff)
downloadidevicerestore-f94e162d710653b9d69cbd7819d6505bcd0e711b.tar.gz
idevicerestore-f94e162d710653b9d69cbd7819d6505bcd0e711b.tar.bz2
tss: add ApECID to Image4 tss request
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tss.c b/src/tss.c
index c7e5818..a4b8e63 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -88,6 +88,15 @@ int tss_request_add_ap_img4_tags(plist_t request, plist_t parameters) {
return -1;
}
+ /* ApECID */
+ node = plist_dict_get_item(parameters, "ApECID");
+ if (!node || plist_get_node_type(node) != PLIST_UINT) {
+ error("ERROR: Unable to find required ApECID in parameters\n");
+ return -1;
+ }
+ plist_dict_insert_item(request, "ApECID", plist_copy(node));
+ node = NULL;
+
/* ApNonce */
node = plist_dict_get_item(parameters, "ApNonce");
if (!node || plist_get_node_type(node) != PLIST_DATA) {