Mercurial > pidgin.yaz
comparison libpurple/protocols/silc/util.c @ 32767:2ec94166be43
On the way to hiding the PurpleConnection struct.
* Added purple_connection_get_flags() and purple_connection_set_flags()
* Use purple_connection_ accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 18:47:48 +0000 |
parents | a5b556ac1de5 |
children | 6135b24cdc8a |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
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); |