OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
usr
/
lib
/
python3
/
dist-packages
/
pip
/
_vendor
/
truststore
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
__init__.py
403 bytes
10/18/2024 05:04:47 PM
rw-r--r--
📄
_api.py
9.66 KB
10/18/2024 05:04:47 PM
rw-r--r--
📄
_macos.py
17.28 KB
10/18/2024 05:04:47 PM
rw-r--r--
📄
_openssl.py
2.27 KB
10/18/2024 05:04:47 PM
rw-r--r--
📄
_ssl_constants.py
1.1 KB
10/18/2024 05:04:47 PM
rw-r--r--
📄
_windows.py
17.06 KB
10/18/2024 05:04:47 PM
rw-r--r--
Editing: _ssl_constants.py
Close
import ssl import sys import typing # Hold on to the original class so we can create it consistently # even if we inject our own SSLContext into the ssl module. _original_SSLContext = ssl.SSLContext _original_super_SSLContext = super(_original_SSLContext, _original_SSLContext) # CPython is known to be good, but non-CPython implementations # may implement SSLContext differently so to be safe we don't # subclass the SSLContext. # This is returned by truststore.SSLContext.__class__() _truststore_SSLContext_dunder_class: typing.Optional[type] # This value is the superclass of truststore.SSLContext. _truststore_SSLContext_super_class: type if sys.implementation.name == "cpython": _truststore_SSLContext_super_class = _original_SSLContext _truststore_SSLContext_dunder_class = None else: _truststore_SSLContext_super_class = object _truststore_SSLContext_dunder_class = _original_SSLContext def _set_ssl_context_verify_mode( ssl_context: ssl.SSLContext, verify_mode: ssl.VerifyMode ) -> None: _original_super_SSLContext.verify_mode.__set__(ssl_context, verify_mode) # type: ignore[attr-defined]