mercurial/sslutil.py
changeset 36746 25798cf7dc9d
parent 36745 424994a0adfd
child 36747 4c71a26a4009
equal deleted inserted replaced
36745:424994a0adfd 36746:25798cf7dc9d
   368     # This still works on our fake SSLContext.
   368     # This still works on our fake SSLContext.
   369     sslcontext.verify_mode = settings['verifymode']
   369     sslcontext.verify_mode = settings['verifymode']
   370 
   370 
   371     if settings['ciphers']:
   371     if settings['ciphers']:
   372         try:
   372         try:
   373             sslcontext.set_ciphers(settings['ciphers'])
   373             sslcontext.set_ciphers(pycompat.sysstr(settings['ciphers']))
   374         except ssl.SSLError as e:
   374         except ssl.SSLError as e:
   375             raise error.Abort(_('could not set ciphers: %s') % e.args[0],
   375             raise error.Abort(_('could not set ciphers: %s') % e.args[0],
   376                               hint=_('change cipher string (%s) in config') %
   376                               hint=_('change cipher string (%s) in config') %
   377                                    settings['ciphers'])
   377                                    settings['ciphers'])
   378 
   378