summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-18 22:51:28 +0100
committerGravatar Martin Szulecki2013-11-18 22:51:28 +0100
commit78a239bf2c64c9e37c21b2ddabbc0d76ec599afb (patch)
tree46597ee9b86be20f315d6b271fbd79ccdc835594 /src/idevicerestore.c
parent5a6dcf255deb905e23fbedbb6dcd1e3eeabd5825 (diff)
downloadidevicerestore-78a239bf2c64c9e37c21b2ddabbc0d76ec599afb.tar.gz
idevicerestore-78a239bf2c64c9e37c21b2ddabbc0d76ec599afb.tar.bz2
Split nonce retrieval into ApNonce and SepNonce for DFU and Recovery modes
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index d1f3c00..9bf37e0 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1273,14 +1273,14 @@ int get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce,
break;
case MODE_DFU:
info("in dfu mode... ");
- if (dfu_get_nonce(client, nonce, nonce_size) < 0) {
+ if (dfu_get_ap_nonce(client, nonce, nonce_size) < 0) {
info("failed\n");
return -1;
}
break;
case MODE_RECOVERY:
info("in recovery mode... ");
- if (recovery_get_nonce(client, nonce, nonce_size) < 0) {
+ if (recovery_get_ap_nonce(client, nonce, nonce_size) < 0) {
info("failed\n");
return -1;
}