Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
f8e6635e
Commit
f8e6635e
authored
16 years ago
by
steve-e
Browse files
Options
Downloads
Patches
Plain Diff
Remove some (now) useless returns that where added because of a broken commit of mine...
parent
2b0ef67c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/xmpp/client_nb.py
+5
-7
5 additions, 7 deletions
src/common/xmpp/client_nb.py
with
5 additions
and
7 deletions
src/common/xmpp/client_nb.py
+
5
−
7
View file @
f8e6635e
...
...
@@ -356,12 +356,12 @@ class NonBlockingClient:
if
self
.
desired_security
==
'
plain
'
:
# if we want and have plain connection, we're done now
self
.
_on_connect
()
return
else
:
# try to negotiate TLS
if
self
.
incoming_stream_version
()
!=
'
1.0
'
:
# if stream version is less than 1.0, we can't do more
log
.
warn
(
'
While connecting with type =
"
tls
"
: stream version is less than 1.0
'
)
log
.
warn
(
'
While connecting with type =
"
tls
"
: stream version
'
+
'
is less than 1.0
'
)
self
.
_on_connect
()
if
self
.
Dispatcher
.
Stream
.
features
.
getTag
(
'
starttls
'
):
# Server advertises TLS support, start negotiation
...
...
@@ -369,16 +369,14 @@ class NonBlockingClient:
log
.
info
(
'
TLS supported by remote server. Requesting TLS start.
'
)
self
.
_tls_negotiation_handler
()
else
:
log
.
warn
(
'
While connecting with type =
"
tls
"
: TLS unsupported by remote server
'
)
log
.
warn
(
'
While connecting with type =
"
tls
"
: TLS unsupported
'
+
'
by remote server
'
)
self
.
_on_connect
()
return
elif
self
.
connected
in
[
'
ssl
'
,
'
tls
'
]:
self
.
_on_connect
()
return
else
:
log
.
error
(
'
Stream opened for unsupported connection: %s
'
%
(
self
.
connected
or
'
Disconnected
'
))
assert
False
,
'
Stream opened for unsupported connection
'
def
_tls_negotiation_handler
(
self
,
con
=
None
,
tag
=
None
):
'''
takes care of TLS negotioation with <starttls>
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment