wireshark/test/keys
John Thacker e0f1f8dbf3 TLS: Fix TLS tunneled within TLS
In order to retrieve the correct set of TLS information, previously
pinfo->curr_layer_num was used. However, this is not a stable
identifier between the first and later passes, as subdissectors that
couldn't dissect data due to fragmentation on the first pass aren't
called on later passes.

To fix issue #16109, the layer number wasn't used at all, which did
break TLS over TLS.

We now have pinfo->curr_proto_layer_num which specifically counts
the number of layers of the current protocol instead of the total
number of layers; using that instead fixes TLS within TLS (in most
situations; some very rare cases, e.g. DVB baseband frames with
multiple TCP PDUs, which might be from the same or from different
TCP connections, might not work, but those don't work currently either)
while not reopening #16109.

Add tests for both cases, the one fixed by the other workaround and
for TLS over TLS.

As noted in the comments to #16109, there are other dissectors that
use curr_layer_num that might break in some cases because it's not stable.

Fix #17977.
2023-06-12 17:09:09 +00:00
..
dhe1_keylog.dat
http2-data-reassembly.keys http2: reassemble entity bodies in data frames 2017-06-22 16:22:59 +00:00
key.p12
knx_keyring.xml KNX-IP: new KNXnet/IP dissector 2018-10-16 09:03:43 +00:00
krb-816.keytab
rsa-p-lt-q.key
rsa-p-lt-q.p8 Add support for RSA decryption using PKCS #11 tokens 2018-12-29 10:40:16 +00:00
rsasnakeoil2.key
snakeoil-rsa.key
tls-over-tls.key TLS: Fix TLS tunneled within TLS 2023-06-12 17:09:09 +00:00
tls12-chacha20poly1305.keys Add ChaCha20-Poly1305 decryption support for TLS 1.2 and 1.3 2017-06-02 22:04:21 +00:00
tls12-dsb-1.keys wiretap: add read/write support for Decryption Secrets Block (DSB) 2018-11-20 05:12:37 +00:00
tls12-dsb-2.keys wiretap: add read/write support for Decryption Secrets Block (DSB) 2018-11-20 05:12:37 +00:00
tls13-20-chacha20poly1305.keys Add ChaCha20-Poly1305 decryption support for TLS 1.2 and 1.3 2017-06-02 22:04:21 +00:00
tls13-rfc8446-noearly.keys TLS13: add final tests for RFC 8446 2018-08-17 07:28:56 +00:00
tls13-rfc8446.keys TLS13: add final tests for RFC 8446 2018-08-17 07:28:56 +00:00
udt-dtls.key Add support for dissecting UDT over DTLS 2017-07-09 18:25:08 +00:00