Blame SOURCES/python-httplib2.certfile.patch

2d8bb4
diff -Nur httplib2-0.9.orig/python2/httplib2/__init__.py httplib2-0.9/python2/httplib2/__init__.py
2d8bb4
--- httplib2-0.9.orig/python2/httplib2/__init__.py	2014-04-14 06:52:57.000000000 -0600
2d8bb4
+++ httplib2-0.9/python2/httplib2/__init__.py	2014-05-23 21:17:02.082118837 -0600
2d8bb4
@@ -191,8 +191,10 @@
2d8bb4
     CA_CERTS = ca_certs_locater.get()
2d8bb4
 except ImportError:
2d8bb4
     # Default CA certificates file bundled with httplib2.
2d8bb4
-    CA_CERTS = os.path.join(
2d8bb4
-        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
2d8bb4
+#    CA_CERTS = os.path.join(
2d8bb4
+#        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
2d8bb4
+# Use Fedora system-wide shared certificate store for security, consistency.
2d8bb4
+    CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
2d8bb4
 
2d8bb4
 # Which headers are hop-by-hop headers by default
2d8bb4
 HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
2d8bb4
--- httplib2-0.9/python3/httplib2/__init__.py	2014-04-14 05:52:57.000000000 -0700
2d8bb4
+++ httplib2-0.9/python3/httplib2/__init__.py.new	2015-01-12 17:22:19.815505848 -0800
2d8bb4
@@ -124,8 +124,10 @@
2d8bb4
 HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
2d8bb4
 
2d8bb4
 # Default CA certificates file bundled with httplib2.
2d8bb4
-CA_CERTS = os.path.join(
2d8bb4
-        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
2d8bb4
+#CA_CERTS = os.path.join(
2d8bb4
+#        os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
2d8bb4
+# Use Fedora system-wide shared certificate store for security, consistency.
2d8bb4
+CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
2d8bb4
 
2d8bb4
 def _get_end2end_headers(response):
2d8bb4
     hopbyhop = list(HOP_BY_HOP)