Mercurial > hg
diff mercurial/sslutil.py @ 27688:6c7d26cef0cd stable
sslutil: fix reversed logic (issue5034)
author | Gábor Stefanik <gabor.stefanik@nng.com> |
---|---|
date | Fri, 08 Jan 2016 16:27:25 +0100 |
parents | 9e15286609ae |
children | dfb21c34e07d |
line wrap: on
line diff
--- a/mercurial/sslutil.py Mon Jan 04 21:21:59 2016 +0100 +++ b/mercurial/sslutil.py Fri Jan 08 16:27:25 2016 +0100 @@ -35,7 +35,7 @@ # maintainers for us, but that breaks too many things to # do it in a hurry. sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23) - sslcontext.options &= ssl.OP_NO_SSLv2 & ssl.OP_NO_SSLv3 + sslcontext.options |= ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3 if certfile is not None: def password(): f = keyfile or certfile