[python-httplib2] python-httplib2-0.7.4-3
Ding-Yi Chen
dchen at fedoraproject.org
Fri Jun 22 05:55:11 UTC 2012
commit 9e04d3f9d768cf1464f8265e9aed1f4eba0b24ed
Author: Ding-Yi Chen <dingyichen at gmail.com>
Date: Fri Jun 22 15:54:23 2012 +1000
python-httplib2-0.7.4-3
python-httplib2.getCertHost.patch | 12 ++++++------
python-httplib2.spec | 6 +++++-
2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/python-httplib2.getCertHost.patch b/python-httplib2.getCertHost.patch
index 08abe69..f9c53de 100644
--- a/python-httplib2.getCertHost.patch
+++ b/python-httplib2.getCertHost.patch
@@ -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 at 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']
diff --git a/python-httplib2.spec b/python-httplib2.spec
index d60b918..4dd9a09 100644
--- a/python-httplib2.spec
+++ b/python-httplib2.spec
@@ -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 at 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
More information about the scm-commits
mailing list