Commit 0c7293b8 authored by Philipp Hörist's avatar Philipp Hörist

TCP: Don't use deprecated method

parent 3bf389df
Pipeline #5185 passed with stages
in 29 seconds
......@@ -167,7 +167,6 @@ class TCPConnection(Connection):
if self._address.type == ConnectionType.DIRECT_TLS:
tls_client.set_advertised_protocols(['xmpp-client'])
tls_client.set_rehandshake_mode(Gio.TlsRehandshakeMode.NEVER)
tls_client.set_validation_flags(Gio.TlsCertificateFlags.VALIDATE_ALL)
tls_client.connect('accept-certificate', self._check_certificate)
tls_client.connect('notify::peer-certificate', self._on_certificate_set)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment