5 changed files with 5 additions and 26 deletions
@ -1,18 +0,0 @@
|
||||
diff -Naur heybuddy-0.2.3.orig/CertificateValidatingHTTPSHandler.py heybuddy-0.2.3/CertificateValidatingHTTPSHandler.py
|
||||
--- heybuddy-0.2.3.orig/CertificateValidatingHTTPSHandler.py 2011-11-28 06:12:18.000000000 +0100
|
||||
+++ heybuddy-0.2.3/CertificateValidatingHTTPSHandler.py 2012-02-20 23:38:15.285754790 +0100
|
||||
@@ -52,12 +52,8 @@
|
||||
self.cert_reqs = ssl.CERT_NONE
|
||||
|
||||
def _GetValidHostsForCert(self, cert):
|
||||
- if 'subjectAltName' in cert:
|
||||
- return [x[1] for x in cert['subjectAltName']
|
||||
- if x[0].lower() == 'dns']
|
||||
- else:
|
||||
- return [x[0][1] for x in cert['subject']
|
||||
- if x[0][0].lower() == 'commonname']
|
||||
+ return [x[0][1] for x in cert['subject']
|
||||
+ if x[0][0].lower() == 'commonname']
|
||||
|
||||
def _ValidateCertificateHostname(self, cert, hostname):
|
||||
hosts = self._GetValidHostsForCert(cert)
|
@ -1 +0,0 @@
|
||||
812020b60549828c2f327162dc8a34ecb05e2672 heybuddy-0.2.3.tgz |
@ -0,0 +1 @@
|
||||
e65fe8c133d937744d7ed611dc081352f2beaf86 heybuddy-0.2.5.tgz |
Loading…
Reference in new issue