summaryrefslogtreecommitdiffstats
path: root/src/ipsw.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-04-05 01:43:29 +0200
committerGravatar Nikias Bassen2022-04-05 01:43:29 +0200
commite28d96d4e976ecb19a4d2a094609f122e08ea8fa (patch)
tree0649313d16b2e519dfaacd4ba6224d475e33800f /src/ipsw.c
parentd0a61eb39fc79e6ebc7e9a91188213e742b048dd (diff)
downloadidevicerestore-e28d96d4e976ecb19a4d2a094609f122e08ea8fa.tar.gz
idevicerestore-e28d96d4e976ecb19a4d2a094609f122e08ea8fa.tar.bz2
ipsw: Use libplist's new plist_from_json API
Diffstat (limited to 'src/ipsw.c')
-rw-r--r--src/ipsw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index da00a6e..03e10c2 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -45,13 +45,13 @@
#endif
#include <libimobiledevice-glue/termcolors.h>
+#include <plist/plist.h>
#include "ipsw.h"
#include "locking.h"
#include "download.h"
#include "common.h"
#include "idevicerestore.h"
-#include "json_plist.h"
#define BUFSIZE 0x100000
@@ -892,7 +892,7 @@ int ipsw_get_signed_firmwares(const char* product, plist_t* firmwares)
error("ERROR: Download from %s failed.\n", url);
return -1;
}
- dict = json_to_plist(jdata);
+ plist_from_json(jdata, jsize, &dict);
free(jdata);
if (!dict || plist_get_node_type(dict) != PLIST_DICT) {
error("ERROR: Failed to parse json data.\n");