Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-nbxmpp
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yann Leboulanger
python-nbxmpp
Commits
40520af1
Commit
40520af1
authored
Sep 05, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add public method to access the openssl connection object
parent
63d72fbd
Pipeline
#4237
passed with stages
in 17 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
nbxmpp/client.py
nbxmpp/client.py
+4
-0
nbxmpp/tls.py
nbxmpp/tls.py
+7
-0
No files found.
nbxmpp/client.py
View file @
40520af1
...
...
@@ -119,6 +119,10 @@ class NonBlockingClient:
def
get_bound_jid
(
self
):
return
self
.
_registered_name
def
get_ssl_connection
(
self
):
if
'NonBlockingTCP'
in
self
.
__dict__
:
return
self
.
NonBlockingTCP
.
get_ssl_connection
()
def
disconnect
(
self
,
message
=
''
):
"""
Called on disconnection - disconnect callback is picked based on state of
...
...
nbxmpp/tls.py
View file @
40520af1
...
...
@@ -212,6 +212,7 @@ class NonBlockingTLS(PlugIn):
None is provided, a default list is used: HIGH:!aNULL
"""
PlugIn
.
__init__
(
self
)
self
.
_exported_methods
=
[
self
.
get_ssl_connection
]
self
.
cacerts
=
cacerts
self
.
mycerts
=
mycerts
if
cipher_list
is
None
:
...
...
@@ -423,3 +424,9 @@ class NonBlockingTLS(PlugIn):
return
sslObj
.
get_finished
()
except
AttributeError
:
raise
NotImplementedError
def
get_ssl_connection
(
self
):
try
:
return
self
.
_owner
.
_sslObj
except
Exception
:
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment