forked from pool/python-httplib2
Accepting request 174275 from devel:languages:python
- Add httplib2-bnc-818100.patch (bnc#818100): Fix for subsequent request SSL certificate validation - Add httplib2-bnc-818100.patch (bnc#818100): Fix for subsequent request SSL certificate validation OBS-URL: https://build.opensuse.org/request/show/174275 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httplib2?expand=0&rev=27
This commit is contained in:
commit
4295b0f174
21
httplib2-bnc-818100.patch
Normal file
21
httplib2-bnc-818100.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -r 93291649202b python2/httplib2/__init__.py
|
||||||
|
--- a/python2/httplib2/__init__.py Tue Mar 26 14:17:48 2013 -0400
|
||||||
|
+++ b/python2/httplib2/__init__.py Tue Apr 23 10:32:15 2013 +0300
|
||||||
|
@@ -1030,7 +1030,7 @@
|
||||||
|
raise CertificateHostnameMismatch(
|
||||||
|
'Server presented certificate that does not match '
|
||||||
|
'host %s: %s' % (hostname, cert), hostname, cert)
|
||||||
|
- except ssl_SSLError, e:
|
||||||
|
+ except (ssl_SSLError, CertificateHostnameMismatch), e:
|
||||||
|
if sock:
|
||||||
|
sock.close()
|
||||||
|
if self.sock:
|
||||||
|
@@ -1040,7 +1040,7 @@
|
||||||
|
# to get at more detailed error information, in particular
|
||||||
|
# whether the error is due to certificate validation or
|
||||||
|
# something else (such as SSL protocol mismatch).
|
||||||
|
- if e.errno == ssl.SSL_ERROR_SSL:
|
||||||
|
+ if hasattr(e, 'errno') and e.errno == ssl.SSL_ERROR_SSL:
|
||||||
|
raise SSLHandshakeError(e)
|
||||||
|
else:
|
||||||
|
raise
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 2 10:23:29 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Add httplib2-bnc-818100.patch (bnc#818100): Fix for subsequent
|
||||||
|
request SSL certificate validation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 22 13:30:17 UTC 2013 - speilicke@suse.com
|
Fri Mar 22 13:30:17 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ Group: Development/Libraries/Python
|
|||||||
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
||||||
Patch0: httplib2-use-system-certs.patch
|
Patch0: httplib2-use-system-certs.patch
|
||||||
|
# PATCH-FIX-UPSTREAM: speilicke@suse.com -- SSL certificate hostname mismatch is checked only once
|
||||||
|
Patch1: httplib2-bnc-818100.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
# Test requirements (for ssl module):
|
# Test requirements (for ssl module):
|
||||||
@ -48,6 +50,7 @@ left out of other HTTP libraries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n httplib2-%{version}
|
%setup -q -n httplib2-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 2 10:23:36 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Add httplib2-bnc-818100.patch (bnc#818100): Fix for subsequent
|
||||||
|
request SSL certificate validation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
|
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ Group: Development/Libraries/Python
|
|||||||
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
||||||
Patch0: httplib2-use-system-certs.patch
|
Patch0: httplib2-use-system-certs.patch
|
||||||
|
# PATCH-FIX-UPSTREAM: speilicke@suse.com -- SSL certificate hostname mismatch is checked only once
|
||||||
|
Patch1: httplib2-bnc-818100.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
# Test requirements (for ssl module):
|
# Test requirements (for ssl module):
|
||||||
@ -44,6 +46,7 @@ left out of other HTTP libraries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n httplib2-%{version}
|
%setup -q -n httplib2-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build
|
python3 setup.py build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user