about summary refs log tree commit diff stats
path: root/src/event
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/event
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/event')
-rw-r--r--src/event/client_events.c4
-rw-r--r--src/event/client_events.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index a7ee3028..96098ae0 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -61,10 +61,10 @@
 #endif
 
 jabber_conn_status_t
-cl_ev_connect_jid(const char *const jid, const char *const passwd, const char *const altdomain, const int port, const char *const tls_policy)
+cl_ev_connect_jid(const char *const jid, const char *const passwd, const char *const altdomain, const int port, const char *const tls_policy, const char *const auth_policy)
 {
     cons_show("Connecting as %s", jid);
-    return session_connect_with_details(jid, passwd, altdomain, port, tls_policy);
+    return session_connect_with_details(jid, passwd, altdomain, port, tls_policy, auth_policy);
 }
 
 jabber_conn_status_t
diff --git a/src/event/client_events.h b/src/event/client_events.h
index 87276331..3c0da3d9 100644
--- a/src/event/client_events.h
+++ b/src/event/client_events.h
@@ -38,7 +38,7 @@
 
 #include "xmpp/xmpp.h"
 
-jabber_conn_status_t cl_ev_connect_jid(const char *const jid, const char *const passwd, const char *const altdomain, const int port, const char *const tls_policy);
+jabber_conn_status_t cl_ev_connect_jid(const char *const jid, const char *const passwd, const char *const altdomain, const int port, const char *const tls_policy, const char *const auth_policy);
 jabber_conn_status_t cl_ev_connect_account(ProfAccount *account);
 
 void cl_ev_disconnect(void);