Skip to content

Commit cb98227

Browse files
authored
chore: Use cryptography for the Provider as well. This is to have an easier time pinning the correct OpenSSL version. (#1537)
* chore: Use cryptography for the Provider as well. This is to have an easier time pinning the correct OpenSSL version.
1 parent 05220e0 commit cb98227

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

google/auth/transport/requests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,9 @@ def __init__(self, enterprise_cert_file_path):
267267
self.signer = _custom_tls_signer.CustomTlsSigner(enterprise_cert_file_path)
268268
self.signer.load_libraries()
269269

270-
if not self.signer.should_use_provider():
271-
import urllib3.contrib.pyopenssl
270+
import urllib3.contrib.pyopenssl
272271

273-
urllib3.contrib.pyopenssl.inject_into_urllib3()
272+
urllib3.contrib.pyopenssl.inject_into_urllib3()
274273

275274
poolmanager = create_urllib3_context()
276275
poolmanager.load_verify_locations(cafile=certifi.where())

system_tests/secrets.tar.enc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)