summaryrefslogtreecommitdiffstats
path: root/src/idevice.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-08-13 00:12:16 +0200
committerGravatar Nikias Bassen2017-08-13 00:12:16 +0200
commit5a85432719fb3d18027d528f87d2a44b76fd3e12 (patch)
tree3b4ee4ae280fd0166bd8e5b6d0e03db293ace590 /src/idevice.c
parent0dbe76b4e75eef5d0e033aac99409fb6df36c512 (diff)
downloadlibimobiledevice-5a85432719fb3d18027d528f87d2a44b76fd3e12.tar.gz
libimobiledevice-5a85432719fb3d18027d528f87d2a44b76fd3e12.tar.bz2
lockdown: Don't explicitly validate pairing unless we're dealing with an older device
On newer iOS version, ValidatePair is not mandatory to gain trusted host status. Starting with iOS 11, the ValidatePair request has been removed from lockdownd and will throw an error. This commit adds a version check so that ValidatePair is only called on devices prior iOS 7.
Diffstat (limited to 'src/idevice.c')
-rw-r--r--src/idevice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 21b10ba..ead9b86 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -256,6 +256,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char
dev->udid = strdup(muxdev.udid);
dev->conn_type = CONNECTION_USBMUXD;
dev->conn_data = (void*)(long)muxdev.handle;
+ dev->version = 0;
*device = dev;
return IDEVICE_E_SUCCESS;
}