summaryrefslogtreecommitdiffstats
path: root/src/initconf.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-13 23:21:04 -0700
committerGravatar Matt Colyer2008-08-13 23:21:04 -0700
commitb39a0c05e41f5dca5931cd3d550ef0c2a4142e4b (patch)
treef765ebe786886ded0a74521c9fa1c13b32e2837b /src/initconf.c
parentf281e24cca43149db1f6077a8b42e456393a8856 (diff)
downloadlibimobiledevice-b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b.tar.gz
libimobiledevice-b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b.tar.bz2
Minor cleanups, refactored and commented iphone.c.
Diffstat (limited to 'src/initconf.c')
-rw-r--r--src/initconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/initconf.c b/src/initconf.c
index 0149ac9..795b4ac 100644
--- a/src/initconf.c
+++ b/src/initconf.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[]) {
gnutls_global_init();
size_t size;
- char* host_id = NULL; //"29942970-207913891623273984"
+ char* host_id = NULL;
gnutls_x509_privkey_t root_privkey;
gnutls_x509_privkey_t host_privkey;
@@ -73,6 +73,7 @@ int main(int argc, char *argv[]) {
//TODO
host_id = lockdownd_generate_hostid();
if (debug) printf("HostID: %s\n", host_id);
+
/* generate keys */
gnutls_x509_privkey_generate(root_privkey, GNUTLS_PK_RSA, 2048, 0);
gnutls_x509_privkey_generate(host_privkey, GNUTLS_PK_RSA, 2048, 0);
@@ -132,7 +133,6 @@ int main(int argc, char *argv[]) {
/* store values in config file */
-
init_config_file(host_id, &root_key_pem, &host_key_pem, &root_cert_pem, &host_cert_pem);
gnutls_free(root_key_pem.data);