summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-09-29 22:59:25 +0200
committerGravatar Nikias Bassen2018-09-29 22:59:25 +0200
commitf1ee0fd8b2b1dd65c64f5a67e208efc708295caa (patch)
treea12c295d65fd88e5452aeff813daba83a493241b /src
parent05fefa6aeff45fc84665e8427444295d8414df98 (diff)
downloadlibimobiledevice-f1ee0fd8b2b1dd65c64f5a67e208efc708295caa.tar.gz
libimobiledevice-f1ee0fd8b2b1dd65c64f5a67e208efc708295caa.tar.bz2
lockdown: Pass along usbmux device id when saving pair records
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c3
-rw-r--r--src/lockdown.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 9d6d17d..2492897 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -668,6 +668,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new(idevice_t device, lo
client_loc->parent = plistclient;
client_loc->ssl_enabled = 0;
client_loc->session_id = NULL;
+ client_loc->mux_id = device->mux_id;
if (idevice_get_udid(device, &client_loc->udid) != IDEVICE_E_SUCCESS) {
debug_info("failed to get device udid.");
@@ -1001,7 +1002,7 @@ static lockdownd_error_t lockdownd_do_pair(lockdownd_client_t client, lockdownd_
wifi_node = NULL;
}
- userpref_save_pair_record(client->udid, pair_record_plist);
+ userpref_save_pair_record(client->udid, client->mux_id, pair_record_plist);
}
}
} else {
diff --git a/src/lockdown.h b/src/lockdown.h
index ab63e86..bf595df 100644
--- a/src/lockdown.h
+++ b/src/lockdown.h
@@ -34,6 +34,7 @@ struct lockdownd_client_private {
char *session_id;
char *udid;
char *label;
+ uint32_t mux_id;
};
#endif