mercurial/url.py
changeset 12770 614f0d8724ab
parent 12742 6ab4a7d3c179
child 12862 9d6adddc8eea
equal deleted inserted replaced
12769:daa8dc6e1f66 12770:614f0d8724ab
   487         return keepalive.HTTPHandler._start_transaction(self, h, req)
   487         return keepalive.HTTPHandler._start_transaction(self, h, req)
   488 
   488 
   489 def _verifycert(cert, hostname):
   489 def _verifycert(cert, hostname):
   490     '''Verify that cert (in socket.getpeercert() format) matches hostname.
   490     '''Verify that cert (in socket.getpeercert() format) matches hostname.
   491     CRLs and subjectAltName are not handled.
   491     CRLs and subjectAltName are not handled.
   492     
   492 
   493     Returns error message if any problems are found and None on success.
   493     Returns error message if any problems are found and None on success.
   494     '''
   494     '''
   495     if not cert:
   495     if not cert:
   496         return _('no certificate received')
   496         return _('no certificate received')
   497     dnsname = hostname.lower()
   497     dnsname = hostname.lower()