summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-05-05 04:01:12 +0200
committerGravatar Nikias Bassen2024-05-05 04:01:12 +0200
commite6d8c0b9d53e5f3c9100cfc8c88626be45c98b85 (patch)
treead589b4a6e8a7ae9380890388cf61497933e2314 /src/normal.c
parent0548d9f20d2937d1e122d0b405cb60219ec4fa0f (diff)
downloadidevicerestore-master.tar.gz
idevicerestore-master.tar.bz2
Updated to use libplist 2.5.0 APIHEADmaster
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/normal.c b/src/normal.c
index efe8f03..8070982 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -333,7 +333,7 @@ static int normal_get_nonce_by_key(struct idevicerestore_client_t* client, const
}
uint64_t n_size = 0;
- plist_get_data_val(nonce_node, (char**)nonce, &n_size);
+ plist_get_data_val(nonce_node, nonce, &n_size);
*nonce_size = (unsigned int)n_size;
plist_free(nonce_node);
@@ -462,13 +462,13 @@ int normal_handle_create_stashbag(struct idevicerestore_client_t* client, plist_
} else {
plist_t node;
- if (_plist_dict_get_bool(pl, "Skip")) {
+ if (plist_dict_get_bool(pl, "Skip")) {
result = 0;
info("Device does not require stashbag.\n");
break;
}
- if (_plist_dict_get_bool(pl, "ShowDialog")) {
+ if (plist_dict_get_bool(pl, "ShowDialog")) {
info("Device requires stashbag.\n");
printf("******************************************************************************\n"
"* Please enter your passcode on the device. The device will store a token *\n"
@@ -491,13 +491,13 @@ int normal_handle_create_stashbag(struct idevicerestore_client_t* client, plist_
plist_free(pl);
break;
}
- if (_plist_dict_get_bool(pl, "Timeout")) {
+ if (plist_dict_get_bool(pl, "Timeout")) {
error("ERROR: Timeout while waiting for user to enter passcode.\n");
result = -2;
plist_free(pl);
break;
}
- if (_plist_dict_get_bool(pl, "HideDialog")) {
+ if (plist_dict_get_bool(pl, "HideDialog")) {
plist_free(pl);
/* hide dialog */
result = 1;
@@ -588,7 +588,7 @@ int normal_handle_commit_stashbag(struct idevicerestore_client_t* client, plist_
}
error("ERROR: Could not commit stashbag: %s\n", (strval) ? strval : "(Unknown error)");
free(strval);
- } else if (_plist_dict_get_bool(pl, "StashbagCommitComplete")) {
+ } else if (plist_dict_get_bool(pl, "StashbagCommitComplete")) {
info("Stashbag committed!\n");
result = 0;
} else {