summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 0e83133..f7ddaeb 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -102,7 +102,7 @@ static int write_host_id(char *host_id)
102 key_file = g_key_file_new(); 102 key_file = g_key_file_new();
103 103
104 /* Store in config file */ 104 /* Store in config file */
105 log_debug_msg("init_config_file(): setting hostID to %s\n", host_id); 105 log_debug_msg("%s: setting hostID to %s\n", __func__, host_id);
106 g_key_file_set_value(key_file, "Global", "HostID", host_id); 106 g_key_file_set_value(key_file, "Global", "HostID", host_id);
107 107
108 /* Write config file on disk */ 108 /* Write config file on disk */
@@ -152,7 +152,7 @@ char *get_host_id(void)
152 write_host_id(host_id); 152 write_host_id(host_id);
153 } 153 }
154 154
155 log_debug_msg("get_host_id(): Using %s as HostID\n", host_id); 155 log_debug_msg("%s: Using %s as HostID\n", __func__, host_id);
156 return host_id; 156 return host_id;
157} 157}
158 158
@@ -275,7 +275,6 @@ static iphone_error_t gen_keys_and_cert(void)
275 gnutls_x509_crt_set_expiration_time(root_cert, time(NULL) + (60 * 60 * 24 * 365 * 10)); 275 gnutls_x509_crt_set_expiration_time(root_cert, time(NULL) + (60 * 60 * 24 * 365 * 10));
276 gnutls_x509_crt_sign(root_cert, root_cert, root_privkey); 276 gnutls_x509_crt_sign(root_cert, root_cert, root_privkey);
277 277
278
279 gnutls_x509_crt_set_key(host_cert, host_privkey); 278 gnutls_x509_crt_set_key(host_cert, host_privkey);
280 gnutls_x509_crt_set_serial(host_cert, "\x00", 1); 279 gnutls_x509_crt_set_serial(host_cert, "\x00", 1);
281 gnutls_x509_crt_set_version(host_cert, 3); 280 gnutls_x509_crt_set_version(host_cert, 3);