python-httplib2-0.7.4-3

This commit is contained in:
Ding-Yi Chen 2012-06-22 15:54:23 +10:00
parent 1f71ea273a
commit 9e04d3f9d7
2 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
diff -up ./python2/httplib2/__init__.py.orig ./python2/httplib2/__init__.py
--- ./python2/httplib2/__init__.py.orig 2012-05-03 17:09:12.836155079 +1000
+++ ./python2/httplib2/__init__.py 2012-05-03 17:10:02.149780584 +1000
diff -up ./python2/httplib2/__init__.py.getCertHost ./python2/httplib2/__init__.py
--- ./python2/httplib2/__init__.py.getCertHost 2012-05-03 17:16:33.834155219 +1000
+++ ./python2/httplib2/__init__.py 2012-06-21 18:19:33.804660257 +1000
@@ -942,11 +942,12 @@ class HTTPSConnectionWithTimeout(httplib
list: A list of valid host globs.
"""
@ -10,9 +10,9 @@ diff -up ./python2/httplib2/__init__.py.orig ./python2/httplib2/__init__.py
- else:
- return [x[0][1] for x in cert['subject']
- if x[0][0].lower() == 'commonname']
+ for x in cert['subjectAltName']:
+ if x[0].lower() == 'dns':
+ return x[1]
+ # Patch from richardfearn@gmail.com
+ return [x[1] for x in cert['subjectAltName']
+ if x[0].lower() == "dns"]
+
+ return [x[0][1] for x in cert['subject']
+ if x[0][0].lower() == 'commonname']

View File

@ -4,7 +4,7 @@
Name: python-httplib2
Version: 0.7.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A comprehensive HTTP client library
Group: System Environment/Libraries
License: MIT
@ -83,6 +83,10 @@ rm -rf $RPM_BUILD_ROOT
%endif # with_python3
%changelog
* Thu Jun 21 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-3
- Applied patch suggested by richardfearn@gmail.com regarding issue 208
- Fixed: Bug 832344 - Certification validation fails due to multiple 'dns' entries in subjectAltName
* Fri Jun 01 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-2
- Upstream update for Fedora