summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-19 21:38:31 +0100
committerGravatar Nikias Bassen2013-11-19 21:38:31 +0100
commit3f8dea9bd12c4b4c52224b1a84835fa56df53fb2 (patch)
tree4a5ee3b9be4d6a521899e4342c49e9decb1c5a08 /src/common.h
parentaee53bef0385841109432948dbf814907a7d2dca (diff)
downloadidevicerestore-3f8dea9bd12c4b4c52224b1a84835fa56df53fb2.tar.gz
idevicerestore-3f8dea9bd12c4b4c52224b1a84835fa56df53fb2.tar.bz2
Add helper function to check if device supports image4 format
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index a634e6f..2ea4a91 100644
--- a/src/common.h
+++ b/src/common.h
@@ -42,6 +42,13 @@ extern "C" {
#define FLAG_QUIT 1
+#define CPFM_FLAG_SECURITY_MODE 1 << 0
+#define CPFM_FLAG_PRODUCTION_MODE 1 << 1
+
+#define IBOOT_FLAG_IMAGE4_AWARE 1 << 2
+#define IBOOT_FLAG_EFFECTIVE_SECURITY_MODE 1 << 3
+#define IBOOT_FLAG_EFFECTIVE_PRODUCTION_MODE 1 << 4
+
struct dfu_client_t;
struct normal_client_t;
struct restore_client_t;
@@ -70,6 +77,7 @@ struct idevicerestore_client_t {
uint64_t ecid;
unsigned char* nonce;
int nonce_size;
+ int image4supported;
char* udid;
char* srnm;
char* ipsw;