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/main.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/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -31,10 +31,12 @@ #include "plist.h" #include "lockdown.h" #include "AFC.h" +#include "userpref.h" int debug = 1; int main(int argc, char *argv[]) { + char* host_id = NULL; iPhone *phone = get_iPhone(); if (argc > 1 && !strcasecmp(argv[1], "--debug")) debug = 1; else debug = 0; @@ -51,9 +53,12 @@ int main(int argc, char *argv[]) { } printf("Now starting SSL.\n"); -// if (!lockdownd_start_SSL_session(control, "29942970-207913891623273984")) { + host_id = get_host_id(); + if (host_id && !lockdownd_start_SSL_session(control, host_id)) { printf("Error happened in GnuTLS...\n"); } else { + free(host_id); + host_id = NULL; printf("... we're in SSL with the phone... !?\n"); port = lockdownd_start_service(control, "com.apple.afc"); } |