]> git.pld-linux.org Git - packages/python-httplib2.git/blob - python-httplib2.certfile.patch
e35116949406e950d8ab7659031d2d00bd7c4c12
[packages/python-httplib2.git] / python-httplib2.certfile.patch
1 diff -Nur httplib2-0.9.orig/python2/httplib2/__init__.py httplib2-0.9/python2/httplib2/__init__.py
2 --- httplib2-0.9.orig/python2/httplib2/__init__.py      2014-04-14 06:52:57.000000000 -0600
3 +++ httplib2-0.9/python2/httplib2/__init__.py   2014-05-23 21:17:02.082118837 -0600
4 @@ -191,8 +191,10 @@
5      CA_CERTS = ca_certs_locater.get()
6  except ImportError:
7      # Default CA certificates file bundled with httplib2.
8 -    CA_CERTS = os.path.join(
9 -        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
10 +#    CA_CERTS = os.path.join(
11 +#        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
12 +# Use Fedora system-wide shared certificate store for security, consistency.
13 +    CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
14  
15  # Which headers are hop-by-hop headers by default
16  HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
17 --- httplib2-0.9/python3/httplib2/__init__.py   2014-04-14 05:52:57.000000000 -0700
18 +++ httplib2-0.9/python3/httplib2/__init__.py.new       2015-01-12 17:22:19.815505848 -0800
19 @@ -124,8 +124,10 @@
20  HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
21  
22  # Default CA certificates file bundled with httplib2.
23 -CA_CERTS = os.path.join(
24 -        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
25 +#CA_CERTS = os.path.join(
26 +#        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
27 +# Use Fedora system-wide shared certificate store for security, consistency.
28 +CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
29  
30  def _get_end2end_headers(response):
31      hopbyhop = list(HOP_BY_HOP)
This page took 0.08853 seconds and 2 git commands to generate.