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:
authorPhilipp Hörist <philipp@hoerist.com>2023-10-22 22:31:06 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-10-24 21:41:31 +0300
commit8a87dc77b3f8ef56aa5deea5a06d1782d7bc237d (patch)
treee81f7e0b9da7b86f24ff0e2f88d13f2fa4c92012 /nbxmpp/client.py
parentc7e4a9a5e0600914c7871e9aa80fb9c73ac2a901 (diff)
refactor: Rewrite channel binding code
- Fix some bugs related to XEP-0388 (SASL2)
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