changeset 4913f43997e9 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=4913f43997e9 description: fix decoding issue
diffstat:
src/common/jingle_xtls.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 9701d2ecfe10 -r 4913f43997e9 src/common/jingle_xtls.py --- a/src/common/jingle_xtls.py Sat Jul 18 17:53:48 2015 +0200 +++ b/src/common/jingle_xtls.py Sat Jul 18 18:10:55 2015 +0200 @@ -194,7 +194,8 @@ cert = load_cert_file(certpath) if cert: try: - digest_algo = cert.get_signature_algorithm().split('With')[0] + digest_algo = cert.get_signature_algorithm().decode('utf-8').\ + split('With')[0] except AttributeError as e: # Old py-OpenSSL is missing get_signature_algorithm digest_algo = "sha256"