From 8407a14a1884c386cf5277dec53ecb067c34fac2 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 18 Nov 2013 18:17:31 +0100 Subject: normal: Split normal_get_nonce() into ApNonce and SEPNonce getters --- src/idevicerestore.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 9717676..0cd5a14 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -562,7 +562,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) unsigned char* nonce = NULL; int nonce_size = 0; int nonce_changed = 0; - if (get_nonce(client, &nonce, &nonce_size) < 0) { + if (get_ap_nonce(client, &nonce, &nonce_size) < 0) { /* the first nonce request with older firmware releases can fail and it's OK */ info("NOTE: Unable to get nonce from device\n"); } @@ -811,7 +811,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) unsigned char* nonce = NULL; int nonce_size = 0; int nonce_changed = 0; - if (get_nonce(client, &nonce, &nonce_size) < 0) { + if (get_ap_nonce(client, &nonce, &nonce_size) < 0) { error("ERROR: Unable to get nonce from device!\n"); recovery_send_reset(client); if (delete_fs && filesystem) @@ -1257,16 +1257,16 @@ int get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) { return 0; } -int get_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) { +int get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size) { *nonce = NULL; *nonce_size = 0; - info("Getting nonce "); + info("Getting ApNonce "); switch (client->mode->index) { case MODE_NORMAL: info("in normal mode... "); - if (normal_get_nonce(client, nonce, nonce_size) < 0) { + if (normal_get_ap_nonce(client, nonce, nonce_size) < 0) { info("failed\n"); return -1; } -- cgit v1.1-32-gdbae