summaryrefslogtreecommitdiffstats
path: root/src/lockdown.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-12-07 18:13:21 +0100
committerGravatar Matt Colyer2009-12-07 19:45:07 -0800
commitea45a41a7987ab1d05e2160ce831d2fcff695077 (patch)
tree882e6070ec9703f87dc7b6d0117b30a2e712b99f /src/lockdown.h
parent213025d04ae8788be393b63e245f2805386f7f8a (diff)
downloadlibimobiledevice-ea45a41a7987ab1d05e2160ce831d2fcff695077.tar.gz
libimobiledevice-ea45a41a7987ab1d05e2160ce831d2fcff695077.tar.bz2
better handling of session_id
This will change session_id out of the lockdownd_client_int struct to a pointer instead of using a buffer of fixed size. The session_id is allocated anyway by libplist when reading it from the plist received from the device, so why don't just use it? [#94 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.h')
-rw-r--r--src/lockdown.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lockdown.h b/src/lockdown.h
index 9312867..49b467f 100644
--- a/src/lockdown.h
+++ b/src/lockdown.h
@@ -32,7 +32,7 @@ struct lockdownd_client_int {
gnutls_session_t ssl_session;
gnutls_certificate_credentials_t ssl_certificate;
int in_SSL;
- char session_id[40];
+ char *session_id;
};
lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key);