Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r--nbxmpp/client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py
index c777017..5a8c02e 100644
--- a/nbxmpp/client.py
+++ b/nbxmpp/client.py
@@ -20,6 +20,7 @@ from typing import Any
from typing import Optional
from gi.repository import GLib
+from gi.repository import Gio
from nbxmpp.namespaces import Namespace
from nbxmpp.http import HTTPSession
@@ -222,6 +223,12 @@ class Client(Observable):
def ciphersuite(self):
return self._con.ciphersuite
+ def get_channel_binding_data(
+ self,
+ type_: Gio.TlsChannelBindingType
+ ) -> Optional[bytes]:
+ return self._con.get_channel_binding_data(type_)
+
def set_ignore_tls_errors(self, ignore):
self._ignore_tls_errors = ignore