D2689: sslutil: sslcontext needs the cipher name as a sysstr

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Mar 6 04:38:32 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG25798cf7dc9d: sslutil: sslcontext needs the cipher name as a sysstr (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2689?vs=6648&id=6666

REVISION DETAIL
  https://phab.mercurial-scm.org/D2689

AFFECTED FILES
  mercurial/sslutil.py

CHANGE DETAILS

diff --git a/mercurial/sslutil.py b/mercurial/sslutil.py
--- a/mercurial/sslutil.py
+++ b/mercurial/sslutil.py
@@ -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') %



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list