summaryrefslogtreecommitdiffstats
path: root/src/lockdown.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-12-07 18:58:55 +0100
committerGravatar Matt Colyer2009-12-07 19:46:43 -0800
commitb9ecd70c30ac1fd7024cadfcda9c7be1d1f7f44f (patch)
tree0d4b425c9d4293f86224612c5d1fb29b99199082 /src/lockdown.h
parent62c23c1ccafedab1bf8bed2fb0e511462b8ab4cc (diff)
downloadlibimobiledevice-b9ecd70c30ac1fd7024cadfcda9c7be1d1f7f44f.tar.gz
libimobiledevice-b9ecd70c30ac1fd7024cadfcda9c7be1d1f7f44f.tar.bz2
cache device uuid in client struct
When accessing/storing key info with userprefs, a device uuid is required that makes it possible to distinguish between different devices. On execution of lockdownd_client_new, the uuid is queried via lockdown and now stored in the client struct for later reuse. This patch also removes the uuid parameter from lockdownd_pair().
Diffstat (limited to 'src/lockdown.h')
-rw-r--r--src/lockdown.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lockdown.h b/src/lockdown.h
index 49b467f..931623a 100644
--- a/src/lockdown.h
+++ b/src/lockdown.h
@@ -33,6 +33,7 @@ struct lockdownd_client_int {
gnutls_certificate_credentials_t ssl_certificate;
int in_SSL;
char *session_id;
+ char *uuid;
};
lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key);