From 1bb2a9d33e8cd193c21f9995fb7852c7562cafcf Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 27 Feb 2018 21:52:12 +0100 Subject: First prototype --- libsylph/account.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libsylph/account.c') 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) FILE *fp; gchar buf[PREFSBUFSIZE]; PrefsAccount *ac_prefs; +#if USE_SSL + gchar *master_password; + master_password = input_query_password("Sylpheed", "Master password"); +#endif debug_print(_("Reading all config for each account...\n")); @@ -79,6 +83,9 @@ void account_read_config_all(void) for (cur = ac_label_list; cur != NULL; cur = cur->next) { ac_prefs = prefs_account_new(); prefs_account_read_config(ac_prefs, (gchar *)cur->data); +#if USE_SSL + ac_prefs->master_password = master_password; +#endif account_list = g_list_append(account_list, ac_prefs); if (ac_prefs->is_default) cur_account = ac_prefs; -- cgit v1.3