Fix depreaction warning

set_cipher_list wants bytes
This commit is contained in:
Philipp Hörist 2019-02-15 14:58:11 +01:00
parent 1f5be6cb0f
commit bc7e0e1ee4
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def get_context(fingerprint, verify_cb=None, remote_jid=None):
flags = (SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3 | SSL.OP_SINGLE_DH_USE \
| SSL.OP_NO_TICKET)
ctx.set_options(flags)
ctx.set_cipher_list('HIGH:!aNULL:!3DES')
ctx.set_cipher_list(b'HIGH:!aNULL:!3DES')
if fingerprint == 'server': # for testing purposes only
ctx.set_verify(SSL.VERIFY_NONE|SSL.VERIFY_FAIL_IF_NO_PEER_CERT,