diff options
Diffstat (limited to 'src/initconf.c')
| -rw-r--r-- | src/initconf.c | 4 |
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); |
