OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
OpenSSL
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
SSL.py
79.49 KB
04/12/2018 07:54:32 AM
rw-r--r--
📄
__init__.py
447 bytes
12/01/2017 02:16:17 AM
rw-r--r--
📁
__pycache__
-
10/21/2019 03:50:02 PM
rwxr-xr-x
📄
_util.py
4.08 KB
12/01/2017 02:16:17 AM
rw-r--r--
📄
crypto.py
96.71 KB
12/01/2017 02:16:17 AM
rw-r--r--
📄
debug.py
1.02 KB
12/01/2017 02:16:17 AM
rw-r--r--
📄
rand.py
1.02 KB
12/01/2017 02:16:17 AM
rw-r--r--
📄
tsafe.py
1.08 KB
12/01/2017 02:16:17 AM
rw-r--r--
📄
version.py
626 bytes
12/01/2017 02:16:17 AM
rw-r--r--
Editing: tsafe.py
Close
import warnings from threading import RLock as _RLock from OpenSSL import SSL as _ssl warnings.warn( "OpenSSL.tsafe is deprecated and will be removed", DeprecationWarning, stacklevel=3 ) class Connection: def __init__(self, *args): self._ssl_conn = _ssl.Connection(*args) self._lock = _RLock() for f in ('get_context', 'pending', 'send', 'write', 'recv', 'read', 'renegotiate', 'bind', 'listen', 'connect', 'accept', 'setblocking', 'fileno', 'shutdown', 'close', 'get_cipher_list', 'getpeername', 'getsockname', 'getsockopt', 'setsockopt', 'makefile', 'get_app_data', 'set_app_data', 'state_string', 'sock_shutdown', 'get_peer_certificate', 'get_peer_cert_chain', 'want_read', 'want_write', 'set_connect_state', 'set_accept_state', 'connect_ex', 'sendall'): exec("""def %s(self, *args): self._lock.acquire() try: return self._ssl_conn.%s(*args) finally: self._lock.release()\n""" % (f, f))