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>2022-09-06 22:41:46 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-09-06 22:41:46 +0300
commit88617bc13a3d7566e10163eec9969cd78c2c1706 (patch)
treec27758563c2d23f505017ec4f7a2d99bd9194c56 /nbxmpp/connection.py
parentc5ee15c156e4c8b268bda5e8b3814f1235fdb9db (diff)
feat: Expose TLS version and ciphersuite
Diffstat (limited to 'nbxmpp/connection.py')
-rw-r--r--nbxmpp/connection.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nbxmpp/connection.py b/nbxmpp/connection.py
index 3bc3b57..43667da 100644
--- a/nbxmpp/connection.py
+++ b/nbxmpp/connection.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
+from typing import Optional
+
import logging
from gi.repository import Gio
@@ -66,6 +68,14 @@ class Connection(Observable):
self._ignored_tls_errors = ignored_tls_errors
@property
+ def tls_version(self) -> Optional[int]:
+ return None
+
+ @property
+ def ciphersuite(self) -> Optional[int]:
+ return None
+
+ @property
def local_address(self):
return self._local_address