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

Class _GMTUnixTimeField

scapy/layers/tls/handshake.py:149–161  ·  view source on GitHub ↗

"The current time and date in standard UNIX 32-bit format (seconds since the midnight starting Jan 1, 1970, GMT, ignoring leap seconds)."

Source from the content-addressed store, hash-verified

147###############################################################################
148
149class _GMTUnixTimeField(UTCTimeField):
150 """
151 "The current time and date in standard UNIX 32-bit format (seconds since
152 the midnight starting Jan 1, 1970, GMT, ignoring leap seconds)."
153 """
154
155 def i2h(self, pkt, x):
156 if x is not None:
157 return x
158 return 0
159
160 def i2m(self, pkt, x):
161 return int(x) if x is not None else 0
162
163
164class _TLSRandomBytesField(StrFixedLenField):

Callers 2

TLSClientHelloClass · 0.85
TLSServerHelloClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…