equal
deleted
inserted
replaced
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 |