summaryrefslogtreecommitdiff
path: root/libsylph/pop.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/pop.c
parent43cd0bb654ae0225388678aa09798fc94be7a135 (diff)
Implement master password encrypted string tags
Diffstat (limited to 'libsylph/pop.c')
-rw-r--r--libsylph/pop.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c
index a387f5e..96f347e 100644
--- a/libsylph/pop.c
+++ b/libsylph/pop.c
@@ -438,14 +438,10 @@ Session *pop3_session_new(PrefsAccount *account)
438 session->error_msg = NULL; 438 session->error_msg = NULL;
439 439
440 session->user = g_strdup(account->userid); 440 session->user = g_strdup(account->userid);
441 if (master_password_active()) { 441 /* TODO: check format */
442 session->pass = account->passwd ? decrypt_with_master_password( 442 session->pass = account->passwd ? decrypt_with_master_password(
443 account->passwd) : account->tmp_pass ? g_strdup( 443 account->passwd) : account->tmp_pass ? g_strdup(
444 account->tmp_pass) : NULL; 444 account->tmp_pass) : NULL;
445 } else {
446 session->pass = account->passwd ? g_strdup(account->passwd) :
447 account->tmp_pass ? g_strdup(account->tmp_pass) : NULL;
448 }
449 445
450 SESSION(session)->server = g_strdup(account->recv_server); 446 SESSION(session)->server = g_strdup(account->recv_server);
451 447