Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/site-packages/M2Crypto/SSL
usr
/
lib64
/
python2.6
/
site-packages
/
M2Crypto
/
SSL
/
📁
..
📄
Checker.py
(8.27 KB)
📄
Checker.pyc
(7.97 KB)
📄
Checker.pyo
(7.97 KB)
📄
Cipher.py
(1.04 KB)
📄
Cipher.pyc
(2.81 KB)
📄
Cipher.pyo
(2.81 KB)
📄
Connection.py
(11.75 KB)
📄
Connection.pyc
(18.84 KB)
📄
Connection.pyo
(18.74 KB)
📄
Context.py
(9.29 KB)
📄
Context.pyc
(13.45 KB)
📄
Context.pyo
(13.45 KB)
📄
SSLServer.py
(1.45 KB)
📄
SSLServer.pyc
(2.31 KB)
📄
SSLServer.pyo
(2.31 KB)
📄
Session.py
(1.47 KB)
📄
Session.pyc
(3.31 KB)
📄
Session.pyo
(3.27 KB)
📄
TwistedProtocolWrapper.py
(15.01 KB)
📄
TwistedProtocolWrapper.pyc
(14.03 KB)
📄
TwistedProtocolWrapper.pyo
(13.9 KB)
📄
__init__.py
(853 B)
📄
__init__.pyc
(1.48 KB)
📄
__init__.pyo
(1.48 KB)
📄
cb.py
(2.3 KB)
📄
cb.pyc
(2.58 KB)
📄
cb.pyo
(2.58 KB)
📄
ssl_dispatcher.py
(874 B)
📄
ssl_dispatcher.pyc
(1.69 KB)
📄
ssl_dispatcher.pyo
(1.69 KB)
📄
timeout.py
(660 B)
📄
timeout.pyc
(1.52 KB)
📄
timeout.pyo
(1.52 KB)
Editing: Session.py
"""SSL Session Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.""" __all__ = ['Session', 'load_session'] from M2Crypto import BIO, Err, m2 class Session: m2_ssl_session_free = m2.ssl_session_free def __init__(self, session, _pyfree=0): assert session is not None self.session = session self._pyfree = _pyfree def __del__(self): if getattr(self, '_pyfree', 0): self.m2_ssl_session_free(self.session) def _ptr(self): return self.session def as_text(self): buf = BIO.MemoryBuffer() m2.ssl_session_print(buf.bio_ptr(), self.session) return buf.read_all() def as_der(self): buf = BIO.MemoryBuffer() m2.i2d_ssl_session(buf.bio_ptr(), self.session) return buf.read_all() def write_bio(self, bio): return m2.ssl_session_write_bio(bio.bio_ptr(), self.session) def get_time(self): return m2.ssl_session_get_time(self.session) def set_time(self, t): return m2.ssl_session_set_time(self.session, t) def get_timeout(self): return m2.ssl_session_get_timeout(self.session) def set_timeout(self, t): return m2.ssl_session_set_timeout(self.session, t) def load_session(pemfile): f = BIO.openfile(pemfile) cptr = m2.ssl_session_read_pem(f.bio_ptr()) f.close() if cptr is None: from M2Crypto.SSL import SSLError raise SSLError(Err.get_error()) return Session(cptr, 1)
Upload File
Create Folder