Blame SOURCES/python-httplib2.certfile.patch

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