Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/truststore/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ def inject_into_ssl() -> None:
except ImportError:
pass

# replace reference kept by botocore as well
try:
import botocore.httpsession

setattr(botocore.httpsession, "SSLContext", SSLContext)
except ImportError:
pass


def extract_from_ssl() -> None:
"""Restores the :class:`ssl.SSLContext` class to its original state"""
Expand Down
Loading