Mercurial > hg-stable
diff tests/hghave.py @ 22575:d7f7f1860f00
ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs
This will give PKI-secure behaviour out of the box, without any configuration.
Setting web.cacerts to any value or empty will disable this trick.
This dummy cert trick only works on OS X 10.6+, but 10.5 had Python 2.5 which
didn't have certificate validation at all.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 26 Sep 2014 02:19:48 +0200 |
parents | 77142de48ae4 |
children | 36a940d82f88 |
line wrap: on
line diff
--- a/tests/hghave.py Fri Sep 26 02:19:47 2014 +0200 +++ b/tests/hghave.py Fri Sep 26 02:19:48 2014 +0200 @@ -332,6 +332,10 @@ def has_aix(): return sys.platform.startswith("aix") +@check("osx", "OS X") +def has_osx(): + return sys.platform == 'darwin' + @check("absimport", "absolute_import in __future__") def has_absimport(): import __future__