diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-09-06 22:41:46 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-09-06 22:41:46 +0300 |
commit | 88617bc13a3d7566e10163eec9969cd78c2c1706 (patch) | |
tree | c27758563c2d23f505017ec4f7a2d99bd9194c56 /nbxmpp/connection.py | |
parent | c5ee15c156e4c8b268bda5e8b3814f1235fdb9db (diff) |
feat: Expose TLS version and ciphersuite
Diffstat (limited to 'nbxmpp/connection.py')
-rw-r--r-- | nbxmpp/connection.py | 10 |
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 |