diff options
author | Jonathan Beck | 2008-07-31 21:54:16 -0700 |
---|---|---|
committer | Matt Colyer | 2008-07-31 21:54:16 -0700 |
commit | d05ae226356cc674a055c784a4b9b75825162ba6 (patch) | |
tree | 9cfff8c5e5f90c4d5b0d7e36a2b1ac5b78a4baf9 /src/lockdown.c | |
parent | bbd289b44c94aeb327675352d187209639e64baa (diff) | |
download | libplist-d05ae226356cc674a055c784a4b9b75825162ba6.tar.gz libplist-d05ae226356cc674a055c784a4b9b75825162ba6.tar.bz2 |
Added a way to load HostID from a user specific config file.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.c')
-rw-r--r-- | src/lockdown.c | 12 |
1 files changed, 9 insertions, 3 deletions
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 <errno.h> #include <string.h> @@ -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; |