Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
si
python-nbxmpp
Commits
ffb6bcc5
Commit
ffb6bcc5
authored
Sep 09, 2013
by
Yann Leboulanger
Browse files
[fedor.brunner] Use only high encryption cipher suites and RC4 as least choice. Fixes #7
parent
9b5e73d3
Changes
1
Show whitespace changes
Inline
Side-by-side
nbxmpp/tls_nb.py
View file @
ffb6bcc5
...
...
@@ -400,6 +400,7 @@ class NonBlockingTLS(PlugIn):
tcpsock
.
ssl_errnum
=
[]
tcpsock
.
_sslContext
.
set_verify
(
OpenSSL
.
SSL
.
VERIFY_PEER
,
self
.
_ssl_verify_callback
)
tcpsock
.
_sslContext
.
set_cipher_list
(
'HIGH:!aNULL:!eNULL:RC4-SHA'
)
store
=
tcpsock
.
_sslContext
.
get_cert_store
()
self
.
_load_cert_file
(
self
.
cacerts
,
store
)
self
.
_load_cert_file
(
self
.
mycerts
,
store
)
...
...
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