From 1cc8c53b0fc06d148a9f62e5d2d5bcd859f948cf Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 23 Aug 2023 18:12:32 +0200 Subject: 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 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21823) --- doc/designs/quic-design/record-layer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/designs') diff --git a/doc/designs/quic-design/record-layer.md b/doc/designs/quic-design/record-layer.md index da424064a3..8db4b319c5 100644 --- a/doc/designs/quic-design/record-layer.md +++ b/doc/designs/quic-design/record-layer.md @@ -507,7 +507,7 @@ struct ossl_record_method_st { * multiple records in one go and buffer them. */ int (*read_record)(OSSL_RECORD_LAYER *rl, void **rechandle, int *rversion, - int *type, unsigned char **data, size_t *datalen, + uint8_t *type, unsigned char **data, size_t *datalen, uint16_t *epoch, unsigned char *seq_num); /* * Release a buffer associated with a record previously read with -- cgit v1.2.3