libpurple/protocols/silc/util.c

changeset 32678
01f6312a4a7b
parent 32157
39ba2e2492ee
child 32683
5376a35d461a
equal deleted inserted replaced
32677:52d651b3b98f 32678:01f6312a4a7b
196 * Check Public and Private keys 196 * Check Public and Private keys
197 */ 197 */
198 g_snprintf(pkd, sizeof(pkd), "%s" G_DIR_SEPARATOR_S "public_key.pub", silcpurple_silcdir()); 198 g_snprintf(pkd, sizeof(pkd), "%s" G_DIR_SEPARATOR_S "public_key.pub", silcpurple_silcdir());
199 g_snprintf(prd, sizeof(prd), "%s" G_DIR_SEPARATOR_S "private_key.prv", silcpurple_silcdir()); 199 g_snprintf(prd, sizeof(prd), "%s" G_DIR_SEPARATOR_S "private_key.prv", silcpurple_silcdir());
200 g_snprintf(file_public_key, sizeof(file_public_key) - 1, "%s", 200 g_snprintf(file_public_key, sizeof(file_public_key) - 1, "%s",
201 purple_account_get_string(gc->account, "public-key", pkd)); 201 purple_account_get_string(purple_connection_get_account(gc), "public-key", pkd));
202 g_snprintf(file_private_key, sizeof(file_public_key) - 1, "%s", 202 g_snprintf(file_private_key, sizeof(file_public_key) - 1, "%s",
203 purple_account_get_string(gc->account, "private-key", prd)); 203 purple_account_get_string(purple_connection_get_account(gc), "private-key", prd));
204 204
205 if ((g_stat(file_public_key, &st)) == -1) { 205 if ((g_stat(file_public_key, &st)) == -1) {
206 /* If file doesn't exist */ 206 /* If file doesn't exist */
207 if (errno == ENOENT) { 207 if (errno == ENOENT) {
208 purple_connection_update_progress(gc, _("Creating SILC key pair..."), 1, 5); 208 purple_connection_update_progress(gc, _("Creating SILC key pair..."), 1, 5);

mercurial