diff options
author | fiaxh <git@lightrise.org> | 2021-04-07 23:39:02 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-07 23:43:32 +0200 |
commit | a91cada4fb652b58d162f69c087a6e1d62619ecc (patch) | |
tree | bb2480d625974c3be1a55782d201d54eb38f6f9d /xmpp-vala/src/core/tls_xmpp_stream.vala | |
parent | 332c772fbefc1c27a5021e18a58f333b802bdaaf (diff) | |
download | dino-a91cada4fb652b58d162f69c087a6e1d62619ecc.tar.gz dino-a91cada4fb652b58d162f69c087a6e1d62619ecc.zip |
Fix segfault on bad certificate with multiple xmpp records
Co-authored-by: Marvin W <git@larma.de>
Diffstat (limited to 'xmpp-vala/src/core/tls_xmpp_stream.vala')
-rw-r--r-- | xmpp-vala/src/core/tls_xmpp_stream.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmpp-vala/src/core/tls_xmpp_stream.vala b/xmpp-vala/src/core/tls_xmpp_stream.vala index 043c5c70..6a5e935b 100644 --- a/xmpp-vala/src/core/tls_xmpp_stream.vala +++ b/xmpp-vala/src/core/tls_xmpp_stream.vala @@ -3,6 +3,12 @@ public abstract class Xmpp.TlsXmppStream : IoXmppStream { public TlsCertificateFlags? errors; public delegate bool OnInvalidCert(GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors); + public class OnInvalidCertWrapper { + public OnInvalidCert func; + public OnInvalidCertWrapper(owned OnInvalidCert func) { + this.func = (owned) func; + } + } protected TlsXmppStream(Jid remote_name) { base(remote_name); |