Comments (5)
Patch to fix it:
diff --git a/src/core/xmpp-servers.c b/src/core/xmpp-servers.c
index 405ecd9..b6d9bd5 100644
--- a/src/core/xmpp-servers.c
+++ b/src/core/xmpp-servers.c
@@ -151,7 +151,7 @@ xmpp_server_init_connect(SERVER_CONNECT_REC *connrec)
server->connect_pid = -1;
if (server->connrec->port <= 0)
- server->connrec->port = (server->connrec->use_ssl) ?
+ server->connrec->port = (server->connrec->use_tls) ?
LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT;
if (conn->real_jid == NULL)
@@ -335,7 +335,7 @@ lm_open_cb(LmConnection *connection, gboolean success,
g_free(host);
} else
signal_emit("server connecting", 1, server);
- if (server->connrec->use_ssl)
+ if (server->connrec->use_tls)
signal_emit("xmpp server status", 2, server,
"Using SSL encryption.");
else if (lm_ssl_get_use_starttls(lm_connection_get_ssl(server->lmconn)))
@@ -470,7 +470,7 @@ xmpp_server_connect(XMPP_SERVER_REC *server)
return;
error = NULL;
err_msg = NULL;
- if (server->connrec->use_ssl) {
+ if (server->connrec->use_tls) {
if (!set_ssl(server->lmconn, &error, server, FALSE)) {
err_msg = "Cannot init ssl";
goto err;
from irssi-xmpp.
Better patch which should allow building on older irssi versions
diff --git a/src/core/xmpp-servers.c b/src/core/xmpp-servers.c
index 405ecd9..edcaeaa 100644
--- a/src/core/xmpp-servers.c
+++ b/src/core/xmpp-servers.c
@@ -32,6 +32,11 @@
#include "rosters-tools.h"
#include "tools.h"
+// IRSSI_ABI_VERSION was introduced in 0.8.18
+#if !defined(IRSSI_ABI_VERSION) || IRSSI_ABI_VERSION < 6
+# define use_tls use_ssl
+#endif
+
static void
channels_join(SERVER_REC *server, const char *data, int automatic)
{
@@ -151,7 +156,7 @@ xmpp_server_init_connect(SERVER_CONNECT_REC *connrec)
server->connect_pid = -1;
if (server->connrec->port <= 0)
- server->connrec->port = (server->connrec->use_ssl) ?
+ server->connrec->port = (server->connrec->use_tls) ?
LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT;
if (conn->real_jid == NULL)
@@ -335,7 +340,7 @@ lm_open_cb(LmConnection *connection, gboolean success,
g_free(host);
} else
signal_emit("server connecting", 1, server);
- if (server->connrec->use_ssl)
+ if (server->connrec->use_tls)
signal_emit("xmpp server status", 2, server,
"Using SSL encryption.");
else if (lm_ssl_get_use_starttls(lm_connection_get_ssl(server->lmconn)))
@@ -470,7 +475,7 @@ xmpp_server_connect(XMPP_SERVER_REC *server)
return;
error = NULL;
err_msg = NULL;
- if (server->connrec->use_ssl) {
+ if (server->connrec->use_tls) {
if (!set_ssl(server->lmconn, &error, server, FALSE)) {
err_msg = "Cannot init ssl";
goto err;
from irssi-xmpp.
OK, can you make a pull request against the master branch?
from irssi-xmpp.
it works for me to change the ssl to tls, since irssi 1.0.0 use tls after vulnerabilities
from irssi-xmpp.
fixed by 0d9e5f7
from irssi-xmpp.
Related Issues (20)
- Password prompt is blocking irssi
- /nick function is chatroom specific, breaks on rejoin
- Feature request: autocompletion of jid
- assertion triggered after upgrading to ejabberd 17.x HOT 3
- XEP-0198: Stream Management support
- irssi: symbol lookup error: irssi: undefined symbol: g_malloc_n HOT 1
- Crash (probably on disconnect?) HOT 3
- "critical Source ID 1 was not found when attempting to remove it" HOT 4
- Feature Request: Per-account proxy settings
- XEPs and RFCs support page with version
- XEP-0443: XMPP Compliance Suites 2021
- xmpp/core is ABI version 7 but Irssi is version 13, cannot load HOT 2
- xmpppasswd HOT 2
- command "suscribe" should be "subscribe" HOT 2
- irssi-xmpp 0.54 fails to connect to jabber server with irssi-1.2.0 HOT 5
- Automatic Connection Does Not Work HOT 3
- SCRAM-SHA-1-PLUS + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) supports HOT 2
- irssi 1.4.1 HOT 1
- xmpp/core ABI version mismatch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irssi-xmpp.