# HG changeset patch # User Augie Fackler # Date 1520216137 18000 # Node ID 25798cf7dc9d0b1282398c6eee81f1a38a75caea # Parent 424994a0adfd14e56d8526bc16ebf55e1196bcf3 sslutil: sslcontext needs the cipher name as a sysstr Differential Revision: https://phab.mercurial-scm.org/D2689 diff -r 424994a0adfd -r 25798cf7dc9d mercurial/sslutil.py --- a/mercurial/sslutil.py Sun Mar 04 18:03:55 2018 -0500 +++ b/mercurial/sslutil.py Sun Mar 04 21:15:37 2018 -0500 @@ -370,7 +370,7 @@ if settings['ciphers']: try: - sslcontext.set_ciphers(settings['ciphers']) + sslcontext.set_ciphers(pycompat.sysstr(settings['ciphers'])) except ssl.SSLError as e: raise error.Abort(_('could not set ciphers: %s') % e.args[0], hint=_('change cipher string (%s) in config') %