Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: third_party/gsutil/oauth2_plugin/oauth2_client.py

Issue 212553007: Replaced boto certificate (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Nits Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/oauth2_plugin/oauth2_client.py
diff --git a/third_party/gsutil/oauth2_plugin/oauth2_client.py b/third_party/gsutil/oauth2_plugin/oauth2_client.py
index 84c74c87c76f539abb033674424a29e0fb397ed0..c8cb01c4b7e94a9c29911ca5730d0f71d23b1676 100644
--- a/third_party/gsutil/oauth2_plugin/oauth2_client.py
+++ b/third_party/gsutil/oauth2_plugin/oauth2_client.py
@@ -65,9 +65,6 @@ LOG = logging.getLogger('oauth2_client')
# operation doesn't attempt concurrent refreshes.
token_exchange_lock = threading.Lock()
-# SHA1 sum of the CA certificates file imported from boto.
-CACERTS_FILE_SHA1SUM = 'ed024a78d9327f8669b3b117d9eac9e3c9460e9b'
-
class Error(Exception):
"""Base exception for the OAuth2 module."""
pass
@@ -298,15 +295,6 @@ class OAuth2Client(object):
os.path.dirname(os.path.abspath(cacerts.__file__)), 'cacerts.txt')
if url_opener is None:
- # Check that the cert file distributed with boto has not been tampered
- # with.
- h = sha1()
- h.update(file(self.ca_certs_file).read())
- actual_sha1 = h.hexdigest()
- if actual_sha1 != CACERTS_FILE_SHA1SUM:
- raise Error(
- 'CA certificates file does not have expected SHA1 sum; '
- 'expected: %s, actual: %s' % (CACERTS_FILE_SHA1SUM, actual_sha1))
# TODO(Google): set user agent?
url_opener = urllib2.build_opener(
fancy_urllib.FancyProxyHandler(),
« no previous file with comments | « third_party/gsutil/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698