summaryrefslogtreecommitdiff
path: root/libsylph/prefs_account.c
diff options
context:
space:
mode:
authorSimeon Simeonov2018-04-13 15:24:01 +0200
committerSimeon Simeonov2018-04-13 15:24:01 +0200
commit46275eef3de4e025b5657e67e142fc58125779be (patch)
tree2c4e86aa5f7e286d64a74a35d749c5e381110cad /libsylph/prefs_account.c
parent42772c59f490d54d9766e1853daa35c08298f985 (diff)
Add support for auto-unloading av the master password
Diffstat (limited to 'libsylph/prefs_account.c')
-rw-r--r--libsylph/prefs_account.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsylph/prefs_account.c b/libsylph/prefs_account.c
index fc4d8f1..54cbc89 100644
--- a/libsylph/prefs_account.c
+++ b/libsylph/prefs_account.c
@@ -239,6 +239,7 @@ void prefs_account_read_config(PrefsAccount *ac_prefs, const gchar *label)
239 label); 239 label);
240 tmp_str = ac_prefs->passwd; 240 tmp_str = ac_prefs->passwd;
241 ac_prefs->passwd = encrypt_with_master_password(ac_prefs->passwd); 241 ac_prefs->passwd = encrypt_with_master_password(ac_prefs->passwd);
242 cleanse_buffer(tmp_str, strlen(tmp_str));
242 g_free(tmp_str); 243 g_free(tmp_str);
243 } 244 }
244 245
@@ -251,6 +252,7 @@ void prefs_account_read_config(PrefsAccount *ac_prefs, const gchar *label)
251 tmp_str = ac_prefs->smtp_passwd; 252 tmp_str = ac_prefs->smtp_passwd;
252 ac_prefs->smtp_passwd = encrypt_with_master_password( 253 ac_prefs->smtp_passwd = encrypt_with_master_password(
253 ac_prefs->smtp_passwd); 254 ac_prefs->smtp_passwd);
255 cleanse_buffer(tmp_str, strlen(tmp_str));
254 g_free(tmp_str); 256 g_free(tmp_str);
255 } 257 }
256 258