summaryrefslogtreecommitdiffstats
path: root/src/dfu.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-06-20 14:14:43 +0200
committerGravatar Nikias Bassen2022-06-20 14:14:43 +0200
commitaa25a29e1cf7bc81450a85fdc3320c48c2d95afb (patch)
treef35ca55518affa72cf50e26ae032d3fb4da79ff8 /src/dfu.h
parentf6c3d53006733e1f5bae4b073d4e7f19cefd0870 (diff)
downloadidevicerestore-aa25a29e1cf7bc81450a85fdc3320c48c2d95afb.tar.gz
idevicerestore-aa25a29e1cf7bc81450a85fdc3320c48c2d95afb.tar.bz2
Remove more serial number checks, and get ECID early on in all modes
Some devices seem to not have a serial number, usually in restore mode, which will cause the restore operation to fail since we specifically check for it. An earlier commit already removed the actual comparison in favor of comparing the ECID, but some checks would still result in restore failures as it can't retrieve the serial number on said devices at all. This commit also makes sure to get the ECID in all modes as early as possible and removes all the helper functions for it since they are not needed anymore.
Diffstat (limited to 'src/dfu.h')
-rw-r--r--src/dfu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dfu.h b/src/dfu.h
index f501531..6712442 100644
--- a/src/dfu.h
+++ b/src/dfu.h
@@ -43,7 +43,6 @@ irecv_device_t dfu_get_irecv_device(struct idevicerestore_client_t* client);
int dfu_send_buffer(struct idevicerestore_client_t* client, unsigned char* buffer, unsigned int size);
int dfu_send_component(struct idevicerestore_client_t* client, plist_t build_identity, const char* component);
int dfu_get_cpid(struct idevicerestore_client_t* client, unsigned int* cpid);
-int dfu_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid);
int dfu_is_image4_supported(struct idevicerestore_client_t* client);
int dfu_get_ap_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size);
int dfu_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size);