diff options
author | Nikias Bassen | 2022-04-05 01:43:29 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-04-05 01:43:29 +0200 |
commit | e28d96d4e976ecb19a4d2a094609f122e08ea8fa (patch) | |
tree | 0649313d16b2e519dfaacd4ba6224d475e33800f /src/ipsw.c | |
parent | d0a61eb39fc79e6ebc7e9a91188213e742b048dd (diff) | |
download | idevicerestore-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |