changeset 26622:9e15286609ae

sslutil: expose attribute indicating whether SNI is supported This will be used so clone bundles can advertise whether URLs require SNI. This will be explained more in a subsequent patch.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 29 Sep 2015 16:17:32 -0700
parents 36383507a6f8
children 5a95fe44121d
files mercurial/sslutil.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/sslutil.py	Sun Oct 11 23:58:07 2015 -0700
+++ b/mercurial/sslutil.py	Tue Sep 29 16:17:32 2015 -0700
@@ -16,6 +16,8 @@
 from .i18n import _
 from . import error, util
 
+hassni = getattr(ssl, 'HAS_SNI', False)
+
 _canloaddefaultcerts = False
 try:
     ssl_context = ssl.SSLContext