From 9419e8ddf764e6b07dd93c20a718b61c39c605f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 15 Feb 2019 14:58:11 +0100 Subject: [PATCH] Fix deprecation warning set_cipher_list wants bytes --- gajim/common/jingle_xtls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/jingle_xtls.py b/gajim/common/jingle_xtls.py index 00ec38b09..1e49040fc 100644 --- a/gajim/common/jingle_xtls.py +++ b/gajim/common/jingle_xtls.py @@ -100,7 +100,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,