python-httplib2/python-httplib2.certfile.patch

31 lines
1.7 KiB
Diff
Raw Normal View History

2018-06-11 00:37:48 +00:00
diff -Nur httplib2-0.11.3.orig/python2/httplib2/__init__.py httplib2-0.11.3/python2/httplib2/__init__.py
--- httplib2-0.11.3.orig/python2/httplib2/__init__.py 2018-06-10 17:12:37.289548256 -0700
+++ httplib2-0.11.3/python2/httplib2/__init__.py 2018-06-10 17:16:52.193649649 -0700
@@ -218,8 +218,9 @@
2014-05-25 20:25:44 +00:00
CA_CERTS = ca_certs_locater.get()
except ImportError:
# Default CA certificates file bundled with httplib2.
- CA_CERTS = os.path.join(
2012-02-24 14:27:30 +00:00
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
2018-06-11 00:37:48 +00:00
+ #CA_CERTS = os.path.join(
+ # os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
+ CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
2012-02-24 14:27:30 +00:00
# Which headers are hop-by-hop headers by default
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
2018-06-11 00:37:48 +00:00
diff -Nur httplib2-0.11.3.orig/python3/httplib2/__init__.py httplib2-0.11.3/python3/httplib2/__init__.py
--- httplib2-0.11.3.orig/python3/httplib2/__init__.py 2018-03-29 19:28:43.000000000 -0700
+++ httplib2-0.11.3/python3/httplib2/__init__.py 2018-06-10 17:18:19.267025891 -0700
@@ -125,8 +125,9 @@
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
# Default CA certificates file bundled with httplib2.
-CA_CERTS = os.path.join(
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
+#CA_CERTS = os.path.join(
+# os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
+CA_CERTS = "/etc/pki/tls/certs/ca-bundle.crt"
2018-06-11 00:37:48 +00:00
# PROTOCOL_TLS is python 3.5.3+. PROTOCOL_SSLv23 is deprecated.
# Both PROTOCOL_TLS and PROTOCOL_SSLv23 are equivalent and means: