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

Collapse All | Expand All

(-)irc/irssi-xmpp/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	irssi-xmpp
4
PORTNAME=	irssi-xmpp
5
PORTVERSION=	0.53
5
PORTVERSION=	0.53
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	irc
7
CATEGORIES=	irc
8
MASTER_SITES=	http://cybione.org/~irssi-xmpp/files/
8
MASTER_SITES=	http://cybione.org/~irssi-xmpp/files/
9
9
(-)irc/irssi-xmpp/files/patch-src_core_xmpp-servers.c (+35 lines)
Line 0 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
--- src/core/xmpp-servers.c.orig	2016-03-18 14:07:32 UTC
8
+++ src/core/xmpp-servers.c
9
@@ -151,7 +151,7 @@ xmpp_server_init_connect(SERVER_CONNECT_
10
 	server->connect_pid = -1;
11
 
12
 	if (server->connrec->port <= 0)
13
-		server->connrec->port = (server->connrec->use_ssl) ?
14
+		server->connrec->port = (server->connrec->use_tls) ?
15
 		    LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT;
16
 
17
 	if (conn->real_jid == NULL)
18
@@ -335,7 +335,7 @@ lm_open_cb(LmConnection *connection, gbo
19
 		g_free(host);
20
 	} else
21
 		signal_emit("server connecting", 1, server);
22
-	if (server->connrec->use_ssl)
23
+	if (server->connrec->use_tls)
24
 		signal_emit("xmpp server status", 2, server, 
25
 		    "Using SSL encryption.");
26
 	else if (lm_ssl_get_use_starttls(lm_connection_get_ssl(server->lmconn)))
27
@@ -470,7 +470,7 @@ xmpp_server_connect(XMPP_SERVER_REC *ser
28
 		return;
29
 	error = NULL;
30
 	err_msg = NULL;
31
-	if (server->connrec->use_ssl) {
32
+	if (server->connrec->use_tls) {
33
 		if (!set_ssl(server->lmconn, &error, server, FALSE)) {
34
 			err_msg = "Cannot init ssl";
35
 			goto err;

Return to bug 218603