From 7e761a050d4824077766d7e6d091f83ab55113fb Mon Sep 17 00:00:00 2001 From: gpotter2 <10530980+gpotter2@users.noreply.github.com> Date: Sun, 2 Nov 2025 22:43:35 +0100 Subject: [PATCH] Add missing crypto_validator --- scapy/layers/tls/handshake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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