diff options
author | Martin Szulecki | 2010-07-09 17:02:50 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-09 17:02:50 +0200 |
commit | f90bdde9fc347f02a857cc26f14c4d2d5c55f64e (patch) | |
tree | 98cbd5e8422e5bfbfde00425eea29eb15690ba1a /src/idevicerestore.c | |
parent | 232e116e48612ffec0351704a431f4174544887e (diff) | |
download | idevicerestore-f90bdde9fc347f02a857cc26f14c4d2d5c55f64e.tar.gz idevicerestore-f90bdde9fc347f02a857cc26f14c4d2d5c55f64e.tar.bz2 |
Remove leftover of extract_manifest helper
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 9b0b98e..778673f 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -461,29 +461,6 @@ int get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) { return 0; } -int extract_buildmanifest(struct idevicerestore_client_t* client, const char* ipsw, plist_t* buildmanifest) { - int size = 0; - char* data = NULL; - int device = client->device->index; - - /* older devices don't require personalized firmwares and use a BuildManifesto.plist */ - if (ipsw_extract_to_memory(ipsw, "BuildManifesto.plist", &data, &size) == 0) { - plist_from_xml(data, size, buildmanifest); - return 0; - } - - data = NULL; - size = 0; - - /* whereas newer devices do not require personalized firmwares and use a BuildManifest.plist */ - if (ipsw_extract_to_memory(ipsw, "BuildManifest.plist", &data, &size) == 0) { - plist_from_xml(data, size, buildmanifest); - return 0; - } - - return -1; -} - plist_t get_build_identity(struct idevicerestore_client_t* client, plist_t buildmanifest, uint32_t identity) { // fetch build identities array from BuildManifest plist_t build_identities_array = plist_dict_get_item(buildmanifest, "BuildIdentities"); |