summaryrefslogtreecommitdiffstats
path: root/src/img3.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 21:56:09 +0100
committerGravatar Nikias Bassen2012-02-02 21:56:09 +0100
commitdc69608d4131a3d8bfe7710ed88ea679087b037f (patch)
tree6535feef174a33807b5e3e704b1442aae9184c22 /src/img3.h
parent4852a4301af71a99f3ba7e0bc23599a8ea763cc6 (diff)
downloadidevicerestore-dc69608d4131a3d8bfe7710ed88ea679087b037f.tar.gz
idevicerestore-dc69608d4131a3d8bfe7710ed88ea679087b037f.tar.bz2
img3: fixed to properly support new img3 format
Diffstat (limited to 'src/img3.h')
-rw-r--r--src/img3.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/img3.h b/src/img3.h
index cb042b5..b2a6a5c 100644
--- a/src/img3.h
+++ b/src/img3.h
@@ -72,17 +72,25 @@ typedef struct {
typedef struct {
char* data;
img3_header* header;
- img3_element* type_element;
+ int num_elements;
+ img3_element* elements[16];
+ int idx_ecid_element;
+ int idx_shsh_element;
+ int idx_cert_element;
+/* img3_element* type_element;
img3_element* data_element;
img3_element* vers_element;
img3_element* sepo_element;
img3_element* bord_element;
+ img3_element* sepo2_element;
+ img3_element* chip_element;
+ img3_element* bord2_element;
img3_element* kbag1_element;
img3_element* kbag2_element;
img3_element* ecid_element;
img3_element* shsh_element;
img3_element* cert_element;
- img3_element* unkn_element;
+ img3_element* unkn_element;*/
} img3_file;
void img3_free(img3_file* image);