Avoid issues with endianness when type is used in SSL_trace()
authorTomas Mraz <tomas@openssl.org>
Wed, 23 Aug 2023 16:12:32 +0000 (18:12 +0200)
committerHugo Landau <hlandau@openssl.org>
Fri, 25 Aug 2023 11:03:46 +0000 (12:03 +0100)
commit1cc8c53b0fc06d148a9f62e5d2d5bcd859f948cf
treeca7698dcc3f294f2b89c5ba92d8a95e796bf0045
parent675481ee7a8a7fe55aa387b1ccc4ba3b579bc2ff
Avoid issues with endianness when type is used in SSL_trace()

The TLS record type is a single byte value so we can
use uint8_t for it. This allows passing its address
directly to SSL_trace() instead of converting it to
a single byte type first.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21823)
doc/designs/quic-design/record-layer.md
include/internal/recordmethod.h
ssl/quic/quic_tls.c
ssl/record/methods/recmethod_local.h
ssl/record/methods/tls_common.c
ssl/record/record.h