View | Details | Raw Unified | Return to bug 217916 | Differences between
and this patch

Collapse All | Expand All

(-)b/irc/irssi-xmpp/files/patch-d56d614b89ecc34845e0f5971c545b893c2c359a (+41 lines)
Added Link Here
1
From d56d614b89ecc34845e0f5971c545b893c2c359a Mon Sep 17 00:00:00 2001
2
From: benaryorg <binary@benary.org>
3
Date: Fri, 20 Jan 2017 06:31:28 +0100
4
Subject: [PATCH] fix #18 - build with irssi 1.0
5
6
Signed-off-by: benaryorg <binary@benary.org>
7
---
8
 src/core/xmpp-servers.c | 6 +++---
9
 1 file changed, 3 insertions(+), 3 deletions(-)
10
11
diff --git a/src/core/xmpp-servers.c b/src/core/xmpp-servers.c
12
index 405ecd9..b6d9bd5 100644
13
--- src/core/xmpp-servers.c
14
+++ src/core/xmpp-servers.c
15
@@ -151,7 +151,7 @@ xmpp_server_init_connect(SERVER_CONNECT_REC *connrec)
16
 	server->connect_pid = -1;
17
 
18
 	if (server->connrec->port <= 0)
19
-		server->connrec->port = (server->connrec->use_ssl) ?
20
+		server->connrec->port = (server->connrec->use_tls) ?
21
 		    LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT;
22
 
23
 	if (conn->real_jid == NULL)
24
@@ -335,7 +335,7 @@ lm_open_cb(LmConnection *connection, gboolean success,
25
 		g_free(host);
26
 	} else
27
 		signal_emit("server connecting", 1, server);
28
-	if (server->connrec->use_ssl)
29
+	if (server->connrec->use_tls)
30
 		signal_emit("xmpp server status", 2, server, 
31
 		    "Using SSL encryption.");
32
 	else if (lm_ssl_get_use_starttls(lm_connection_get_ssl(server->lmconn)))
33
@@ -470,7 +470,7 @@ xmpp_server_connect(XMPP_SERVER_REC *server)
34
 		return;
35
 	error = NULL;
36
 	err_msg = NULL;
37
-	if (server->connrec->use_ssl) {
38
+	if (server->connrec->use_tls) {
39
 		if (!set_ssl(server->lmconn, &error, server, FALSE)) {
40
 			err_msg = "Cannot init ssl";
41
 			goto err;

Return to bug 217916