mercurial/sslutil.py
changeset 29487 cdcb5747dc88
parent 29486 a62c00f6dd04
child 29488 1c26b9ce66f8
equal deleted inserted replaced
29486:a62c00f6dd04 29487:cdcb5747dc88
   440         ui.debug('using ca certificates from certifi\n')
   440         ui.debug('using ca certificates from certifi\n')
   441         return certs
   441         return certs
   442     except ImportError:
   442     except ImportError:
   443         pass
   443         pass
   444 
   444 
       
   445     # Apple's OpenSSL has patches that allow a specially constructed certificate
       
   446     # to load the system CA store. If we're running on Apple Python, use this
       
   447     # trick.
   445     if _plainapplepython():
   448     if _plainapplepython():
   446         dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')
   449         dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')
   447         if os.path.exists(dummycert):
   450         if os.path.exists(dummycert):
   448             return dummycert
   451             return dummycert
   449 
   452