summaryrefslogtreecommitdiff
path: root/libsylph/account.c
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-27 21:52:12 +0100
committerSimeon Simeonov2018-02-27 21:52:12 +0100
commit1bb2a9d33e8cd193c21f9995fb7852c7562cafcf (patch)
treebf54cba95a7b7afa68b33f8cb40b53d351b880ff /libsylph/account.c
parent3f7a3add4dc0814e01c3032d73a4cdd29372f8d4 (diff)
First prototype
Diffstat (limited to 'libsylph/account.c')
-rw-r--r--libsylph/account.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsylph/account.c b/libsylph/account.c
index 2431bf3..de0d6f0 100644
--- a/libsylph/account.c
+++ b/libsylph/account.c
@@ -51,6 +51,10 @@ void account_read_config_all(void)
51 FILE *fp; 51 FILE *fp;
52 gchar buf[PREFSBUFSIZE]; 52 gchar buf[PREFSBUFSIZE];
53 PrefsAccount *ac_prefs; 53 PrefsAccount *ac_prefs;
54#if USE_SSL
55 gchar *master_password;
56 master_password = input_query_password("Sylpheed", "Master password");
57#endif
54 58
55 debug_print(_("Reading all config for each account...\n")); 59 debug_print(_("Reading all config for each account...\n"));
56 60
@@ -79,6 +83,9 @@ void account_read_config_all(void)
79 for (cur = ac_label_list; cur != NULL; cur = cur->next) { 83 for (cur = ac_label_list; cur != NULL; cur = cur->next) {
80 ac_prefs = prefs_account_new(); 84 ac_prefs = prefs_account_new();
81 prefs_account_read_config(ac_prefs, (gchar *)cur->data); 85 prefs_account_read_config(ac_prefs, (gchar *)cur->data);
86#if USE_SSL
87 ac_prefs->master_password = master_password;
88#endif
82 account_list = g_list_append(account_list, ac_prefs); 89 account_list = g_list_append(account_list, ac_prefs);
83 if (ac_prefs->is_default) 90 if (ac_prefs->is_default)
84 cur_account = ac_prefs; 91 cur_account = ac_prefs;