mercurial/sslutil.py
changeset 16391 9cf7c9d529d0
parent 15997 a45516cb8d9f
child 18879 93b03a222c3e
--- a/mercurial/sslutil.py	Mon Apr 09 22:16:26 2012 -0700
+++ b/mercurial/sslutil.py	Mon Apr 09 14:36:16 2012 -0700
@@ -107,8 +107,9 @@
             if hostfingerprint:
                 raise util.Abort(_("host fingerprint for %s can't be "
                                    "verified (Python too old)") % host)
-            self.ui.warn(_("warning: certificate for %s can't be verified "
-                           "(Python too old)\n") % host)
+            if self.ui.configbool('ui', 'reportoldssl', True):
+                self.ui.warn(_("warning: certificate for %s can't be verified "
+                               "(Python too old)\n") % host)
             return
         if not sock.cipher(): # work around http://bugs.python.org/issue13721
             raise util.Abort(_('%s ssl connection error') % host)