summaryrefslogtreecommitdiffstats
path: root/src/ipsw.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-02-02 00:23:55 +0100
committerGravatar Nikias Bassen2019-02-02 00:23:55 +0100
commit519af01f7dcb448b59ca13bdc1a1b060484f41ec (patch)
tree3fc370ff01e8daefaa222884848e3d93142cd3db /src/ipsw.h
parent65572cab6baf92cbe4d43fcb0c7a44bc87d95b85 (diff)
downloadidevicerestore-519af01f7dcb448b59ca13bdc1a1b060484f41ec.tar.gz
idevicerestore-519af01f7dcb448b59ca13bdc1a1b060484f41ec.tar.bz2
Use ipsw.me API to allow selection and download of any signed firmware version when using --latest
Diffstat (limited to 'src/ipsw.h')
-rw-r--r--src/ipsw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipsw.h b/src/ipsw.h
index c4a1a4e..1c19e92 100644
--- a/src/ipsw.h
+++ b/src/ipsw.h
@@ -47,6 +47,9 @@ int ipsw_extract_build_manifest(const char* ipsw, plist_t* buildmanifest, int *t
int ipsw_extract_restore_plist(const char* ipsw, plist_t* restore_plist);
void ipsw_free_file(ipsw_file* file);
+int ipsw_get_signed_firmwares(const char* product, plist_t* firmwares);
+int ipsw_download_fw(const char *fwurl, unsigned char* isha1, const char* todir, char** ipswfile);
+
int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl, unsigned char* sha1buf);
int ipsw_download_latest_fw(plist_t version_data, const char* product, const char* todir, char** ipswfile);