equal
deleted
inserted
replaced
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() |