diff --git a/scapy/layers/tls/handshake.py b/scapy/layers/tls/handshake.py index 6a5e3834c76..ba9a8452535 100644 --- a/scapy/layers/tls/handshake.py +++ b/scapy/layers/tls/handshake.py @@ -35,7 +35,7 @@ ) from scapy.compat import hex_bytes, orb, raw -from scapy.config import conf +from scapy.config import conf, crypto_validator from scapy.packet import Packet, Raw, Padding from scapy.utils import randstring, repr_hex from scapy.layers.x509 import OCSP_Response @@ -716,6 +716,7 @@ def build(self): self.sid = self.tls_session.sid return _TLSHandshake.build(self) + @crypto_validator def tls_session_update(self, msg_str): s = self.tls_session s.tls13_retry = True