python-httplib2.cert.patch 1.6 KB

123456789101112131415161718192021222324252627282930
  1. diff -ur httplib2-0.8.orig/python2/httplib2/__init__.py httplib2-0.8/python2/httplib2/__init__.py
  2. --- httplib2-0.8.orig/python2/httplib2/__init__.py 2014-05-01 23:25:52.459852279 +0200
  3. +++ httplib2-0.8/python2/httplib2/__init__.py 2014-05-01 23:28:08.822391994 +0200
  4. @@ -190,9 +190,8 @@
  5. import ca_certs_locater
  6. CA_CERTS = ca_certs_locater.get()
  7. except ImportError:
  8. - # Default CA certificates file bundled with httplib2.
  9. - CA_CERTS = os.path.join(
  10. - os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
  11. + # Use system CA certificates
  12. + CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
  13. # Which headers are hop-by-hop headers by default
  14. HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
  15. diff -ur httplib2-0.8.orig/python3/httplib2/__init__.py httplib2-0.8/python3/httplib2/__init__.py
  16. --- httplib2-0.8.orig/python3/httplib2/__init__.py 2013-03-06 21:40:54.000000000 +0100
  17. +++ httplib2-0.8/python3/httplib2/__init__.py 2014-05-01 23:28:36.822913468 +0200
  18. @@ -123,9 +123,8 @@
  19. # Which headers are hop-by-hop headers by default
  20. HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
  21. -# Default CA certificates file bundled with httplib2.
  22. -CA_CERTS = os.path.join(
  23. - os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
  24. +# Use system CA certificates
  25. +CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
  26. def _get_end2end_headers(response):
  27. hopbyhop = list(HOP_BY_HOP)