diff options
author | Martin Szulecki | 2012-09-20 22:08:45 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-11-07 22:21:36 +0100 |
commit | eaa265ea5eb45ab2a8b8aad6e756e083b1aef23c (patch) | |
tree | dec16fe16da79ae020fa0a513173f49dbde174c0 /src/idevicerestore.c | |
parent | 85a62da6ab6f0181d746ea6d83cbd07aec3a7937 (diff) | |
download | idevicerestore-eaa265ea5eb45ab2a8b8aad6e756e083b1aef23c.tar.gz idevicerestore-eaa265ea5eb45ab2a8b8aad6e756e083b1aef23c.tar.bz2 |
idevicerestore: Enable getting nonce from device in normal mode
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 6 |
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; |