wireshark/test/captures
Peter Wu 52a6671439 wiretap: add read/write support for Decryption Secrets Block (DSB)
Support reading and writing pcapng files with DSBs. A DSB may occur
multiple times but should appear before packets that need those
decryption secrets (so it cannot be moved to the end like NRB). The TLS
dissector will be updated in the future to make use of these secrets.
pcapng spec update: https://github.com/pcapng/pcapng/pull/54

As DSBs may be interleaved with packets, do not even try to read it in
pcapng_open (as is done for IDBs). Instead process them during the
sequential read, appending them to the 'wtap::dsbs' array.

Writing is more complicated, secrets may initially not be available when
'wtap_dumper' is created. As they may become available in 'wtap::dsbs'
as more packets are read, allow 'wtap_dumper::dsbs_growing' to reference
this array. This saves every user from checking/dumping DSBs.

If the wtap user needs to insert extra DSBs (while preserving existing
DSBs), they can set the 'wtap_dumper::dsbs_initial' field.

The test file was creating using a patched editcap (future patch) and
combined using mergecap (which required a change to preserve the DSBs).

Change-Id: I74e4ee3171bd852a89ea0f6fbae9e0f65ed6eda9
Ping-Bug: 15252
Reviewed-on: https://code.wireshark.org/review/30692
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-20 05:12:37 +00:00
..
arp.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
c1222_std_example8.pcap
dhcp-nanosecond.pcap
dhcp-nanosecond.pcapng
dhcp.pcap
dhcp.pcapng
dhe1.pcapng.gz
dmgr.pcapng
dns+icmp.pcapng.gz
dns-ooo.pcap tcp: fix OoO reassembly when the first data packet is OoO 2018-08-30 04:07:01 +00:00
dns_port.pcap
dtls12-aes128ccm8.pcap
dvb-ci_UV1_0000.pcap
empty.pcap
esp-bug-12671.pcapng.gz
http-ooo.pcap tcp: add support for reassembling out-of-order segments 2018-06-28 06:10:35 +00:00
http.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
http2-data-reassembly.pcap
icmp.pcapng.gz test: make 'double' tests rely on icmp instead of ntp. 2018-10-25 04:09:44 +00:00
ikev1-bug-12610.pcapng.gz
ikev1-bug-12620.pcapng.gz
ikev1-certs.pcap
ikev2-decrypt-3des-sha1_160.pcap
ikev2-decrypt-aes128ccm12-2.pcap
ikev2-decrypt-aes128ccm12.pcap
ikev2-decrypt-aes192ctr.pcap
ikev2-decrypt-aes256cbc.pcapng
ikev2-decrypt-aes256ccm16.pcapng
ikev2-decrypt-aes256gcm8.pcap
ikev2-decrypt-aes256gcm16.pcap
ipv6.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
ipx_rip.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
knxip_DataSec.pcap KNX-IP: new KNXnet/IP dissector 2018-10-16 09:03:43 +00:00
knxip_SecureWrapper.pcap KNX-IP: new KNXnet/IP dissector 2018-10-16 09:03:43 +00:00
knxip_TimerNotify.pcap KNX-IP: new KNXnet/IP dissector 2018-10-16 09:03:43 +00:00
krb-816.pcap.gz
many_interfaces.pcapng.1 Dumpcap: Fix writing SHBs and IDBs. 2018-11-16 19:28:11 +00:00
many_interfaces.pcapng.2 Dumpcap: Fix writing SHBs and IDBs. 2018-11-16 19:28:11 +00:00
many_interfaces.pcapng.3 Dumpcap: Fix writing SHBs and IDBs. 2018-11-16 19:28:11 +00:00
nfs.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
ntp.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
packet-h2-14_headers.pcapng
rsa-p-lt-q.pcap
rsasnakeoil2.pcap
sample_control4_2012-03-24.pcap
segmented_fpm.pcap
sip.pcapng
sipmsg.log
snakeoil-dtls.pcap
tcp-badsegments.pcap tests: add regression tests for Follow TCP Stream 2018-07-06 12:11:09 +00:00
text2pcap_hash_eol.txt
tftp.pcap Test: Add dftest to our tests. 2018-05-04 22:44:32 +00:00
tls-renegotiation.pcap
tls12-aes128ccm.pcap
tls12-aes256gcm.pcap
tls12-chacha20poly1305.pcap
tls12-dsb.pcapng wiretap: add read/write support for Decryption Secrets Block (DSB) 2018-11-20 05:12:37 +00:00
tls13-20-chacha20poly1305.pcap
tls13-rfc8446.pcap TLS13: add final tests for RFC 8446 2018-08-17 07:28:56 +00:00
udt-dtls.pcapng.gz
wireguard-ping-tcp.pcap WireGuard: implement peer identification based on MAC1 2018-08-08 11:25:08 +00:00
wireguard-psk.pcap WireGuard: implement decryption with PSKs 2018-08-08 11:26:06 +00:00
wpa-Induction.pcap.gz
wpa-eap-tls.pcap.gz
wpa-test-decode-mgmt.pcap.gz
wpa-test-decode-tdls.pcap.gz
wpa-test-decode.pcap.gz