[PATCH 4 of 6 V6] sslutil: support defining cipher list

Yuya Nishihara yuya at tcha.org
Sun Jul 17 04:28:30 EDT 2016


On Fri, 15 Jul 2016 22:18:47 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1468470132 25200
> #      Wed Jul 13 21:22:12 2016 -0700
> # Node ID bbf953487c127f976514c0e9415b82df1b716db6
> # Parent  862344cd55472d3d5233abcb829766c947f7df90
> sslutil: support defining cipher list

The code looks good, but the test failed on Python 2.7.8.

> +#if no-sslcontext
> +Setting ciphers requires Python 2.7 (any version - it doesn't require SSLContext)
> +  $ P="$CERTSDIR" hg --config hostsecurity.ciphers=HIGH -R copy-pull id https://localhost:$HGPORT/
> +  abort: setting ciphers in [hostsecurity] is not supported by this version of Python
> +  (remove the config option or run Mercurial with a modern Python version (preferred))
> +  [255]
> +#endif

This seems not an important feature, so I just dropped it from the series
without trying to fix the test failure.


More information about the Mercurial-devel mailing list