summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-09-20 22:08:45 +0200
committerGravatar Martin Szulecki2012-11-07 22:21:36 +0100
commiteaa265ea5eb45ab2a8b8aad6e756e083b1aef23c (patch)
treedec16fe16da79ae020fa0a513173f49dbde174c0 /src
parent85a62da6ab6f0181d746ea6d83cbd07aec3a7937 (diff)
downloadidevicerestore-eaa265ea5eb45ab2a8b8aad6e756e083b1aef23c.tar.gz
idevicerestore-eaa265ea5eb45ab2a8b8aad6e756e083b1aef23c.tar.bz2
idevicerestore: Enable getting nonce from device in normal mode
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 0749fe0..42a1faf 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1373,8 +1373,10 @@ int get_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int
switch (client->mode->index) {
case MODE_NORMAL:
- error("ERROR: Can't get nonce in Normal mode\n");
- return -1;
+ if (normal_get_nonce(client, nonce, nonce_size) < 0) {
+ return -1;
+ }
+ break;
case MODE_DFU:
if (dfu_get_nonce(client, nonce, nonce_size) < 0) {
return -1;