MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/layers/tls/session.py:1288–1299  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1286
1287class TLSSession(TCPSession):
1288 def __init__(self, *args, **kwargs):
1289 # XXX this doesn't bring any value.
1290 warning(
1291 "TLSSession is deprecated and will be removed in a future version. "
1292 "Please use TCPSession instead with conf.tls_session_enable=True"
1293 )
1294 server_rsa_key = kwargs.pop("server_rsa_key", None)
1295 super(TLSSession, self).__init__(*args, **kwargs)
1296 self._old_conf_status = conf.tls_session_enable
1297 conf.tls_session_enable = True
1298 if server_rsa_key:
1299 conf.tls_sessions.server_rsa_key = server_rsa_key
1300
1301 def toPacketList(self):
1302 conf.tls_session_enable = self._old_conf_status

Callers

nothing calls this directly

Calls 3

warningFunction · 0.90
popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected