From d05ae226356cc674a055c784a4b9b75825162ba6 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Thu, 31 Jul 2008 21:54:16 -0700 Subject: Added a way to load HostID from a user specific config file. Signed-off-by: Matt Colyer --- src/lockdown.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lockdown.c') diff --git a/src/lockdown.c b/src/lockdown.c index 452f036..c1b846d 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -21,6 +21,7 @@ #include "usbmux.h" #include "iphone.h" #include "lockdown.h" +#include "userpref.h" #include #include @@ -318,12 +319,17 @@ ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_ int lockdownd_start_service(lockdownd_client *control, const char *service) { if (!control) return 0; - if (!control->in_SSL && !lockdownd_start_SSL_session(control, "29942970-207913891623273984")) return 0; - + + char* host_id = get_host_id(); + if (host_id && !control->in_SSL && !lockdownd_start_SSL_session(control, host_id)) return 0; + char *XML_query, **dictionary; uint32 length, i = 0, port = 0; uint8 result = 0; - + + free(host_id); + host_id = NULL; + xmlDocPtr plist = new_plist(); xmlNode *dict = add_child_to_plist(plist, "dict", "\n", NULL, 0); xmlNode *key; -- cgit v1.1-32-gdbae