From 81a55052707d460a7f437b664682817c2c99dce6 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 31 Dec 2020 19:00:54 +0100 Subject: Allow certificates from unknown CAs from .onion domains It's barely possible for .onion servers to provide a non-self-signed cert. But that's fine because encryption is provided independently though TOR. see #958 --- xmpp-vala/src/core/xmpp_stream.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xmpp-vala/src/core/xmpp_stream.vala') diff --git a/xmpp-vala/src/core/xmpp_stream.vala b/xmpp-vala/src/core/xmpp_stream.vala index 99dbffe6..0f0793e9 100644 --- a/xmpp-vala/src/core/xmpp_stream.vala +++ b/xmpp-vala/src/core/xmpp_stream.vala @@ -34,6 +34,10 @@ public abstract class Xmpp.XmppStream { protected bool setup_needed = false; protected bool disconnected = false; + protected XmppStream(Jid remote_name) { + this.remote_name = remote_name; + } + public abstract async void connect() throws IOStreamError; public abstract async void disconnect() throws IOStreamError, XmlError, IOError; @@ -41,7 +45,7 @@ public abstract class Xmpp.XmppStream { public abstract async StanzaNode read() throws IOStreamError; [Version (deprecated = true, deprecated_since = "0.1", replacement = "write_async")] - public abstract void write(StanzaNode node); + public abstract void write(StanzaNode node); public abstract async void write_async(StanzaNode node) throws IOStreamError; -- cgit v1.2.3-54-g00ecf