summaryrefslogtreecommitdiff
path: root/libsylph/news.c
diff options
context:
space:
mode:
authorSimeon Simeonov2018-03-14 12:18:31 +0100
committerSimeon Simeonov2018-03-14 12:18:31 +0100
commitc94746703a3e0b59372b3bbf9355112c6a85d2dc (patch)
treec1248351adf00fdee3b0be4c61c0eac83fffffe6 /libsylph/news.c
parent43cd0bb654ae0225388678aa09798fc94be7a135 (diff)
Implement master password encrypted string tags
Diffstat (limited to 'libsylph/news.c')
-rw-r--r--libsylph/news.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libsylph/news.c b/libsylph/news.c
index b7a922a..e75976e 100644
--- a/libsylph/news.c
+++ b/libsylph/news.c
@@ -250,14 +250,12 @@ static Session *news_session_new_for_folder(Folder *folder)
250 ac = folder->account; 250 ac = folder->account;
251 if (ac->use_nntp_auth && ac->userid && ac->userid[0]) { 251 if (ac->use_nntp_auth && ac->userid && ac->userid[0]) {
252 userid = ac->userid; 252 userid = ac->userid;
253 if (ac->passwd && ac->passwd[0]) 253 if (ac->passwd && ac->passwd[0]) {
254 if (master_password_active()) { 254 /* TODO: check if format is correct */
255 passwd = decrypt_with_master_password(ac->passwd); 255 passwd = decrypt_with_master_password(ac->passwd);
256 } else { 256 } else {
257 passwd = g_strdup(ac->passwd);
258 }
259 else
260 passwd = input_query_password(ac->nntp_server, userid); 257 passwd = input_query_password(ac->nntp_server, userid);
258 }
261 } 259 }
262 260
263 if (ac->use_socks && ac->use_socks_for_recv && ac->proxy_host) { 261 if (ac->use_socks && ac->use_socks_for_recv && ac->proxy_host) {