From 401835f32a61c6e47bd34be20753f4555c56b064 Mon Sep 17 00:00:00 2001 From: Peter Vilim Date: Tue, 6 Jan 2015 23:00:02 -0600 Subject: Add support for evaluated password --- src/config/account.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/config/account.c') diff --git a/src/config/account.c b/src/config/account.c index 64819d8c..3ca63db0 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -43,7 +43,7 @@ ProfAccount* account_new(const gchar * const name, const gchar * const jid, - const gchar * const password, gboolean enabled, const gchar * const server, + const gchar * const password, const gchar * eval_password, gboolean enabled, const gchar * const server, int port, const gchar * const resource, const gchar * const last_presence, const gchar * const login_presence, int priority_online, int priority_chat, int priority_away, int priority_xa, int priority_dnd, @@ -67,6 +67,12 @@ account_new(const gchar * const name, const gchar * const jid, new_account->password = NULL; } + if (eval_password != NULL) { + new_account->eval_password = strdup(eval_password); + } else { + new_account->eval_password = NULL; + } + new_account->enabled = enabled; if (server != NULL) { @@ -168,4 +174,4 @@ account_free(ProfAccount *account) g_list_free_full(account->otr_always, g_free); free(account); } -} \ No newline at end of file +} -- cgit 1.4.1-2-gfad0