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>2018-11-07 14:56:43 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2018-11-07 15:02:30 +0200
commit3fd6f70bd9d2bb9ff4921c53354b52465e616a51 (patch)
tree1ab05ae6c3333e7f7caddb3f740d97985cb4cb98 /src/config/account.h
parent7f65aaa9a2ba1e7d9fe182cc18938fa39462e095 (diff)
downloadprofani-tty-3fd6f70bd9d2bb9ff4921c53354b52465e616a51.tar.gz
Override account options with connect options
With this feature user can configure TLS policy for an account and
override it for a single login with /connect command.

Example:
 /account set <jid> tls force
 /connect <jid> tls trust
The example shows how to trust server's certificate only once.

Fixes #1021.
Diffstat (limited to 'src/config/account.h')
-rw-r--r--src/config/account.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/account.h b/src/config/account.h
index 1262e518..d0bb28fa 100644
--- a/src/config/account.h
+++ b/src/config/account.h
@@ -77,5 +77,8 @@ ProfAccount* account_new(const gchar *const name, const gchar *const jid,
 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);
 
 #endif