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
key.p12
knx_keyring.xml
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
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
tls13-rfc8446-noearly.keys
tls13-rfc8446.keys
udt-dtls.key