summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-10-04 13:06:20 +0200
committerGravatar Nikias Bassen2022-10-04 13:06:20 +0200
commita4f5a0c1a65c9df239a737c350d4723c2a8cbc55 (patch)
tree9598e14201636863d28f44af3f97a4af1a3e5be0 /src/idevicerestore.c
parentaa98e764bff59b45173a86d2587b59f5692982eb (diff)
downloadidevicerestore-a4f5a0c1a65c9df239a737c350d4723c2a8cbc55.tar.gz
idevicerestore-a4f5a0c1a65c9df239a737c350d4723c2a8cbc55.tar.bz2
img4: Add support for stitching with additional TBM data
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 308c6cb..62fbc09 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -2566,9 +2566,9 @@ int personalize_component(const char *component_name, const unsigned char* compo
unsigned char* stitched_component = NULL;
unsigned int stitched_component_size = 0;
- if (tss_response && tss_response_get_ap_img4_ticket(tss_response, &component_blob, &component_blob_size) == 0) {
+ if (tss_response && plist_dict_get_item(tss_response, "ApImg4Ticket")) {
/* stitch ApImg4Ticket into IMG4 file */
- img4_stitch_component(component_name, component_data, component_size, component_blob, component_blob_size, &stitched_component, &stitched_component_size);
+ img4_stitch_component(component_name, component_data, component_size, tss_response, &stitched_component, &stitched_component_size);
} else {
/* try to get blob for current component from tss response */
if (tss_response && tss_response_get_blob_by_entry(tss_response, component_name, &component_blob) < 0) {