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[]) {
56 gnutls_global_init(); 56 gnutls_global_init();
57 57
58 size_t size; 58 size_t size;
59 char* host_id = NULL; //"29942970-207913891623273984" 59 char* host_id = NULL;
60 gnutls_x509_privkey_t root_privkey; 60 gnutls_x509_privkey_t root_privkey;
61 gnutls_x509_privkey_t host_privkey; 61 gnutls_x509_privkey_t host_privkey;
62 62
@@ -73,6 +73,7 @@ int main(int argc, char *argv[]) {
73 //TODO 73 //TODO
74 host_id = lockdownd_generate_hostid(); 74 host_id = lockdownd_generate_hostid();
75 if (debug) printf("HostID: %s\n", host_id); 75 if (debug) printf("HostID: %s\n", host_id);
76
76 /* generate keys */ 77 /* generate keys */
77 gnutls_x509_privkey_generate(root_privkey, GNUTLS_PK_RSA, 2048, 0); 78 gnutls_x509_privkey_generate(root_privkey, GNUTLS_PK_RSA, 2048, 0);
78 gnutls_x509_privkey_generate(host_privkey, GNUTLS_PK_RSA, 2048, 0); 79 gnutls_x509_privkey_generate(host_privkey, GNUTLS_PK_RSA, 2048, 0);
@@ -132,7 +133,6 @@ int main(int argc, char *argv[]) {
132 133
133 134
134 /* store values in config file */ 135 /* store values in config file */
135
136 init_config_file(host_id, &root_key_pem, &host_key_pem, &root_cert_pem, &host_cert_pem); 136 init_config_file(host_id, &root_key_pem, &host_key_pem, &root_cert_pem, &host_cert_pem);
137 137
138 gnutls_free(root_key_pem.data); 138 gnutls_free(root_key_pem.data);