about summary refs log tree commit diff stats
path: root/src/config/account.h
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-02-27 01:22:05 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2020-06-05 11:37:51 +0300
commitac410445af65b9d332d4606a08ff549672042766 (patch)
tree0a898a43ee4a5c704fe496d004efa7e57b0cb735 /src/config/account.h
parent8c9aee22e81804bda6590ba80e9450ca90f56d14 (diff)
downloadprofani-tty-ac410445af65b9d332d4606a08ff549672042766.tar.gz
Add option for legacy authentication
New options:
  /connect <account> [auth default|legacy]
  /account <account> set auth default|legacy

Fixes #1236.
Diffstat (limited to 'src/config/account.h')
-rw-r--r--src/config/account.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/account.h b/src/config/account.h
index dd4b029e..deb0e31a 100644
--- a/src/config/account.h
+++ b/src/config/account.h
@@ -67,6 +67,7 @@ typedef struct prof_account_t {
     gchar *startscript;
     gchar *theme;
     gchar *tls_policy;
+    gchar *auth_policy;
 } ProfAccount;
 
 ProfAccount* account_new(const gchar *const name, const gchar *const jid,
@@ -78,12 +79,13 @@ ProfAccount* account_new(const gchar *const name, const gchar *const jid,
     const gchar *const otr_policy, GList *otr_manual, GList *otr_opportunistic,
     GList *otr_always, const gchar *const omemo_policy, GList *omemo_enabled,
     GList *omemo_disabled, const gchar *const pgp_keyid, const char *const startscript,
-    const char *const theme, gchar *tls_policy);
+    const char *const theme, gchar *tls_policy, gchar *auth_policy);
 char* account_create_connect_jid(ProfAccount *account);
 gboolean account_eval_password(ProfAccount *account);
 void account_free(ProfAccount *account);
 void account_set_server(ProfAccount *account, const char *server);
 void account_set_port(ProfAccount *account, int port);
 void account_set_tls_policy(ProfAccount *account, const char *tls_policy);
+void account_set_auth_policy(ProfAccount *account, const char *auth_policy);
 
 #endif