From ac410445af65b9d332d4606a08ff549672042766 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 27 Feb 2020 01:22:05 +0200 Subject: Add option for legacy authentication New options: /connect [auth default|legacy] /account set auth default|legacy Fixes #1236. --- src/event/client_events.c | 4 ++-- src/event/client_events.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/event') 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); -- cgit 1.4.1-2-gfad0