Add the ability to mutate TLS handshake messages before they are written
authorMatt Caswell <matt@openssl.org>
Fri, 2 Dec 2022 14:38:46 +0000 (14:38 +0000)
committerHugo Landau <hlandau@openssl.org>
Wed, 22 Feb 2023 05:34:03 +0000 (05:34 +0000)
commitd03fe5de8d1b78dd8190a9bce04bb228719b9947
treee56b0aedc2e42b15800f2ec044d78f094899ebec
parent71587f2b6a711bc8cd18521575910291f637dfcf
Add the ability to mutate TLS handshake messages before they are written

We add callbacks so that TLS handshake messages can be modified by the test
framework before they are passed to the handshake hash, possibly encrypted
and written to the network. This enables us to simulate badly behaving
endpoints.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20030)
include/internal/quic_channel.h
include/internal/quic_tserver.h
include/internal/statem.h [moved from ssl/statem/statem.h with 85% similarity]
ssl/quic/quic_channel.c
ssl/quic/quic_tserver.c
ssl/ssl_local.h
ssl/statem/statem_lib.c
test/helpers/quictestlib.c