1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: Carlos Henrique Lima Melara <charlesmelara@riseup.net>
Date: Sun, 24 Mar 2024 18:41:32 -0300
Subject: Remove tests dependent on non-free data from doc/
Forwarded: not-needed
Last-Update: 2024-03-24
---
test/scapy/layers/tls/tls.uts | 28 ----------------------------
1 file changed, 28 deletions(-)
diff --git a/test/scapy/layers/tls/tls.uts b/test/scapy/layers/tls/tls.uts
index a240a4f..a04fbc5 100644
--- a/test/scapy/layers/tls/tls.uts
+++ b/test/scapy/layers/tls/tls.uts
@@ -1579,34 +1579,6 @@ assert raw(tls_packet) == data
+ Decrypt packets from a pcap
-= pcap file & external TLS Key Log file
-
-bck_conf = conf
-conf.tls_session_enable = True
-conf.tls_nss_filename = scapy_path("doc/notebooks/tls/raw_data/tls_nss_example.keys.txt")
-
-packets = rdpcap(scapy_path("doc/notebooks/tls/raw_data/tls_nss_example.pcap"))
-assert b"GET /secret.txt HTTP/1.0\n" in packets[11].msg[0].data
-assert b"z2|gxarIKOxt,G1d>.Q2MzGY[k@" in packets[13].msg[0].data
-
-conf = bck_conf
-
-= pcapng file with a Decryption Secrets Block
-~ tshark linux
-
-import shutil
-if shutil.which("editcap"):
- bck_conf = conf
- key_log_path = scapy_path("doc/notebooks/tls/raw_data/tls_nss_example.keys.txt")
- pcap_path = scapy_path("doc/notebooks/tls/raw_data/tls_nss_example.pcap")
- pcapng_path = get_temp_file()
- exit_status = os.system("editcap --inject-secrets tls,%s %s %s" % (key_log_path, pcap_path, pcapng_path))
- assert exit_status == 0
- packets = rdpcap(pcapng_path)
- assert b"GET /secret.txt HTTP/1.0\n" in packets[11].msg[0].data
- assert b"z2|gxarIKOxt,G1d>.Q2MzGY[k@" in packets[13].msg[0].data
- conf = bck_conf
-
= pcapng file with a non-UTF-8 Decryption Secrets Block
# GH3936
|